Educerie

Educerie · AP · Calculus

AP Calculus AB and BC 7.7

Finding Particular Solutions Using Initial Conditions and Separation of Variables

Of all the solutions to a differential equation, which one passes through the point you were given?

What you will learn

  • Understand that an initial condition fixes the constant and picks one particular solution
  • Know the method of using the condition in the integrated equation before solving for y
  • Understand that the starting point decides the sign of a root and the domain of the solution
  • Know the integral form F(x) = y0 plus the integral of f(t) from a to x, and why it solves the equation

You must be able to

  1. Find a particular solution from a separable equation and an initial condition
  2. Choose the correct sign of a root from the starting point
  3. State the domain of a particular solution
  4. Write and evaluate the integral form of a solution with a calculator
  5. Check a solution against both the equation and the condition
  6. Explain why only one solution passes through a given point

In the exam. Section I multiple choice: a separable equation with an initial condition, and four formulas for the answer. Section II question 3 (shared by AB and BC) is often a full solution: separate, integrate, use the condition, write y=f(x)y=f(x). A part may also ask for the domain, or for a value found with the calculator from a definite integral. Chief reader reports record the initial condition not used before solving, and solution curves that cross a horizontal asymptote.

1The method

  1. Separate the variables.
  2. Integrate both sides and add +C+C.
  3. Use the initial condition now, in the integrated equation: replace xx and yy by the given values and solve for CC.
  4. Solve for yy, with CC as a number.
  5. State the domain if asked or if the solution has a restricted domain.

Use the condition before you solve for yy. The algebra is shorter, and you avoid errors with signs and absolute values.

Worked example 1. Find the particular solution y=f(x)y=f(x) of dydx=6x2\frac{dy}{dx}=6x^2 with f(1)=5f(1)=5.

y=2x3+C,5=2(1)3+C  ⟹  C=3,y=2x3+3y = 2x^3 + C, \qquad 5 = 2(1)^3 + C \;\Longrightarrow\; C = 3, \qquad y = 2x^3 + 3

Worked example 2. Find the particular solution of dydx=xy\frac{dy}{dx}=xy with y(0)=3y(0)=3.

1y dy=x dx  ⟹  ln⁡∣y∣=x22+C\frac{1}{y}\,dy = x\,dx \;\Longrightarrow\; \ln|y| = \frac{x^2}{2}+C

Use the condition: ln⁡∣3∣=0+C\ln|3|=0+C, so C=ln⁡3C=\ln3. Then:

ln⁡∣y∣=x22+ln⁡3  ⟹  ∣y∣=3ex2/2  ⟹  y=3ex2/2\ln|y| = \frac{x^2}{2}+\ln 3 \;\Longrightarrow\; |y| = 3e^{x^2/2} \;\Longrightarrow\; y = 3e^{x^2/2}

The sign is positive because y(0)=3>0y(0)=3>0 and yy cannot change sign. If the condition had been y(0)=−3y(0)=-3, the answer would be y=−3ex2/2y=-3e^{x^2/2}.

Check your answer. Put the point back in. In Worked example 1, y(1)=2(1)3+3=5y(1)=2(1)^3+3=5, which matches the condition. Then differentiate: dydx=6x2\frac{dy}{dx}=6x^2, which is the equation. A particular solution must pass both tests, the condition and the equation. This takes thirty seconds and catches most sign errors in CC.

2The sign of a root

When solving for yy gives a square root, the initial condition decides which sign to take.

Worked example 3. Find the particular solution of dydx=−xy\frac{dy}{dx}=-\frac{x}{y} with y(3)=4y(3)=4, and its domain.

y dy=−x dx  ⟹  y22=−x22+Cy\,dy = -x\,dx \;\Longrightarrow\; \frac{y^2}{2} = -\frac{x^2}{2}+C

Use the condition: 162=−92+C\frac{16}{2}=-\frac{9}{2}+C, so C=252C=\frac{25}{2}. Then:

y2=25−x2y^2 = 25 - x^2

Since y(3)=4y(3)=4 is positive, take the positive root: y=25−x2y=\sqrt{25-x^2}.

For the domain, the formula needs 25−x2≥025-x^2\ge0. The equation itself has yy on the bottom, so y≠0y\ne0, and so x≠±5x\ne\pm5. The solution is therefore valid for −5<x<5-5<x<5. This is Figure 1(a).

If the condition had been y(3)=−4y(3)=-4, the answer would be y=−25−x2y=-\sqrt{25-x^2}, the lower half.

3Domains

A particular solution may be defined only on an interval around the initial xx-value. This is a stated idea in the course: solutions may be subject to domain restrictions.

Worked example 4. Find the particular solution of dydx=y2\frac{dy}{dx}=y^2 with y(0)=1y(0)=1, and its domain.

1y2 dy=dx  ⟹  −1y=x+C\frac{1}{y^2}\,dy = dx \;\Longrightarrow\; -\frac{1}{y} = x+C

Use the condition: −1=0+C-1=0+C, so C=−1C=-1. Then −1y=x−1-\frac1y=x-1, so:

