Unit 7 · Topic 7.2 Beta

Verifying Solutions to Differential Equations

To verify a solution to a differential equation, differentiate the function, substitute into both sides and show they agree for every x in an interval.

Practice 1: Implementing Mathematical ProcessesPractice 3: Justification

Question set for this topic

Part 1 · Hook

Why this matters

A friend claims that y=3e2xy = 3e^{2x} fits the rule "the slope is always twice the height". You do not need to take her word for it, and you do not need any new method. Differentiate, substitute, and see whether the two sides match. That check is the whole topic, and it is how you will test every answer in this unit.

Part 2 · Before you start

What this builds on

Part 3 · Prerequisite check

Quick check before you start

1. What is ddx(e3x)\frac{d}{dx}\left(e^{3x}\right)?

  1. 3e3x3e^{3x}
  2. e3xe^{3x}
  3. 3xe3x−13xe^{3x - 1}
  4. e3x3\frac{e^{3x}}{3}
Show the answer

Chain rule: the derivative of the inside, 3, multiplies e3xe^{3x}.

  • Correct: 3e3x3e^{3x}:
  • e3xe^{3x}:
  • 3xe3x−13xe^{3x - 1}:
  • e3x3\frac{e^{3x}}{3}:

2. If y=sin⁡(2x)y = \sin(2x), what is y″y''?

  1. −4sin⁡(2x)-4\sin(2x)
  2. 4sin⁡(2x)4\sin(2x)
  3. −2sin⁡(2x)-2\sin(2x)
  4. 2cos⁡(2x)2\cos(2x)
Show the answer

y′=2cos⁡(2x)y' = 2\cos(2x), then y″=−4sin⁡(2x)y'' = -4\sin(2x).

  • Correct: −4sin⁡(2x)-4\sin(2x):
  • 4sin⁡(2x)4\sin(2x):
  • −2sin⁡(2x)-2\sin(2x):
  • 2cos⁡(2x)2\cos(2x):

Part 4 · See it

See it first

Five curves y = x + 1 + Ce^x for C = −1, −0.5, 0, 0.5 and 1 on −3 ≤ x ≤ 2. The C = 0 curve is the line y = x + 1, drawn in crimson. At x = 0.5 each curve carries a short black segment whose slope is y − 0.5, the value of y − x there, showing that every curve satisfies dy/dx = y − x.
Every curve y=x+1+Cexy = x + 1 + Ce^x satisfies dydx=y−x\frac{dy}{dx} = y - x. At x=0.5x = 0.5 each short segment has slope y−xy - x, and each lies along its curve. LevlPrep original diagram.

Part 5 · Step by step

How it works, step by step

  1. A function is proposed for a differential equationcompute every derivative the equation uses
  2. Substitute the function and its derivatives into both sidessimplify each side separately, never moving terms across the == sign
  3. The two sides agree for every xx in an intervalthe function is a solution on that interval
  4. They disagree for even one value of x in the intervalthe function is not a solution there
  5. An added constant has derivative 0one differential equation usually has infinitely many solutions

Part 6 · Key ideas

Key ideas

  • A solution to a differential equation is a function, not a number. It makes the equation true for every xx in an interval.
  • To verify a solution: differentiate, substitute into both sides, simplify each side, compare.
  • Checking a single point is not enough: two different expressions can agree at one xx.
  • One equation can have a whole family of solutions, such as y=Ce3xy = Ce^{3x} for dydx=3y\frac{dy}{dx} = 3y.
  • A solution may live on an interval only: y=1xy = \frac{1}{x} solves dydx=−y2\frac{dy}{dx} = -y^2 on x>0x > 0 and on x<0x < 0, not across x=0x = 0.

Part 7 · Misconception

A common mistake

The wrong idea: y=x+1+2exy = x + 1 + 2e^x solves dydx=y−x\frac{dy}{dx} = y - x because at x=0x = 0 both sides equal 3.

What actually happens: One matching point proves nothing. Compare the sides as functions: dydx=1+2ex\frac{dy}{dx} = 1 + 2e^x and y−x=1+2exy - x = 1 + 2e^x for every xx. That is the verification.

Part 8 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Table

Four candidate functions

Four functions of x, to test against differential equations
Namey1y_1y2y_2y3y_3y4y_4
Formulae3xe^{3x}5e3x5e^{3x}e3x+2e^{3x} + 23ex3e^{x}

1. Which functions in the table satisfy dydx=3y\frac{dy}{dx} = 3y? Select all that apply.

  1. y1y_1
  2. y2y_2
  3. y3y_3
  4. y4y_4
Show the answer

Differentiate each function and compare with 3y3y; only y1y_1 and y2y_2 match for every xx.

  • Correct: y1y_1: dydx=3e3x\frac{dy}{dx} = 3e^{3x} and 3y=3e3x3y = 3e^{3x}: equal.
  • Correct: y2y_2: dydx=15e3x\frac{dy}{dx} = 15e^{3x} and 3y=15e3x3y = 15e^{3x}: equal.
  • y3y_3: dydx=3e3x\frac{dy}{dx} = 3e^{3x} but 3y=3e3x+63y = 3e^{3x} + 6: not equal.
  • y4y_4: dydx=3ex\frac{dy}{dx} = 3e^{x} but 3y=9ex3y = 9e^{x}: not equal.

2. Why does y3y_3 fail to satisfy dydx=3y\frac{dy}{dx} = 3y?

  1. Its derivative is 3e3x+23e^{3x} + 2, which is not 3y33y_3.
  2. At x=0x = 0, y3=3y_3 = 3, and 3 is not a rate.
  3. It has the same derivative as y1y_1, so it is the same function.
  4. Its derivative is 3e3x3e^{3x}, but 3y3=3e3x+63y_3 = 3e^{3x} + 6.
