Solving second order linear differential equation using variation of parameters.

114 Views Asked by At

Let the differential equation be $$y''(x)-4y'(x)+4y(x)=e^{-2x}.$$ Then find the general solution using variation of parameters.

My Attempt First I found the solution to the homogeneous equation which is $y_h=(a+bx)e^{2x} $. Now using the know formulae for parameters we have $$a (x)=-\int \frac {y_2(x)g (x)}{W (y_1,y_2)} ,\quad b (x)=\int \frac {y_1 (x)g (x)}{W (y_1,y_2)}.$$ From here $$a (x)=-\frac {4x+1}{16}e^{-4x},\quad b (x)=-\frac {1}{4}e^{-4x}.$$ Thus my general solution is $$y=y_h+a (x)y_1(x)+b (x)y_2(x)=(a+bx)e^{2x}-e^{-4x}(\frac {8x+1}{16})$$ but this isn't matching with the solution of WA. Note that here $y_1(x)=e^{2x}$, $y_2 (x)=xe^{2x},W (y_1,y_2)=e^{4x} $.

1

There are 1 best solutions below

4
On BEST ANSWER

You are almost correct, just change the sign of $a(x)$ and recall that the particular solution given by the variation of parameters is $y(x)=a(x)y_1(x)+b(x)y_2(x)$.

Notice that $W (e^{2x},xe^{2x})=e^{4x}$ and $$a(x)=-\int \frac {xe^{2x}e^{-2x}}{e^{4x}}dx=\frac{(1+4x)e^{-4x}}{16} ,\quad b(x)=\int \frac {e^{2x}e^{-2x}}{e^{4x}}dx=-\frac{e^{-4x}}{4}.$$ Therefore a particular solution is $$y(x)=a(x)e^{2x}+b(x)xe^{2x}=\frac{(1+4x)e^{-2x}}{16}-\frac{4xe^{-2x}}{16} =\frac{e^{-2x}}{16}.$$

More simply, here a particular solution has the form $y(x)=Ce^{-2x}$ and it satisfies $$y''(x)-4y'(x)+4y(x)=4Ce^{-2x}+8Ce^{-2x}+4Ce^{-2x}=e^{-2x}\implies C=\frac{1}{16}.$$