y=11−xy = \frac{1}{1-x}

The formula 11−x\frac{1}{1-x} has a vertical asymptote at x=1x=1. The solution through (0,1)(0,1) is the part with x<1x<1, the interval that contains the starting value 00. The branch for x>1x>1 is not part of this solution. This is Figure 1(b).

Figure 1. Two particular solutions and where they live. Left: y = the square root of 25 - x squared, through (3, 4), exists only for -5 < x < 5. Right: y = 1 over (1 - x), through (0, 1), exists only for x < 1 (a) dy/dx = -x/y, y(3) = 4 −5 0 5 5 y x (3, 4) Figure 1. Two particular solutions and where they live. Left: y = the square root of 25 - x squared, through (3, 4), exists only for -5 < x < 5. Right: y = 1 over (1 - x), through (0, 1), exists only for x < 1 (b) dy/dx = y2, y(0) = 1 −1 2 −2 2 4 y x x = 1 (0, 1)
Figure 1 · Two particular solutions and where they live. Left: y = the square root of 25 - x squared, through (3, 4), exists only for -5 < x < 5. Right: y = 1 over (1 - x), through (0, 1), exists only for x < 1

Worked example 5. Find the particular solution of dydx=yx\frac{dy}{dx}=\frac{y}{x} with y(2)=6y(2)=6, and its domain.

1y dy=1x dx  ⟹  ln⁡∣y∣=ln⁡∣x∣+C\frac1y\,dy = \frac1x\,dx \;\Longrightarrow\; \ln|y| = \ln|x| + C

Use the condition: ln⁡6=ln⁡2+C\ln6=\ln2+C, so C=ln⁡3C=\ln3. Then ln⁡∣y∣=ln⁡∣x∣+ln⁡3=ln⁡∣3x∣\ln|y|=\ln|x|+\ln3=\ln|3x|, so ∣y∣=3∣x∣|y|=3|x|. The point (2,6)(2,6) has both coordinates positive, so y=3xy=3x.

The formula 3x3x is defined for every xx, but the differential equation has xx on the bottom, so it is not defined at x=0x=0. The solution through (2,6)(2,6) lives on the interval that contains 22 and stops at 00. The domain is x>0x>0. The part with x<0x<0 is a separate piece, and the equation does not tie it to this one.

To find the domain of a particular solution, ask three things.

  • Where is the formula defined? No zero denominators, no negative numbers under a square root, no logarithm of a number that is not positive.
  • Where is the differential equation defined? The equation may have its own restriction, such as y≠0y\ne0.
  • Which interval contains the starting xx-value? Take only the connected piece around it.

4When there is no antiderivative: the integral form

Some equations dydx=f(x)\frac{dy}{dx}=f(x) have a right side that you cannot integrate in closed form, such as e−x2e^{-x^2}. A particular solution can still be written with a definite integral. For the initial condition y(a)=y0y(a)=y_0:

F(x)=y0+∫axf(t) dtF(x) = y_0 + \int_a^{x} f(t)\,dt

This function satisfies F′(x)=f(x)F'(x)=f(x) by the Fundamental Theorem of Calculus, and F(a)=y0F(a)=y_0 because the integral from aa to aa is zero. So it is the particular solution.

Worked example 6. The function y=g(x)y=g(x) satisfies dydx=e−x2\frac{dy}{dx}=e^{-x^2} and g(0)=2g(0)=2. Write g(x)g(x) and find g(1)g(1).

g(x)=2+∫0xe−t2 dtg(x) = 2 + \int_0^{x} e^{-t^2}\,dt

The calculator gives ∫01e−t2 dt≈0.747\displaystyle\int_0^1 e^{-t^2}\,dt\approx0.747, so g(1)≈2.747g(1)\approx2.747.

In an exam, write the integral with its limits and the integrand before you give the number. A bare decimal does not earn the setup mark.

5A full solution, as the exam writes it

Worked example 7. Consider dydx=y2ex\frac{dy}{dx}=y^2e^{x} with y(0)=1y(0)=1.

(a) Write the tangent line at x=0x=0. (b) Find the particular solution. (c) State its domain.

(a) The slope at (0,1)(0,1) is 12e0=11^2e^0=1. The tangent line is y=1+xy=1+x.

(b) Separate and integrate:

1y2 dy=ex dx  ⟹  −1y=ex+C\frac{1}{y^2}\,dy = e^{x}\,dx \;\Longrightarrow\; -\frac1y = e^{x}+C

Use the condition: −1=1+C-1=1+C, so C=−2C=-2. Then −1y=ex−2-\frac1y=e^{x}-2, and:

y=12−exy = \frac{1}{2-e^{x}}

(c) The denominator is positive when ex<2e^x<2, that is x<ln⁡2≈0.693x<\ln2\approx0.693. The solution passes through (0,1)(0,1), and 0<ln⁡20<\ln 2, so the domain is x<ln⁡2x<\ln2.

Note how the three parts line up with the marks: the setup, the constant and the result, and the domain.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.