01 / 21

Verifying
DE Solutions

Learn how to confirm whether a function satisfies a differential equation by substituting it back in and checking both sides.

Calculus 1

What Is a Differential Equation?

A differential equation (DE) is an equation that relates a function to one or more of its derivatives. Instead of solving for a number, we solve for an entire function.

Example DE
\(\dfrac{dy}{dx} = 2x\)
A Solution
\(y = x^2 + C\)

What Does Verify Mean?

Verifying a solution means you are not asked to solve the DE from scratch. Instead, you are given a candidate function and must show it satisfies the equation.

Given
A DE and a proposed function \(y = f(x)\)
Goal
Show LHS \(=\) RHS after substitution

The Verification Pipeline

Given
DE + \(y = f(x)\)
Differentiate
Find \(y', y'', \ldots\)
Substitute Into the DE Confirm
\(\text{LHS} = \text{RHS}\) ✓

The Verification Principle

In practice, this means: after substitution and simplification, both sides of the equation must be identically equal for all \(x\) in the domain: not just at a single point, but everywhere.

General vs Particular Solutions

General Solution
Contains an arbitrary constant \(C\). Represents a family of curves.

Example: \(y = Ce^{3x}\)
Particular Solution
A specific function with no free constant. Often satisfies an initial condition.

Example: \(y = 5e^{3x}\)

Solving vs Verifying

Solving a DE Verifying a Solution
Starting Point Only the DE The DE + a candidate \(y\)
Goal Find \(y = f(x)\) Confirm \(y = f(x)\) works
Techniques Separation, integrating factors, etc. Differentiation + substitution
Difficulty Often harder Usually straightforward

How to Verify: Step by Step

1
Identify the DE and the candidate function. Write them both clearly. Note the order of the DE (highest derivative present).
2
Compute all needed derivatives of \(y = f(x)\). If the DE involves \(y''\), find both \(y'\) and \(y''\).
3
Substitute \(y\), \(y'\), \(y''\), etc. into the DE, replacing every occurrence.
4
Simplify both sides independently. If LHS \(=\) RHS for all \(x\) in the domain, the function is a valid solution.

Example 1: First-Order DE

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

1
Identify: DE is \(y' = 2y\). Candidate is \(y = e^{2x}\).
2
Differentiate: \(y' = \dfrac{d}{dx}\bigl[e^{2x}\bigr] = 2e^{2x}\).
3
Substitute: Plug \(y\) and \(y'\) into the DE \(y' = 2y\).
LHS: \(y' \rightarrow 2e^{2x}\)
RHS: \(2y \rightarrow 2(e^{2x})\)
4
Confirm: The equation becomes \(2e^{2x} = 2e^{2x}\). This is a true statement, so the solution is verified. ✓

Visualizing \(y' = 2y\)

x y 0.5 1.0 1.5 2 4 6 8 \(y = e^{2x}\) \(y = 0.5\,e^{2x}\) \(y = 2e^{2x}\)

Example 2: Second-Order DE

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

1
Identify: DE is \(y'' + y = 0\). Candidate is \(y = \sin(x)\).
2
First derivative: \(y' = \cos(x)\).
3
Second derivative: \(y'' = -\sin(x)\).
4
Substitute: \(y'' + y = -\sin(x) + \sin(x) = 0\). ✓ LHS = RHS

Seeing \(y'' + y = 0\) in Action

x y π −π 2π −2π 1 −1 \(y = \sin x\) \(y'' = -\sin x\)

Example 3: General Solution

Verify that \(y = Ce^{-3x}\) is a solution of \(y' + 3y = 0\) for any constant \(C\).

1
Differentiate: \(y' = \dfrac{d}{dx}\bigl[Ce^{-3x}\bigr] = -3Ce^{-3x}\).
2
Substitute into LHS: \(y' + 3y = -3Ce^{-3x} + 3 \cdot Ce^{-3x}\).
3
Simplify: \(-3Ce^{-3x} + 3Ce^{-3x} = 0\). ✓ Equals RHS

Example 4: A Nonlinear DE

Verify that \(y = \dfrac{1}{1 - x}\) is a solution of \(y' = y^2\) for \(x \neq 1\).

1
Rewrite: \(y = (1 - x)^{-1}\).
2
Differentiate: \(y' = (-1)(1 - x)^{-2} \cdot (-1) = \dfrac{1}{(1 - x)^2}\).
3
Compute RHS: \(y^2 = \left(\dfrac{1}{1 - x}\right)^2 = \dfrac{1}{(1 - x)^2}\).
4
Compare: \(y' = \dfrac{1}{(1-x)^2} = y^2\). ✓ Verified

Common Mistakes to Avoid

✕ Chain Rule Errors
Forgetting the chain rule when differentiating compositions like \(e^{-3x}\) or \(\sin(2x)\). Always multiply by the inner derivative.
✕ Incomplete Substitution
Replacing \(y'\) but forgetting to replace \(y\) itself, or vice versa. Substitute every occurrence of \(y\), \(y'\), \(y''\), etc.
✕ Ignoring the Domain
A function may satisfy the DE algebraically but be undefined at certain points. Always state the valid interval.

Summary of Key Concepts

Concept Details
What you verify That a given function satisfies a given DE
Main tool Differentiation (not integration)
Key step Substitute \(y, y', y''\) into the DE and simplify
Success criterion LHS = RHS for all \(x\) in the domain
General solutions Contain arbitrary constant \(C\) that cancels
Domain matters State intervals where the solution is valid

Question 1 of 5

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

Question 2 of 5

What is the first step when verifying that a function is a solution to a differential equation?

Question 3 of 5

Verify: Is \(y = \cos(x)\) a solution of \(y'' + y = 0\)?

Question 4 of 5

A student claims \(y = x^2\) is a solution of \(y' = 3x\). Is this correct?

Question 5 of 5

When verifying \(y = Ce^{-3x}\) as a general solution of \(y' + 3y = 0\), what happens to the constant \(C\)?