1. Find the first derivative of $y$ with respect to $x$.
Given y=A−Bcos4x−21sin2x,
dxdy=4Bsin4x−cos2x
2. Find the second derivative of $y$ with respect to $x$.
dx2d2y=16Bcos4x+2sin2x
3. Substitute $y$ and $\frac{\text{d}^2y}{\text{d}x^2}$ into the given equation and simplify.
dx2d2y+4y=(16Bcos4x+2sin2x)+4(A−Bcos4x−21sin2x)
=16Bcos4x+2sin2x+4A−4Bcos4x−2sin2x
=4A+12Bcos4x
4. Compare coefficients to find $A$ and $B$.
We are given that dx2d2y+4y=3cos4x+1.
Therefore,
4A+12Bcos4x=1+3cos4x
Comparing the constant terms:
4A=1⟹A=41
Comparing the coefficients of cos4x:
12B=3⟹B=41
答案A=41, B=41