Solve by the method of variation of parameter y''+y=secx
The corresponding homogeneous differential equation is
Characteristic (auxiliary) equation
"r=\\pm i"
The general solution of the homogeneous differential equation is
"y'=c_1 '\\cos x-c_1 \\sin x+c_2'\\sin x+c_2\\cos x"
If
"c_1 '\\cos x+c_2'\\sin x=0,"then
Substitute
"+c_1 \\cos x+c_2\\sin x=\\dfrac{1}{\\cos x}"
We have
"\\dfrac{\\sin^2 x}{\\cos x}c_2'+c_2'\\cos x=\\dfrac{1}{\\cos x}"
"c_2'=1"
Integrate
"c_2=\\int dx=x+C_2"
The general solution of the nonhomogeneous differential equation is
Comments
Leave a comment