Educerie

Educerie · AP · Calculus

AP Calculus AB and BC 7.2

Verifying Solutions for Differential Equations

If someone hands you a function and says it solves a differential equation, how do you know they are right?

What you will learn

  • Understand that a function is a solution when it and its derivative make the equation true for every x in the interval
  • Know that a differential equation may have infinitely many solutions because the constant vanishes when differentiated
  • Understand that an initial condition must be checked separately from the equation
  • Know how to verify solutions given explicitly or implicitly

You must be able to

  1. Verify that a given function solves a differential equation by showing both sides
  2. Choose the solution from four functions by differentiating and comparing
  3. Choose the differential equation that a given function satisfies
  4. Check an initial condition as well as the equation
  5. Find the value of a constant that makes a function a solution
  6. Explain why one equation has infinitely many solutions

In the exam. Section I multiple choice: "which of the following is a solution to the differential equation?", or "which differential equation does this function satisfy?". The check is short, so these are often early Part A questions, but the function may need the chain, product or quotient rule, or implicit differentiation. In Section II the same check appears as a "show that" part, sometimes with an initial condition to confirm as well. Justification is the skill: the exam wants the derivative worked out and compared, not a statement that it works.

1The check, step by step

Take the equation and the function and do these in order.

  1. Differentiate the function to get dydx\frac{dy}{dx}.
  2. Write the left side of the equation using that derivative.
  3. Write the right side by putting the function in place of yy.
  4. Simplify both sides. If they are equal for all xx, the function is a solution.

Show both sides. A check with only "yes, it works" earns nothing.

Worked example 1. Verify that y=x3+4y=x^3+4 is a solution of dydx=3x2\frac{dy}{dx}=3x^2.

dydx=ddx(x3+4)=3x2\frac{dy}{dx} = \frac{d}{dx}\left(x^3+4\right) = 3x^2

The left side is 3x23x^2 and the right side is 3x23x^2. They match, so y=x3+4y=x^3+4 is a solution.

Worked example 2. Verify that y=3e−2xy=3e^{-2x} satisfies dydx=−2y\frac{dy}{dx}=-2y.

dydx=3⋅(−2)e−2x=−6e−2x,−2y=−2⋅3e−2x=−6e−2x\frac{dy}{dx} = 3\cdot(-2)e^{-2x} = -6e^{-2x}, \qquad -2y = -2\cdot 3e^{-2x} = -6e^{-2x}

The two sides are equal, so it is a solution.

Worked example 3 (a product). Verify that y=xexy=xe^{x} is a solution of dydx−y=ex\frac{dy}{dx}-y=e^{x}.

By the product rule:

dydx=ex+xex\frac{dy}{dx} = e^{x} + xe^{x}

Substitute in the left side:

dydx−y=ex+xex−xex=ex\frac{dy}{dx} - y = e^{x} + xe^{x} - xe^{x} = e^{x}

This equals the right side, so it is a solution. The xexxe^x terms cancel. That canceling is the sign you are on the right track.

2When a function is not a solution

Checking can fail. That is a legitimate result, and a question may ask for it.

Worked example 4. Is y=x2y=x^2 a solution of dydx=y\frac{dy}{dx}=y?

The derivative is 2x2x. The right side is x2x^2. The sides are 2x2x and x2x^2. These are equal only at x=0x=0 and x=2x=2, not for all xx, so y=x2y=x^2 is not a solution.

Equal at one or two points is not enough. The sides must match at every xx in the interval.

3Finding the constant that makes it work

Sometimes a function has an unknown constant, and you find it by demanding that it solves the equation.

Worked example 5. For what value of kk is y=ekxy=e^{kx} a solution of dydx=5y\frac{dy}{dx}=5y?

dydx=kekx,5y=5ekx\frac{dy}{dx} = ke^{kx}, \qquad 5y = 5e^{kx}

Setting kekx=5ekxke^{kx}=5e^{kx} and dividing by ekxe^{kx}, which is never zero, gives k=5k=5.

4Infinitely many solutions

In Worked example 1, y=x3+4y=x^3+4 is a solution. So is y=x3y=x^3, and y=x3−10y=x^3-10, and y=x3+Cy=x^3+C for any constant CC. Each has derivative 3x23x^2.

