DIFFERENTIAL EQUATIONS • PROBLEM-SOLVING & MODELING TOOLS

Verifying Solutions — Checking Solutions by Differentiation/Substitution

Learn how to prove that a proposed function truly satisfies a differential equation by plugging it back in.

Historical Context & Motivation

Differential equations first appeared in the late 1600s, when mathematicians like Isaac Newton and Gottfried Wilhelm Leibniz developed calculus to describe rates of change in nature. As scientists proposed equations to model planetary motion, vibrating strings, and heat flow, a critical question arose: how can we be sure that a proposed solution actually works? Unlike algebra, where you can check an answer by plugging a number into an equation, differential equations involve entire functions as solutions. Verification by differentiation and substitution became the essential quality-control tool in mathematics.

1687
Newton's Principia
Isaac Newton publishes the Principia Mathematica, using differential equations to describe gravitational motion. Verifying solutions was done informally through geometric reasoning.
1736
Euler's Systematic Methods
Leonhard Euler develops systematic techniques for solving and verifying differential equations, establishing the practice of substituting proposed solutions back into the original equation.
1800s
Existence & Uniqueness Theorems
Augustin-Louis Cauchy and Rudolf Lipschitz prove rigorous theorems guaranteeing when solutions exist, making verification even more important to confirm a specific solution among possible alternatives.
Modern Era
Computer-Aided Verification
Today, software like Wolfram Mathematica and MATLAB can compute and verify solutions symbolically, but understanding the manual process remains essential for building mathematical intuition.

The central question this lesson addresses is straightforward yet powerful: given a differential equation and a proposed solution, how do we prove that the solution is correct? The answer lies in the technique of differentiation and substitution — computing the necessary derivatives of the proposed solution and substituting everything back into the original equation to see if both sides match.

Core Principles & Definitions

Before diving into the process, you need to understand a few foundational ideas. A differential equation is an equation that relates a function to one or more of its derivatives. A solution to a differential equation is any function that, when substituted into the equation along with its derivatives, makes the equation a true statement. Verification is the process of confirming this truth.

1

Differential Equation

An equation containing an unknown function and at least one of its derivatives. Example: dy/dx = 2x is a differential equation where y is the unknown function.
2

Proposed Solution

A specific function that someone claims satisfies the differential equation. For dy/dx = 2x, someone might propose y = x² + 5 as a solution.
3

Verification by Substitution

The process of computing derivatives of the proposed solution and plugging them into the differential equation. If both sides are equal for all values of the independent variable, the solution is verified.
4

Identity vs. Conditional Equation

After substitution, a valid solution produces an identity — a statement true for all values (like 2x = 2x). If it's only true for specific values, the function is not a solution.
KEY TAKEAWAY
Think of verifying a differential equation solution like checking a recipe. If someone tells you they baked a cake from a specific recipe, you can verify by checking each ingredient and step: does the final product match what the recipe says it should? Similarly, you take the proposed function (the cake), compute its derivatives (the ingredients), substitute them into the original equation (the recipe), and see if everything matches. If both sides of the equation become identical, the solution checks out.

Visual Explanation

The following diagram illustrates the step-by-step verification process as a flowchart. Starting from the left with the differential equation and proposed solution, you follow the arrows through differentiation, substitution, and simplification to arrive at a final verdict.

The flowchart shows the five-step verification process. Start by identifying the equation and proposed solution (Step 1), then differentiate (Step 2), substitute (Step 3), simplify (Step 4), and compare both sides (Step 5). A match means the solution is verified; a mismatch means it is rejected.

Notice how the process is entirely mechanical — there is no guessing involved. You apply calculus rules to differentiate, algebra to substitute and simplify, and logic to compare. If after simplification both sides of the equation are identical expressions, then the proposed function is indeed a solution. This process works for any order of differential equation: first-order, second-order, or beyond. The only thing that changes is how many derivatives you need to compute.

Mathematical Framework

