dx2d2y+y=sec2(x)
But sec2(x)=tan2(x)+1
Rewriting the differential equation, we have
dx2d2y+y=tan2(x)+1......................(i)
The corresponding homogenous linear equation is
dx2d2y+y=0........................(ii)
To solve this homogenous linear equation (ii) ,Find the roots of characteristic equation
k2+1=0⟹ k1=−i or k2=i
The two roots of the characteristic equation are purely imaginary
∴y(x)=C1sin(x∣k1∣)+C2cos(x∣k2∣)
⟹y(x)=C1sin(x)+C2cos(x)...................(iii)
Equation (iii) is our general solution
Now we should solve the inhomogeneous equation (i) Using variation of parameters method
Suppose C1 is function of x and C2 is also a function of x
The general solution is:
⟹y(x)=C1(x)sin(x)+C2(x)cos(x).................(iv)
Where C1(x) and C2(x) by method of variation of parameters ,we find the solution from the system
y1(x)dxdC1(x)+y2(x)dxdC2(x)=0
dxdC1(x)dxdy1(x)+dxdC2(x)dxdy2(x)=f(x)
Where y1(x) and y2(x) are linearly independent solutions of linear Ordinary differential equations and f(x) is the free term and are given as
y1(x)=sin(x) , y2(x)=cos(x) and f(x)=tan2(x)+1
Substituting to the system above, we have
sin(x)dxdC1(x)+cos(x)dxdC2(x)=0
dxdC1(x)dxdsin(x)+dxdC2(x)dxdcos(x)=tan2(x)+1
But dxdsin(x)=cos(x) and dxdcos(x)=−sin(x)
Substituting to our system, we get:
sin(x)dxdC1(x)+cos(x)dxdC2(x)=0
cos(x)dxdC1(x)−sin(x)dxdC2(x)=tan2(x)+1
Solving the system simultaneously, We get
dxdC1(x)=cos(x)1 and dxdC2(x)=−cos2(x)sin(x)
let's solve dxdC1(x)=cos(x)1 and dxdC2(x)=−cos2(x)sin(x)
dxdC1(x)=cos(x)1⟹dC1(x)=cos(x)dx
Integrating both sides we have
∫dC1(x)=∫cos(x)dx⟹C1(x)=C3−2log(sin(x)−1)+2log(sin(x)+1)
dxdC2(x)=−cos2(x)sin(x)⟹dC2(x)=−cos2(x)sin(x)dx
Integrating both sides we have
∫dC2(x)=−∫cos2(x)sin(x)dx⟹C2(x)=C4−cos(x)1
Now, substitute C1(x) and C2(x) to the general solution (iv)
y(x)=C1(x)sin(x)+C2(x)cos(x)
=(C3−2log(sin(x)−1)+2log(sin(x)+1))sin(x)+(C4−cos(x)1)(x)cos(x)
∴y(x)=C2cos(x)+(C1−2log(sin(x)−1)+2log(sin(x)+1))sin(x)−1
Comments