Checking a solution to a differential equation
Plug the function and its derivatives in.
A differential equation relates a function to its derivatives, like y′ = 2y. A function is a solution if substituting it (and its derivatives) makes the equation true for every x.
Example: Is y = e^(2x) a solution of y′ = 2y?
- y′ = 2e^(2x)
- 2y = 2e^(2x) — The two sides match
- yes — It is a solution
Why it works: A solution must make the equation true. Substituting it in and its derivatives checks that directly.
Tip: A differential equation usually has a whole family of solutions; an initial value picks out one.