Let's formalize the verification process. Suppose you are given a first-order ordinary differential equation and a proposed solution. The framework below shows exactly what you compute and what you check.

GENERAL FIRST-ORDER ODE
F(x, y, dy/dx) = 0
Here x is the independent variable, y is the unknown function of x, and dy/dx is the first derivative of y with respect to x.
VERIFICATION CONDITION
If y = φ(x) is a solution, then F(x, φ(x), φ′(x)) = 0 for all x in the domain.
The function φ(x) is the proposed solution. We compute φ′(x) by differentiating φ, then substitute both φ(x) and φ′(x) into the equation F. If the result is identically zero, the solution is verified.
SECOND-ORDER EXTENSION
G(x, y, dy/dx, d²y/dx²) = 0
For a second-order ODE, you must compute both the first derivative φ′(x) and the second derivative φ″(x) of the proposed solution, then substitute all three — φ(x), φ′(x), and φ″(x) — into the equation.
⚠️ Important Distinction
Verification tells you whether a given function is a solution — it does not tell you how to find the solution in the first place. Solving and verifying are two separate skills. In this lesson we focus entirely on the verification side.

Detailed Breakdown — First-Order vs. Second-Order Verification

The verification process follows the same logic regardless of the order of the differential equation, but the amount of work increases with higher orders. The diagram below compares a first-order verification (left) with a second-order verification (right), showing the additional differentiation step required.

Left: a first-order ODE requires one differentiation before substitution. Right: a second-order ODE requires two differentiations before substitution. In both cases, the final step is checking that both sides of the equation reduce to the same expression.
Comparison of verification workload by equation order
FeatureFirst-Order VerificationSecond-Order Verification
Derivatives neededOne (y′)Two (y′ and y″)
Substitution targetsReplace y and dy/dxReplace y, dy/dx, and d²y/dx²
Common solution formsExponentials, simple polynomialsSines, cosines, exponentials, combinations
Typical algebra difficultyLow to moderateModerate to high

Worked Example

Let's work through a complete verification problem from start to finish. We will verify that y = e2x is a solution to the differential equation y″ − 3y′ + 2y = 0.

Verify that y = e²ˣ solves y″ − 3y′ + 2y = 0
1
Step 1 — Identify the DE and proposed solutionThe differential equation is y″ − 3y′ + 2y = 0. This is a second-order linear ODE with constant coefficients. The proposed solution is y = e2x. Since the equation contains y″, we will need to compute both the first and second derivatives of the proposed solution.
DE: y″ − 3y′ + 2y = 0 ; Proposed: y = e2x
2
Step 2 — Compute the first derivativeUsing the chain rule, the derivative of e2x with respect to x is: y′ = d/dx[e2x] = 2e2x. The coefficient 2 comes from differentiating the exponent 2x.
y′ = 2e2x
3
Step 3 — Compute the second derivativeDifferentiating y′ = 2e2x once more: y″ = d/dx[2e2x] = 2 × 2e2x = 4e2x.
y″ = 4e2x
4
Step 4 — Substitute into the DENow we replace y″, y′, and y in the equation y″ − 3y′ + 2y = 0 with the expressions we found: 4e2x − 3(2e2x) + 2(e2x) = 0.
4e2x − 6e2x + 2e2x = 0
5
Step 5 — Simplify and compareCombining like terms on the left side: (4 − 6 + 2)e2x = 0e2x = 0. The left side equals 0, which matches the right side (0). Since this is true for all values of x, the solution is verified.
0 = 0 ✓ — Solution verified!
💡 Pro Tip
When you combine like terms in the final step, you are looking for the coefficients to sum to zero. In this example, 4 − 6 + 2 = 0. If the coefficients had not summed to zero, the proposed function would not be a solution. Always double-check your arithmetic at this stage — a sign error can make you incorrectly accept or reject a solution.

Strengths & Limitations of Verification

Verification by differentiation and substitution is an extremely reliable technique, but it has both clear strengths and definite limitations. Understanding these will help you know when and how to apply the method effectively.

