Skip to main content
Logo image

Section 2.2 Verifying Solutions

In the previous section, we discussed what it means for a function to be a solution to a differential equation. Now, we turn our attention to how we can verify that a proposed function is indeed a solution.
The process of verifying a solution is straightforward: you substitute the proposed function into the differential equation and check whether the equation holds true. This simple test helps ensure that the function satisfies the relationship defined by the differential equation.

Note 17. Tip: Before verifying, move all terms to one side.

y=3yandy3y=0.
0=0.
Let’s look at a few examples.

Example 18.

Verify the given solutions for each differential equation. A. Verify that  y=2x2  is a solution to  xy2x2=y.
Solution 1. Solution
Let’s begin by moving all terms to the left-side of the equation.
xy2x2y=0
To reduce errors and break the problem into more manageable steps, we will compute and simplify the derivatives appearing in the equation.
y=2x2,y=4x
Finally, we substitute in y and y and simplify.
xy2x2y= 0x(4x)2x2(2x2)= 04x22x22x2= 00= 0true
Therefore, y=2x2 is a solution to xy2x2=y.
B. Verify that  P=sint  is a solution to  2P+P=sint.
Solution 2. Solution
As before, we compute P since it appears in the equation and move all terms to the left-side.
P=sint,P=cost,P=sint
Plug P and P in and simplify.
2P+Psint= 02(sint)+sintsint= 02sint+sintsint= 02sint= 0false
Therefore, P=sint is not a solution to 2P+P=sint.

Example 19.

  y=2e3ty=e4t
yy12y=0.
Solution 1. y=2e3t
Find y and y since they appear in the equation.
y= 2e3ty= 2e3t(3)=6e3ty= 6e3t(3)=18e3t
Plug y,y, and y into the DE and simplify.
yy12y= 018e3t(6e3t)12(2e3t)= 018e3t+6e3t24e3t= 00= 0true
Therefore, y=2e3t is a solution to yy12y=0.
Solution 2. y=e4t
Find y and y since they appear in the DE.
y= e4ty= e4t(4)=4e4ty= 4e4t(4)=16e4t
Plug y,y, and y into the DE and simplify.
yy12y= 016e4t4e4t12(e4t)= 016e4t4e4t12e4t= 00= 0true
Therefore, y=e4t is a solution to yy12y=0.

Example 20.

Verify that  y=3sin(x2) is a solution to
yxy=12x2sin(x2).
Solution. Solution
Find y and y since they appear in the equation and move all terms to the left-side.
y= 3sin(x2)y= 3cos(x2)2x=6xcos(x2)y= 6cos(x2)12xsin(x2)=6cos(x2)12xsin(x2)
Plug in y,y, and y and simplify.
yxy12x2sin(x2)= 06xcos(x2)x(6cos(x2)12xsin(x2))12x2sin(x2)= 06xcos(x2)6xcos(x2)12x2sin(x2)12x2sin(x2)= 00= 0
Therefore, y=3sin(x2) is a solution to y12x2sin(x2)=xy.
You can even verify that a function is a solution to a differential equation when the function contains constants as the following example shows.

Example 21.

  y=12x2+c1x+c2 y=1.
Solution. Solution
Move terms to left: y1=0
Find y since it appears in the DE.
y= 12x2+c1x+c2y= x+c1y= 1
Plug y into the DE and simplify.
y1= 011= 00= 0
Therefore, y=12x2+c1x+c2 is a solution to y=1.
 3 
In fact, it is the general solution, but we don’t show that here.
As you work through more complex differential equations, this verification process becomes a valuable tool. In the next section, we’ll discuss the different types of solutions you will encounter and how you can visualize them.

Reading Questions Check-Point Questions

1. Moving all terms of a differential equation to one side of the equation is a required step for verifying the solution to a differential equation..

    Moving all terms of a differential equation to one side of the equation is a required step for verifying the solution to a differential equation.
  • True
  • Incorrect.
    Read the note provided in this section.
  • False
  • Correct! This is not a required step, but it can sometimes simplify the process.

2. y=x2+3 is a solution to dydx3=2x.

    y=x2+3 is a solution to the differential equation dydx3=2x.
  • True
  • Incorrect.
    y=x2+3 is not a solution since
    dydx3= 2xddx[x2+3]3= 2x2x3= 2xfalse
  • False
  • Correct!
    y=x2+3 is not a solution since
    dydx3= 2xddx[x2+3]3= 2x2x3= 2xfalse

3. List the steps needed to verify s=cos(3x) is a solution to s6s+9s=0.

4. A differential equation has one solution.

  • True
  • Incorrect.
    Example 19 shows a differential equation with two solutions.
  • False
  • Correct!

5. Consider the differential equation with missing right-hand side:
y4xy=XXXXX.
Assuming y=2x3 is a solution to this equation, which of the following is a possible right-hand side?

  • 2x3+4x2
  • Incorrect. Plug y and y into the left-side and simplify.
  • 0
  • Incorrect. Plug y and y into the left-side and simplify.
  • 12x
  • Correct! Plugging y=6x2 and y=12x into the left-side gives
    (12x)4x(6x2)= XXXXX12x24x= XXXXX12x= XXXXXtrue
    and to get a true statement, the right-hand side must be 12x.
You have attempted 1 of 6 activities on this page.