01 / 21

Verifying Solutions
to Differential Equations

Learn to confirm whether a function satisfies a differential equation by differentiation and substitution: the essential first skill in differential equations.

Differential Equations

What Is a Differential Equation?

A differential equation (DE) is an equation that relates a function to one or more of its derivatives. For example:

A solution to a DE is any function \( y = f(x) \) that, when substituted in, makes the equation true for all \( x \) in its domain.

Why Verify Solutions?

✓ Confirm Correctness
After solving a DE, verification catches algebra and differentiation errors.
✓ Check Given Functions
Exam problems often ask: "Is this function a solution?" You must know how to check.
✓ Build Intuition
Seeing which functions satisfy which DEs deepens your understanding of both.

The Verification Process

Proposed Solution
\( y = f(x) \)
Differentiate
\( y', y'', \ldots \)
Substitute Into the DE
Does \( \text{LHS} = \text{RHS} \)?
If yes: verified ✓ If no: not a solution
\( \text{LHS} \neq \text{RHS} \)

The Verification Principle

1
Compute all needed derivatives of the candidate: \( f'(x), f''(x), \ldots \)
2
Replace every occurrence of \( y, y', y'' \) in the DE with the corresponding expressions.
3
Simplify both sides. If LHS \( \equiv \) RHS, the function is a solution.

Solutions vs Non-Solutions

Consider the DE: \( \dfrac{dy}{dx} = 2x \). Which functions are solutions?

✓ \( y = x^2 + 5 \)
\( y' = 2x \). Substituting: \( 2x = 2x \) ✓
✓ \( y = x^2 - 3 \)
\( y' = 2x \). Substituting: \( 2x = 2x \) ✓
✕ \( y = x^3 \)
\( y' = 3x^2 \). But \( 3x^2 \neq 2x \) ✕

General vs Particular Solutions

General Solution Particular Solution
Definition Contains arbitrary constant(s) Specific value of constant(s)
Example for \( y' = 2x \) \( y = x^2 + C \) \( y = x^2 + 5 \)
Obtained by Solving the DE Applying initial condition
Verification Works for all \( C \) Works for one specific \( C \)

How to Apply Verification

1
Identify what's needed: read the DE to determine which derivatives (\( y', y'', \ldots \)) appear.
2
Differentiate the candidate: compute every derivative that appears in the DE.
3
Substitute everything: replace \( y, y', y'' \) in the DE with the computed expressions.
4
Simplify both sides independently: factor, combine like terms, use identities.
5
Compare: if \( \text{LHS} = \text{RHS} \) for all \( x \) in the domain, the function is a verified solution.

Example 1: First-Order DE

Verify that \( y = e^{3x} \) is a solution of \( \dfrac{dy}{dx} - 3y = 0 \).

1
Differentiate: \( y = e^{3x} \implies y' = 3e^{3x} \)
2
Substitute into DE: \( y' - 3y = 3e^{3x} - 3e^{3x} \)
3
Simplify: \( 3e^{3x} - 3e^{3x} = 0 \) ✓

Example 2: Second-Order DE

Verify that \( y = \sin(x) \) is a solution of \( y'' + y = 0 \).

1
First derivative: \( y' = \cos(x) \)
2
Second derivative: \( y'' = -\sin(x) \)
3
Substitute: \( y'' + y = -\sin(x) + \sin(x) = 0 \) ✓

Example 3: Product Rule Needed

Verify that \( y = xe^{x} \) satisfies \( y'' - 2y' + y = 0 \).

1
First derivative (product rule): \( y' = e^x + xe^x = (1+x)e^x \)
2
Second derivative: \( y'' = e^x + (1+x)e^x = (2+x)e^x \)
3
Substitute: \( (2+x)e^x - 2(1+x)e^x + xe^x \)
4
Simplify: \( [(2+x) - 2(1+x) + x]e^x = [2+x-2-2x+x]e^x = 0 \) ✓

Graphical Interpretation

For \( y' = 2x \), the DE says the slope at every point equals \( 2x \). Let's see \( y = x^2 + 1 \) and its slope field:

-3 -2 -1 0 1 2 3 1 2 3 4 5
\( \text{slope} = 2 \)
\( y = x^2 + 1 \)
x y

Verifying with Initial Conditions

Sometimes you must verify both the DE and an initial condition (IVP). Verify that \( y = e^{-2x} \) solves:

1
Check the DE: \( y' = -2e^{-2x} \). Then \( y' + 2y = -2e^{-2x} + 2e^{-2x} = 0 \) ✓
2
Check initial condition: \( y(0) = e^{0} = 1 \) ✓

When Verification Fails

Show that \( y = e^{2x} \) is not a solution of \( y' + 2y = 0 \).

1
Differentiate: \( y' = 2e^{2x} \)
2
Substitute: \( y' + 2y = 2e^{2x} + 2e^{2x} = 4e^{2x} \)
3
Compare: \( 4e^{2x} \neq 0 \) ✕ Not a solution

Common Mistakes

✕ Forgetting the Chain Rule
When differentiating \( e^{3x} \), the derivative is \( 3e^{3x} \), not \( e^{3x} \). Always apply the chain rule to composite functions.
✕ Dropping Constants
A constant \( C \) in \( y = x^2 + C \) vanishes when differentiated: \( y' = 2x \). But you must still include it when substituting \( y \) itself.
✕ Not Checking All Conditions
For an IVP, verifying the DE alone is not enough. You must also check that \( y(x_0) = y_0 \) is satisfied.

Verification Summary

Step Action Result
1. Identify Read DE for \( y', y'', \ldots \) Know what to compute
2. Differentiate Compute needed derivatives Expressions for \( y', y'' \)
3. Substitute Replace \( y, y', y'' \) in DE Algebraic expression
4. Simplify Combine and reduce LHS and RHS
5. Compare Check \( \text{LHS} = \text{RHS} \) identically ✓ Solution or ✕ Not

Question 1 of 5

Is \( y = e^{5x} \) a solution of \( y' - 5y = 0 \)?

Question 2 of 5

Which is the first step in verifying that a function solves a differential equation?

Question 3 of 5

For the DE \( y'' + 4y = 0 \), verify: does \( y = \cos(2x) \) satisfy it?

Question 4 of 5

A student verifies \( y = x^3 \) for the DE \( xy' - 3y = 0 \) and gets LHS \( = 0 \). Is this correct?

Question 5 of 5

For the IVP \( y' = y,\; y(0) = 3 \), which function is the solution?