How to Show That a Function Solves a Differential Equation
At a glance
- 1. Check the domain
Identify where the proposed function and all required derivatives are defined.
- 2. Differentiate
Compute each derivative that appears in the differential equation.
- 3. Substitute
Replace the unknown function and its derivatives with the proposed function and its derivatives.
- 4. Simplify
Verify the resulting equation holds throughout the required interval.
- 5. Check conditions
If initial or boundary conditions are given, substitute the relevant values and verify them too.
To check whether a function solves a differential equation, substitute the function and its derivatives into the equation. The result must be an identity on the interval where the solution is claimed—not merely true at one point. If the problem also gives initial or boundary conditions, the function must satisfy those conditions too.
What it means to be a solution
A differential equation relates an unknown function to one or more of its derivatives. For example,
is a second-order differential equation. A proposed function is a solution on an interval if it has the required derivatives there and makes the equation true at every point of that interval.
The interval matters. A function may satisfy the equation wherever its derivatives exist but fail to be defined at some points. For instance, cannot be a solution on an interval containing , even if substitution works elsewhere.
A differential equation may have many solutions. An initial condition, such as , selects functions that also pass through a specified value. A function that satisfies the differential equation but not the initial condition is not a solution to the full initial-value problem.
A step-by-step check
- Read the equation and identify the required derivatives. For an equation involving , the candidate must be twice differentiable on the interval under consideration.
- Differentiate the candidate. Compute only the derivatives needed, taking care with signs and constants.
- Substitute into the equation. Replace each occurrence of the unknown function and its derivatives with the corresponding expressions.
- Simplify. If both sides agree for every point in the interval, the differential equation is satisfied.
- Test any extra conditions. Evaluate the function or its derivatives at the stated endpoints or initial point.
When the equation is written in a form such as , substitution should reduce the left-hand side to zero. If it is written as an equality, substitute into both sides and compare them.
Worked example: a polynomial solution
Check whether solves the differential equation
with initial conditions and .
First compute the derivatives:
Substitute the second derivative into the differential equation. Its left-hand side is , which equals its right-hand side, so the equation holds for every real .
Now check the initial conditions:
Both conditions hold. Therefore, is a solution of this initial-value problem. The interval is all real numbers because the polynomial and its derivatives are defined everywhere. The equation alone has other solutions, too: integrating twice gives . The two initial conditions determine , producing the particular solution checked above.
How to check a first-order equation
Suppose the proposed function is and the equation is . Differentiating gives . Substituting the candidate into the right-hand side also gives . The two sides match for all real , so the function solves the equation on .
This same process works for nonlinear equations. For example, if the equation contains a product such as , substitute the candidate into both factors, then simplify the product. There is no requirement that a solution be a polynomial or that the equation be linear.
Common mistakes
- Checking only one value of the independent variable. An equation that holds at may fail at other points. A solution must satisfy it throughout the claimed interval.
- Forgetting a derivative or using the wrong one. In a second-order equation, substituting where belongs will not verify the equation.
- Ignoring the domain. Check that the candidate and every derivative in the equation exist on the full interval being claimed.
- Skipping initial or boundary conditions. Satisfying the differential equation is not enough when the problem specifies additional conditions.
- Confusing verification with solving. Verification checks one proposed function. Finding the general solution requires determining all functions that satisfy the equation, which is a separate task.
If substitution does not produce an identity, the proposed function is not a solution on the claimed interval. Recheck your differentiation and algebra before deciding whether the candidate or the claimed interval is at fault.
References
- Elementary Differential Equations and Boundary Value Problems, William E. Boyce, Richard C. DiPrima, and Douglas B. Meade
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.