# Thread: solve by variation of parameters

1. ## solve by variation of parameters

need urgent help solving this DE by variation of parameters

y'' + y = sec (theta) * tan (theta)

any help is greatly appreciated

thank you

2. Originally Posted by kithy
need urgent help solving this DE by variation of parameters

y'' + y = sec (theta) * tan (theta)

any help is greatly appreciated

thank you
Hello kithy,

First we need to find the complimentry solution to the associated homogenious equation.

$\displaystyle y_c=c_1\sin(t)+c_2\cos(t)$

Now we know that our particular solution will be of the form.

$\displaystyle y_p=u_1(t)\sin(t)+u_2(t)\cos(t)$

So the wronskian is

$\displaystyle W=\begin{vmatrix} \sin(t) && \cos(t) \\ \cos(t) && -\sin(t) \\ \end{vmatrix}=-1$

$\displaystyle W_1=\begin{vmatrix} 0 && \cos(t) \\ \sec(t)\tan(t) && -\sin(t) \\ \end{vmatrix}=-\tan(t)$

$\displaystyle W_2=\begin{vmatrix} \sin(t) && 0 \\ \cos(t) && \sec(t)\tan(t) \\ \end{vmatrix}=\tan^2(t)=\sec^2(t)-1$

$\displaystyle u_1(t)=\int \frac{W_1}{W}dt=\int \tan(t)dt=-\ln|\cos(t)|$

$\displaystyle u_2(t)=\int \frac{W_2}{W}dt=\int -\sec^2(t)+1 dt =t-\tan(t)$

So finally our solution is

$\displaystyle y=c_1\sin(t)+c_2\cos(t)+(-\ln|\cos(t)|)\sin(t)+(t-\tan(t))\cos(t)$

simplifying gives

$\displaystyle y=c_1\sin(t)+c_2\cos(t)-\sin(t)\ln|\cos(t)|+t\cos(t)-\sin(t)$