Strengths and limitations of the verification method
StrengthsLimitations
100% conclusive — if both sides match, the solution is definitely correctDoes not help you find a solution; it only checks one you already have
Works for any order of ODE (first, second, third, etc.)Can be algebraically tedious for complex functions (e.g., products of trigonometric and exponential functions)
Requires only differentiation and algebra — no new techniques to learnDoes not tell you whether the solution is the general solution or just a particular one
Serves as a powerful error-checking tool on exams and homeworkA successful verification does not guarantee uniqueness — other functions might also be solutions
KEY TAKEAWAY
Think of verification like spell-check on an essay. Spell-check can confirm that every word is spelled correctly, but it cannot write the essay for you. Similarly, verification can confirm a solution is correct, but it cannot produce the solution. It's a tool for quality assurance, not for discovery.

Connection to Advanced Topics

The verification technique you've learned here is the foundation for several more advanced ideas you'll encounter if you continue studying differential equations. Understanding how verification connects to these topics will help you see the bigger picture.

How verification connects to more advanced differential equations topics
This LessonAdvanced Extension
Verify a single proposed solutionVerify a general solution containing arbitrary constants (e.g., y = C₁eˣ + C₂e²ˣ)
Check that a function satisfies an ODEApply initial conditions to determine specific constants (Initial Value Problems)
Verify by hand using differentiation rulesUse computer algebra systems (CAS) for automated symbolic verification
Substitute into a single equationVerify solutions to systems of differential equations (multiple equations simultaneously)

In future coursework, you will encounter existence and uniqueness theorems that guarantee when a differential equation has exactly one solution passing through a given point. Verification remains your primary tool for confirming that a specific function is that unique solution. The habit of always checking your answers by substitution will serve you well in every math and science course ahead.

Practice Problems

Now it's your turn. Work through these five problems in order, as they increase in difficulty. For each one, follow the full verification process: differentiate the proposed solution, substitute into the differential equation, simplify, and determine whether the solution is valid.

PROBLEM 1CONCEPTUAL
In your own words, explain why verifying a solution to a differential equation requires differentiation rather than simply plugging in a single number for x. What makes solutions to differential equations different from solutions to algebraic equations like x² − 4 = 0?
PROBLEM 2BASIC CALCULATION
Verify that y = 3x² is a solution to the differential equation dy/dx = 6x.
PROBLEM 3INTERMEDIATE
Determine whether y = e−3x is a solution to the second-order DE y″ + 2y′ − 3y = 0. Show all differentiation and substitution steps.
PROBLEM 4APPLIED
A population model uses the differential equation dP/dt = 0.05P, where P(t) represents population at time t (in years). A biologist proposes that the population follows P(t) = 200e0.05t. Verify this solution and interpret what the constant 200 represents.
PROBLEM 5CRITICAL THINKING
Consider the differential equation y″ + 4y = 0. Both y₁ = sin(2x) and y₂ = cos(2x) are proposed solutions. (a) Verify each one independently. (b) Then verify that y₃ = 5sin(2x) − 3cos(2x) is also a solution. (c) Based on your results, what general principle can you state about combining known solutions?

Lesson Summary

Verifying solutions to differential equations is the process of differentiating a proposed function as many times as necessary and then substituting both the function and its derivatives back into the original equation. If, after algebraic simplification, both sides of the equation are identical for all values of the independent variable, the solution is verified. This technique works for any order of ordinary differential equation — the only difference is how many derivatives you compute.

Key points to remember: verification is a tool for confirming correctness, not for discovering solutions. It relies on your knowledge of differentiation rules (power rule, chain rule, product rule) and careful algebra. For linear homogeneous equations, the Superposition Principle tells us that any linear combination of individual solutions is also a solution — and verification by substitution is how we prove it. Building the habit of always verifying your answers will strengthen both your confidence and your accuracy in differential equations.

Varsity Tutors • Differential Equations • Verifying Solutions — Checking Solutions by Differentiation/Substitution