Show the answer

dy3dx=3e3x\frac{dy_3}{dx} = 3e^{3x} while 3y3=3e3x+63y_3 = 3e^{3x} + 6; the sides differ by 6 for every xx.

  • Its derivative is 3e3x+23e^{3x} + 2, which is not 3y33y_3.: The derivative of the constant 2 is 0, not 2.
  • At x=0x = 0, y3=3y_3 = 3, and 3 is not a rate.: Values and rates are both numbers; the test is whether the two sides agree.
  • It has the same derivative as y1y_1, so it is the same function.: Equal derivatives mean the functions differ by a constant, here 2.
  • Correct: Its derivative is 3e3x3e^{3x}, but 3y3=3e3x+63y_3 = 3e^{3x} + 6.: The constant 2 drops out of the derivative but is tripled on the right side.

Graph

Three curves y=x+1+Cexy = x + 1 + Ce^x

−3−2−112−3−2−112345xyC = 2C = 0C = -1(0, 3)

3. Which work verifies that every curve y=x+1+Cexy = x + 1 + Ce^x satisfies dydx=y−x\frac{dy}{dx} = y - x?

  1. At x=0x = 0, dydx=1+C\frac{dy}{dx} = 1 + C and y−x=1+Cy - x = 1 + C.
  2. dydx\frac{dy}{dx}=1= 1+Cex+ Ce^x=x= x+1+ 1+Cex+ Ce^x=y= y.
  3. dydx=Cex\frac{dy}{dx} = Ce^x and y−x=1+Cexy - x = 1 + Ce^x, so they differ by 1.
  4. dydx=1+Cex\frac{dy}{dx} = 1 + Ce^x and y−x=1+Cexy - x = 1 + Ce^x, equal for every xx.
Show the answer

Differentiate: dydx=1+Cex\frac{dy}{dx} = 1 + Ce^x. Substitute: y−xy - x=(x+1+Cex)−x= (x + 1 + Ce^x) - x=1= 1+Cex+ Ce^x. The sides agree for every xx.

  • At x=0x = 0, dydx=1+C\frac{dy}{dx} = 1 + C and y−x=1+Cy - x = 1 + C.: Agreement at one point does not show agreement for every x.
  • dydx\frac{dy}{dx}=1= 1+Cex+ Ce^x=x= x+1+ 1+Cex+ Ce^x=y= y.: This chain writes == between unequal things: 1+Cex≠x+1+Cex1 + Ce^x \ne x + 1 + Ce^x.
  • dydx=Cex\frac{dy}{dx} = Ce^x and y−x=1+Cexy - x = 1 + Ce^x, so they differ by 1.: The derivative of xx is 1, which was dropped.
  • Correct: dydx=1+Cex\frac{dy}{dx} = 1 + Ce^x and y−x=1+Cexy - x = 1 + Ce^x, equal for every xx.: Both sides are computed separately and agree as functions.

4. The curve through (0,3)(0, 3) is y=x+1+2exy = x + 1 + 2e^x. Find dydx\frac{dy}{dx} at (0,3)(0, 3).

No calculator. Type the exact value (a fraction, π, e or a root is fine).

Show the answer

From the differential equation, dydx\frac{dy}{dx}=y−x= y - x=3−0= 3 - 0=3= 3; from the formula, 1+2e0=31 + 2e^0 = 3. They agree.

  • Answer: 3

5. Is y=x2y = x^2 a solution to xdydx=2yx\frac{dy}{dx} = 2y for x>0x > 0?

  1. No: dydx=2x\frac{dy}{dx} = 2x, which is not 2y2y.
  2. Yes: at x=1x = 1 both sides equal 2.
  3. No: an xx on the left side is not allowed.
  4. Yes: x⋅2x=2x2x \cdot 2x = 2x^2 and 2y=2x22y = 2x^2.
Show the answer

Left: x⋅2x=2x2x \cdot 2x = 2x^2. Right: 2x22x^2. They agree for every x>0x > 0, so y=x2y = x^2 is a solution.

  • No: dydx=2x\frac{dy}{dx} = 2x, which is not 2y2y.: The left side is xdydxx\frac{dy}{dx}, not dydx\frac{dy}{dx}.
  • Yes: at x=1x = 1 both sides equal 2.: The conclusion is right, but one point does not verify it.
  • No: an xx on the left side is not allowed.: A differential equation may contain x anywhere.
  • Correct: Yes: x⋅2x=2x2x \cdot 2x = 2x^2 and 2y=2x22y = 2x^2.: Both sides simplify to the same function.

6. For which positive constant kk does y=ekxy = e^{kx} satisfy y″−y′−6y=0y'' - y' - 6y = 0?

No calculator. Type the exact value (a fraction, π, e or a root is fine).

Show the answer

y′=kekxy' = ke^{kx}, y″=k2ekxy'' = k^2e^{kx}. Then ekx(k2−k−6)=0e^{kx}(k^2 - k - 6) = 0, and ekx≠0e^{kx} \ne 0, so (k−3)(k+2)=0(k - 3)(k + 2) = 0: k=3k = 3.

  • Answer: 3

Part 9 · Summary

Summary

To verify a solution to a differential equation, differentiate the function, substitute into both sides and show they agree for every xx in an interval. One equation can have infinitely many solutions, and a solution may hold only on an interval where everything is defined.

Part 10 · Up next

What comes next

Part 11 · Connections

Connections