The constant disappears when you differentiate, so the equation cannot tell the constants apart. A differential equation may have infinitely many solutions, one for each choice of the constant.

  • A solution with a constant CC in it describes the whole family. It is called a general solution (Topic 7.6).
  • A solution with a number in place of CC is a particular solution (Topic 7.7).

The exam can ask you to say this. "There is more than one function whose derivative is 3x23x^2" is the idea.

5Checking an initial condition too

An initial condition such as y(0)=1y(0)=1 says that the graph passes through (0,1)(0,1). A function can solve the equation and still fail the condition.

Worked example 6. Verify that y=2e−x+x−1y=2e^{-x}+x-1 is the solution of dydx=x−y\frac{dy}{dx}=x-y with y(0)=1y(0)=1.

First the equation.

dydx=−2e−x+1\frac{dy}{dx} = -2e^{-x}+1
x−y=x−(2e−x+x−1)=−2e−x+1x-y = x-\left(2e^{-x}+x-1\right) = -2e^{-x}+1

The sides are equal. Now the condition.

y(0)=2e0+0−1=1y(0) = 2e^{0}+0-1 = 1

Both checks pass. The function is the solution that fits.

Now ask: is y=x−1y=x-1 also a solution of the equation? Its derivative is 11. The right side is x−(x−1)=1x-(x-1)=1. The sides are equal, so yes. But y(0)=−1y(0)=-1, not 11. So y=x−1y=x-1 solves the equation but not this problem. Two functions, one equation, one initial condition: only one of them fits.

6Implicit solutions, and other functions

A solution may be given as an equation in xx and yy rather than y=…y=\dots. Check it with implicit differentiation.

Worked example 7. Verify that x2+y2=25x^2+y^2=25 satisfies dydx=−xy\frac{dy}{dx}=-\frac{x}{y} wherever y≠0y\neq 0.

Differentiate both sides with respect to xx:

2x+2y dydx=0⟹dydx=−xy2x + 2y\,\frac{dy}{dx} = 0 \quad\Longrightarrow\quad \frac{dy}{dx} = -\frac{x}{y}

This is the equation. The check passes. Topic 7.6 solves this equation to get the same family of circles.

Worked example 8 (a trigonometric function). Verify that y=tan⁡xy=\tan x satisfies dydx=1+y2\frac{dy}{dx}=1+y^2 for −π2<x<π2-\frac{\pi}{2}<x<\frac{\pi}{2}.

dydx=sec⁡2x,1+y2=1+tan⁡2x=sec⁡2x\frac{dy}{dx} = \sec^2 x, \qquad 1+y^2 = 1+\tan^2x = \sec^2x

The identity 1+tan⁡2x=sec⁡2x1+\tan^2x=\sec^2x makes the two sides equal. The interval matters: tan⁡x\tan x is not defined at x=±π2x=\pm\frac\pi2, so the check holds only between those values. A solution can have a restricted domain.

Worked example 9 (a logarithm). Verify that y=ln⁡xy=\ln x satisfies xdydx=1x\frac{dy}{dx}=1 for x>0x>0.

The derivative is dydx=1x\frac{dy}{dx}=\frac1x. So x⋅dydx=x⋅1x=1x\cdot\frac{dy}{dx}=x\cdot\frac1x=1. The left side equals the right side for every x>0x>0.

7Choosing among options

In multiple choice, the quickest path is usually to test the options, not to solve.

  • Which function is a solution? Differentiate each option and compare with the right side. Stop when one matches.
  • Which equation does this function satisfy? Differentiate the function once. Then look for the option that rewrites dydx\frac{dy}{dx} in terms of yy and xx.

A shortcut for multiple choice. If the question gives an initial condition, test it first. An option that fails y(0)=1y(0)=1 can be thrown out without any differentiating. If two options pass, differentiate those two only. Another shortcut: look at the form of the right side. If it is kyky, the answer is an exponential, and if it is a function of xx alone, the answer is an antiderivative plus a constant.

Worked example 10. Which differential equation does y=xe−xy=xe^{-x} satisfy?

By the product rule, dydx=e−x−xe−x\frac{dy}{dx}=e^{-x}-xe^{-x}. Since xe−x=yxe^{-x}=y, this is dydx=e−x−y\frac{dy}{dx}=e^{-x}-y.

The step that wins the mark is replacing xe−xxe^{-x} by yy. If an option has e−xe^{-x} and yy combined that way, it is the match.

Practice questions

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