Question Statement
Verify that the function y=acosx+bsinx, where a,b∈R, is a solution of the differential equation:
dx2d2y+y=0
Background and Explanation
To verify that a given function is a solution to a differential equation, we must calculate the derivatives of the function required by the equation and substitute them back into it. If the substitution results in an identity (where the left-hand side equals the right-hand side), the function is a valid solution.
Solution
Given the function:
y=acosx+bsinx
And the differential equation to verify:
dx2d2y+y=0
Differentiate the function y with respect to x:
dxdy=dxd(acosx+bsinx)
dxdy=a(−sinx)+b(cosx)
dxdy=−asinx+bcosx
Differentiate dxdy again with respect to x to find dx2d2y:
dx2d2y=dxd(−asinx+bcosx)
dx2d2y=−a(cosx)+b(−sinx)
dx2d2y=−acosx−bsinx
Now, substitute the values of y and dx2d2y into the left-hand side (LHS) of equation (1):
LHS=dx2d2y+y
LHS=(−acosx−bsinx)+(acosx+bsinx)
Group the like terms:
LHS=(−acosx+acosx)+(−bsinx+bsinx)
LHS=0+0
0=0
Since the LHS equals the RHS, the function y=acosx+bsinx is indeed a solution of the differential equation dx2d2y+y=0.
- Derivative of Sine: dxd(sinx)=cosx
- Derivative of Cosine: dxd(cosx)=−sinx
- Verification Method: Direct substitution of the function's derivatives into the differential equation.
Summary of Steps
- Write down the given function y and the differential equation.
- Compute the first derivative dxdy using standard trigonometric derivative rules.
- Compute the second derivative dx2d2y by differentiating the first derivative.
- Substitute the expressions for y and dx2d2y into the differential equation.
- Simplify the expression to show that 0=0, confirming the solution.