AP Calculus AB · Topic 7.7 · Reading guide, about 5 min

Using a starting value to pin down the solution

Find a particular solution by separating variables and using an initial condition right after integrating; state its domain.

In one minute

A general solution is a whole family of curves, but real problems pin down one curve with a starting value. The rule is to separate, integrate, and use the starting value immediately to find the constant.

After that, you finish by choosing the right sign, solving for y, and saying where the answer is valid. Those last steps are where most errors happen, so this topic focuses on them.

Key terms

Initial condition
A known point (x0, y0)(x_0,\,y_0) on the solution, written y(x0)=y0y(x_0)=y_0.
Particular solution
The one solution of the equation that passes through the initial condition.
Initial value problem
A differential equation together with an initial condition, to be solved for the particular solution.
Branch
Part of a solution given by a particular sign, such as the negative square root for a negative given y.
Domain of validity
The interval of x-values containing the starting x where the formula actually solves the equation.
Constant of integration
The number C found by substituting the initial condition after integrating.
Restriction
A limit on x, such as x<1x< 1, that comes from division by zero, a square root or logarithm of a negative, or the starting point.

The procedure

Separate, integrate both sides, and add +C+C. Then substitute the initial condition immediately and solve for C, before you try to isolate y. Doing it right away keeps the algebra simpler and avoids errors with the exponentials.

Next, solve for y. If you have a square root, choose the sign from the initial condition: a starting y that is negative requires the negative root. If you have an absolute value from a logarithm, the starting point tells you whether the thing inside is positive or negative, so you can drop the bars.

Last, state the domain. Find the largest open interval containing the starting x on which the formula is differentiable and actually satisfies the equation. Leave out any x where the formula is undefined and any x where the equation itself breaks down, such as a point where y=0y=0 in dydx=xy\frac{dy}{dx}=\frac{x}{y}. For example, dydx=−xy\frac{dy}{dx}=-\frac{x}{y} with y(0)=2y(0)=2 gives y=4−x2y=\sqrt{4-x^2}, which is valid only for −2<x<2-2< x< 2, since y=0y=0 at x=±2x=\pm2. A solution cannot jump across a bad point, even if the formula has more of its graph on the other side.

A quick way to see why the starting point controls the domain: the differential equation is only a statement about slopes at points where it makes sense. A solution is a function, so it must be differentiable on an interval, and an interval cannot hop over a gap. If your formula has a break in it, keep the piece that contains the starting x and discard the rest. State the answer as a function together with its interval, for example y equals a formula for x less than 1.

Steps for an initial value problem
StepWhat you doWhy
1Separate the variablesEach side holds only its own variable
2Integrate and add one CGives the general solution
3Substitute the initial point and find CSelects one curve
4Solve for y, picking the correct signThe starting point decides the branch
5State the valid domainSolutions live on one interval

Worked example: dy/dx = x/y with y(2) = -3

Solve dydx=xy\frac{dy}{dx}=\frac{x}{y} with y(2)=−3y(2)=-3.

Step 1. Separate: y dy=x dxy\,dy=x\,dx. Step 2. Integrate: y22=x22+C\frac{y^2}{2}=\frac{x^2}{2}+C. Step 3. Use the point (2, −3)(2,\,-3) right away: 92=42+C\frac{9}{2}=\frac{4}{2}+C, so C=52C=\frac{5}{2}.

Step 4. Multiply by 2: y2=x2+5y^2=x^2+5. Then y=±x2+5y=\pm\sqrt{x^2+5}. The starting y is negative, so choose the negative root: y=−x2+5y=-\sqrt{x^2+5}.

Step 5. Domain: x2+5>0x^2+5>0 for all x, and y is never 0, so the solution is valid for all real x.

Check: dydx=−xx2+5\frac{dy}{dx}=-\frac{x}{\sqrt{x^2+5}}, and xy=x−x2+5\frac{x}{y}=\frac{x}{-\sqrt{x^2+5}}. They agree. Also y(2)=−9=−3y(2)=-\sqrt{9}=-3.

Why the sign matters: the equation y2=x2+5y^2=x^2+5 describes two separate curves, one above the x-axis and one below it. Both satisfy the same differential equation, but only the lower one passes through the starting point. A solution is a single curve, so you must pick one. It also cannot cross the x-axis, because y=0y=0 would put a zero in the denominator of xy\frac{x}{y}. Here x2+5x^2+5 is never 0, so no such crossing happens, and the lower curve stays below the axis for every x.

Two more cases

With an exponential. Solve dydx=ycos⁡x\frac{dy}{dx}=y\cos x with y(0)=4y(0)=4. Separate: dyy=cos⁡x dx\frac{dy}{y}=\cos x\,dx. Integrate: ln⁡∣y∣=sin⁡x+C\ln|y|=\sin x+C. At x=0x=0: ln⁡4=0+C\ln4=0+C, so C=ln⁡4C=\ln4. Then ∣y∣=esin⁡x⋅4|y|=e^{\sin x}\cdot4, and since y(0)=4y(0)=4 is positive, y=4esin⁡xy=4e^{\sin x}. Check: dydx=4esin⁡xcos⁡x=ycos⁡x\frac{dy}{dx}=4e^{\sin x}\cos x=y\cos x.

With a limited domain. Solve dydx=y2\frac{dy}{dx}=y^2 with y(0)=1y(0)=1. Separate: y−2 dy=dxy^{-2}\,dy=dx. Integrate: −1y=x+C-\frac{1}{y}=x+C. At x=0x=0: −1=C-1=C. So −1y=x−1-\frac{1}{y}=x-1 and y=11−xy=\frac{1}{1-x}. Check: dydx=1(1−x)2=y2\frac{dy}{dx}=\frac{1}{(1-x)^2}=y^2. The formula fails at x=1x=1, and the starting x of 0 is to the left, so the solution is valid only for x<1x< 1. The other piece of the graph, for x>1x>1, belongs to a different solution.

How it connects

  • Back to 7.2: the same check by substitution confirms the particular solution.
  • Back to 7.6: the family of solutions you found there is where C comes from.
  • Forward to 7.8: finding y0y_0 and k in exponential models is exactly an initial value problem.

Common mistakes

  • Forgetting C. With no constant there is nothing to fit to the starting value.
  • Adding C after exponentiating. Write the constant right after integrating so it becomes a multiplier.
  • Choosing the wrong branch. If the starting y is negative, a positive square root is wrong.
  • Giving no domain. Always say where the formula applies, and check division by zero.

How it shows up on the exam

  • A free-response part gives an equation and an initial condition and asks for the particular solution y = f(x).
  • The answer must be an explicit function, so choose the correct sign and write y alone.
  • A follow-up may ask for the value of the solution at a given x, so use the formula, not the slope field.

Check yourself

  1. When is the right moment to substitute the initial condition, and why?
  2. For y2=x2+5y^2=x^2+5 with y(2)=−3y(2)=-3, which sign of the square root is correct?
  3. How can you tell the domain of y=11−xy=\frac{1}{1-x} for y(0)=1y(0)=1?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.