A solution to a differential equation is a function y(x) whose derivatives y′(x),y′′(x),...,y(n)(x) exist and satisfy the differential equation in the interval where the equation is defined.
Verification of a solution of a differential equation
To verify if a function y=f(x) is a solution to a given differential equation:
Identify the function and the differential equation.
Find the required derivatives of the given function.
Substitute the derivatives and the original function into the differential equation.
If a true statement is obtained (LHS = RHS), the function is a solution.
If a false statement is obtained (LHS ≠ RHS), the function is not a solution.
Example 1
Verify that f(x)=2sinx+2cosx is a solution of the differential equation f′′(x)+f(x)=0.
Solution:
Given f(x)=2sinx+2cosx.
f′(x)=2cosx−2sinx
f′′(x)=−2sinx−2cosx
Substituting into the differential equation:
f′′(x)+f(x)=(−2sinx−2cosx)+(2sinx+2cosx)=0
The equation is satisfied. Therefore, f(x)=2sinx+2cosx is a solution.
Example 2
Show that x2+y2−16=0 is a solution of the differential equation xy′+y=0 in the interval (−4,4).
Solution:
Given x2+y2−16=0.
Differentiating implicitly with respect to x:
2x+2ydxdy=0
x+ydxdy=0
xy′+y=0
The given equation is satisfied. Therefore, x2+y2−16=0 is a solution.
Alternatively, solving for y: y=±16−x2. Then y′=∓16−x2x. Substituting into xy′+y: