01 / 21

Verifying
DE Solutions

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

AP Calculus Calculus 2

What is a Differential Equation?

A differential equation (DE) is an equation that relates a function to one or more of its derivatives. The unknown is not a number: it is an entire function.

Example DE
\( y' = 2y \): the rate of change of \( y \) is proportional to \( y \) itself.
Solution
A function like \( y = Ce^{2x} \) that, once substituted, makes the equation true for all \( x \).

What Does Verify Mean?

To verify a solution means to substitute the proposed function (and its derivatives) into the DE and show that both sides are identical. You are not solving: you are checking someone else's answer.

Proposed \( y \)
Compute \( y' \)
Substitute
\( \text{LHS} = \text{RHS} \)
Given Differentiate Plug in Check ✓

Why Verification Matters

Unlike algebra, where you can often spot-check a number, DE solutions involve families of functions. Verification is the definitive proof that a candidate function is truly a solution.

Confirms correctness
After solving a DE, verifying ensures no algebra or differentiation errors crept in.
Tests given answers
On exams you may be handed a function and asked: "Is this a solution?" Verification is the tool.
Builds intuition
Seeing why a function works deepens understanding of the DE's behavior.

The Core Principle

Formally, given a DE such as \( F(x, y, y', y'', \ldots) = 0 \), the function \( y = f(x) \) is a solution if:

This is not about solving for \( y \). It is about plugging in and simplifying until both sides match.

General vs. Particular Solutions

x y
\( y(0) = 1 \)
General: \( y = Ce^{0.5x} \)
\( C = 2 \) \( C = 0.5 \) \( C = 1 \) (particular)
General Solution
Contains an arbitrary constant \( C \). Represents an entire family of curves, e.g. \( y = Ce^{x} \).
Particular Solution
A specific member where \( C \) is fixed by an initial condition, e.g. \( y(0) = 1 \Rightarrow C = 1 \).

Solving vs. Verifying

Solving Verifying
Goal Find \( y = f(x) \) Confirm given \( y \) works
Starting point The DE only DE + proposed solution
Main tool Separation, integrating factors, etc. Differentiation + substitution
Difficulty Often hard Usually straightforward
Result A new function True / False

How to Verify: Step by Step

1
Identify what you need. Read the DE: does it involve \( y' \), \( y'' \), or higher? Note which derivatives are required.
2
Differentiate the proposed solution. Compute \( y' \) (and \( y'' \), etc.) using standard rules: product, chain, quotient.
3
Substitute into the DE. Replace every occurrence of \( y, y', y'' \) in the DE with the expressions you found.
4
Simplify both sides. Combine like terms, factor, and reduce until the equation is clearly an identity (e.g. \( 0 = 0 \)).
5
State the conclusion. If both sides match for all \( x \) in the domain, the function is a solution. Otherwise, it is not.

Example 1: First-Order DE

1
Differentiate: \( y = e^{3x} \;\Rightarrow\; y' = 3e^{3x} \)
2
Substitute into DE: \( y' - 3y = 3e^{3x} - 3 \cdot e^{3x} \)
3
Simplify: \( 3e^{3x} - 3e^{3x} = 0 \; \checkmark \)

Example 2: General Solution

1
Differentiate: \( y' = C \cdot (-2) e^{-2x} = -2Ce^{-2x} \)
2
Substitute: \( y' + 2y = -2Ce^{-2x} + 2 \cdot Ce^{-2x} \)
3
Simplify: \( -2Ce^{-2x} + 2Ce^{-2x} = 0 \; \checkmark \)

Example 3: Second-Order DE

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

Example 4: Product Rule Needed

1
Differentiate (product rule): \( y' = e^{x} + xe^{x} = (1+x)e^{x} \)
2
Substitute: \( y' - y = (1+x)e^{x} - xe^{x} \)
3
Simplify: \( e^{x} + xe^{x} - xe^{x} = e^{x} \; \checkmark \)

When Verification Fails

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

Verifying Initial Conditions

An initial value problem (IVP) pairs a DE with conditions like \( y(0) = 5 \). When verifying an IVP solution, you must check two things:

Step A
Verify the function satisfies the DE itself (as before).
Step B
Check that the function satisfies the initial condition: plug in the given \( x_0 \) and confirm \( y(x_0) \) matches.

Common Mistakes

✕ Wrong derivative
Forgetting the chain rule when differentiating \( e^{kx} \) or composite functions. Always multiply by the inner derivative.
✕ Skipping IC check
Verifying the DE but forgetting to check the initial condition. Both must hold for an IVP.
✕ Sign errors
Dropping a negative sign during substitution. Write every step explicitly to avoid this.

Summary Reference

Scenario What to Do Key Check
First-order DE Compute \( y' \), substitute \( \text{LHS} = \text{RHS} \)
Second-order DE Compute \( y' \) and \( y'' \), substitute \( \text{LHS} = \text{RHS} \)
General solution (has \( C \)) Keep \( C \) symbolic, verify \( C \) cancels or factors
IVP (has \( y(x_0) = y_0 \)) Verify DE + plug in \( x_0 \) Both DE and IC satisfied
Non-solution Substitute and simplify \( \text{LHS} \neq \text{RHS} \)

Question 1 of 5

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

Question 2 of 5

To verify \( y = x^2 \) solves \( xy' - 2y = 0 \), what is the first step?

Question 3 of 5

Which function is a solution of \( y'' + 4y = 0 \)?

Question 4 of 5

You verify that \( y = 3e^{-2x} \) satisfies \( y' + 2y = 0 \). Does it also satisfy the IVP with \( y(0) = 5 \)?

Question 5 of 5

When verifying \( y = xe^{x} \) for the DE \( y' - y = e^{x} \), what differentiation rule is essential?