Let us solve the equation:
d 2 y d x 2 − 2 d y d x = e x sin x \frac{d^2y}{dx^2}-2\frac{dy}{dx}=e^x \sin x d x 2 d 2 y − 2 d x d y = e x sin x
The characteristic equation of the homogeneous equation is the following:
k 2 − 2 = 0 k^2-2=0 k 2 − 2 = 0
Therefore, k 1 = − 2 , k 2 = 2 k_1=-\sqrt{2}, k_2=\sqrt{2} k 1 = − 2 , k 2 = 2 .
According to the method of variation of parameter, the differential equation has the following solution:
y ( x ) = C 1 ( x ) e − 2 x + C 2 ( x ) e 2 x y(x)=C_1(x)e^{-\sqrt{2}x}+ C_2(x)e^{\sqrt{2}x} y ( x ) = C 1 ( x ) e − 2 x + C 2 ( x ) e 2 x .
For functions C 1 ( x ) C_1(x) C 1 ( x ) and C 2 ( x ) C_2(x) C 2 ( x ) we have the following system for their derivatives:
{ C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 0 − 2 C 1 ′ ( x ) e − 2 x + 2 C 2 ′ ( x ) e 2 x = e x sin x \begin{cases} C_1'(x)e^{-\sqrt{2}x}+ C_2'(x)e^{\sqrt{2}x} =0\\ -\sqrt{2} C_1'(x)e^{-\sqrt{2}x}+\sqrt{2} C_2'(x)e^{\sqrt{2}x} =e^x\sin x \end{cases} { C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 0 − 2 C 1 ′ ( x ) e − 2 x + 2 C 2 ′ ( x ) e 2 x = e x sin x
{ C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 0 − C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 1 2 e x sin x \begin{cases} C_1'(x)e^{-\sqrt{2}x}+ C_2'(x)e^{\sqrt{2}x} =0\\ -C_1'(x)e^{-\sqrt{2}x}+ C_2'(x)e^{\sqrt{2}x} =\frac{1}{\sqrt{2}}e^x\sin x \end{cases} { C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 0 − C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 2 1 e x sin x
{ C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 0 2 C 2 ′ ( x ) e 2 x = 1 2 e x sin x \begin{cases} C_1'(x)e^{-\sqrt{2}x}+ C_2'(x)e^{\sqrt{2}x} =0\\ 2C_2'(x)e^{\sqrt{2}x} =\frac{1}{\sqrt{2}}e^x\sin x \end{cases} { C 1 ′ ( x ) e − 2 x + C 2 ′ ( x ) e 2 x = 0 2 C 2 ′ ( x ) e 2 x = 2 1 e x sin x
{ C 1 ′ ( x ) = − C 2 ′ ( x ) e 2 2 x = 0 C 2 ′ ( x ) = 1 2 2 e ( 1 − 2 ) x sin x \begin{cases} C_1'(x)=- C_2'(x)e^{2\sqrt{2}x} =0\\ C_2'(x) =\frac{1}{2\sqrt{2}}e^{(1-\sqrt{2})x}\sin x \end{cases} { C 1 ′ ( x ) = − C 2 ′ ( x ) e 2 2 x = 0 C 2 ′ ( x ) = 2 2 1 e ( 1 − 2 ) x sin x
{ C 1 ′ ( x ) = − 1 2 2 e ( 1 + 2 ) x sin x C 2 ′ ( x ) = 1 2 2 e ( 1 − 2 ) x sin x \begin{cases} C_1'(x)=- \frac{1}{2\sqrt{2}}e^{(1+\sqrt{2})x}\sin x \\ C_2'(x) =\frac{1}{2\sqrt{2}}e^{(1-\sqrt{2})x}\sin x \end{cases} { C 1 ′ ( x ) = − 2 2 1 e ( 1 + 2 ) x sin x C 2 ′ ( x ) = 2 2 1 e ( 1 − 2 ) x sin x
In the sequel we use the well known formula:
∫ e a x sin ( b x ) d x = b 2 e a x ( a sin ( b x ) − b cos ( b x ) ) a 2 ( a 2 + b 2 ) + C \int e^{ax}\sin (bx) dx =\frac{b^2e^{ax}(a\sin(bx)-b\cos(bx))}{a^2(a^2+b^2)}+C ∫ e a x sin ( b x ) d x = a 2 ( a 2 + b 2 ) b 2 e a x ( a s i n ( b x ) − b c o s ( b x )) + C
C 1 ( x ) = − 1 2 2 e ( 1 + 2 ) x ( ( 1 + 2 ) sin ( x ) − cos ( x ) ) ( 1 + 2 ) 2 ( ( 1 + 2 ) 2 + 1 ) + C 1 = − 1 2 2 e ( 1 + 2 ) x ( ( 1 + 2 ) sin ( x ) − cos ( x ) ) ( 3 + 2 2 ) ( 4 + 2 2 ) + C 1 = C_1(x)=-\frac{1}{2\sqrt{2}}\frac{e^{(1+\sqrt{2})x}((1+\sqrt{2})\sin(x)-\cos(x))}{(1+\sqrt{2})^2((1+\sqrt{2})^2+1)}+C_1=-\frac{1}{2\sqrt{2}}\frac{e^{(1+\sqrt{2})x}((1+\sqrt{2})\sin(x)-\cos(x))}{(3+2\sqrt{2})(4+2\sqrt{2})}+C_1= C 1 ( x ) = − 2 2 1 ( 1 + 2 ) 2 (( 1 + 2 ) 2 + 1 ) e ( 1 + 2 ) x (( 1 + 2 ) s i n ( x ) − c o s ( x )) + C 1 = − 2 2 1 ( 3 + 2 2 ) ( 4 + 2 2 ) e ( 1 + 2 ) x (( 1 + 2 ) s i n ( x ) − c o s ( x )) + C 1 =
= − 1 2 2 e ( 1 + 2 ) x ( ( 1 + 2 ) sin ( x ) − cos ( x ) ) 20 + 14 2 + C 1 = − e ( 1 + 2 ) x ( ( 1 + 2 ) sin ( x ) − cos ( x ) ) 56 + 40 2 + C 1 =-\frac{1}{2\sqrt{2}}\frac{e^{(1+\sqrt{2})x}((1+\sqrt{2})\sin(x)-\cos(x))}{20+14\sqrt{2}}+C_1
=-\frac{e^{(1+\sqrt{2})x}((1+\sqrt{2})\sin(x)-\cos(x))}{56+40\sqrt{2}}+C_1 = − 2 2 1 20 + 14 2 e ( 1 + 2 ) x (( 1 + 2 ) s i n ( x ) − c o s ( x )) + C 1 = − 56 + 40 2 e ( 1 + 2 ) x (( 1 + 2 ) s i n ( x ) − c o s ( x )) + C 1
C 2 ( x ) = 1 2 2 e ( 1 − 2 ) x ( ( 1 − 2 ) sin ( x ) − cos ( x ) ) ( 1 − 2 ) 2 ( ( 1 − 2 ) 2 + 1 ) + C 2 = 1 2 2 e ( 1 − 2 ) x ( ( 1 − 2 ) sin ( x ) − cos ( x ) ) ( 3 − 2 2 ) ( 4 − 2 2 ) + C 2 = C_2(x)=\frac{1}{2\sqrt{2}}\frac{e^{(1-\sqrt{2})x}((1-\sqrt{2})\sin(x)-\cos(x))}{(1-\sqrt{2})^2((1-\sqrt{2})^2+1)}+C_2=
\frac{1}{2\sqrt{2}}\frac{e^{(1-\sqrt{2})x}((1-\sqrt{2})\sin(x)-\cos(x))}{(3-2\sqrt{2})(4-2\sqrt{2})}+C_2= C 2 ( x ) = 2 2 1 ( 1 − 2 ) 2 (( 1 − 2 ) 2 + 1 ) e ( 1 − 2 ) x (( 1 − 2 ) s i n ( x ) − c o s ( x )) + C 2 = 2 2 1 ( 3 − 2 2 ) ( 4 − 2 2 ) e ( 1 − 2 ) x (( 1 − 2 ) s i n ( x ) − c o s ( x )) + C 2 =
= 1 2 2 e ( 1 − 2 ) x ( ( 1 − 2 ) sin ( x ) − cos ( x ) ) 20 − 14 2 + C 2 = e ( 1 − 2 ) x ( ( 1 − 2 ) sin ( x ) − cos ( x ) ) − 56 + 40 2 + C 2 =\frac{1}{2\sqrt{2}}\frac{e^{(1-\sqrt{2})x}((1-\sqrt{2})\sin(x)-\cos(x))}{20-14\sqrt{2}}+C_2=
\frac{e^{(1-\sqrt{2})x}((1-\sqrt{2})\sin(x)-\cos(x))}{-56+40\sqrt{2}}+C_2 = 2 2 1 20 − 14 2 e ( 1 − 2 ) x (( 1 − 2 ) s i n ( x ) − c o s ( x )) + C 2 = − 56 + 40 2 e ( 1 − 2 ) x (( 1 − 2 ) s i n ( x ) − c o s ( x )) + C 2
Consequently, the solution is the following:
y ( x ) = ( − e ( 1 + 2 ) x ( ( 1 + 2 ) sin ( x ) − cos ( x ) ) 56 + 40 2 + C 1 ) e − 2 x + ( e ( 1 − 2 ) x ( ( 1 − 2 ) sin ( x ) − cos ( x ) ) − 56 + 40 2 + C 2 ) e 2 x y(x)=(-\frac{e^{(1+\sqrt{2})x}((1+\sqrt{2})\sin(x)-\cos(x))}{56+40\sqrt{2}}+C_1)e^{-\sqrt{2}x}+ (\frac{e^{(1-\sqrt{2})x}((1-\sqrt{2})\sin(x)-\cos(x))}{-56+40\sqrt{2}}+C_2)e^{\sqrt{2}x} y ( x ) = ( − 56 + 40 2 e ( 1 + 2 ) x (( 1 + 2 ) s i n ( x ) − c o s ( x )) + C 1 ) e − 2 x + ( − 56 + 40 2 e ( 1 − 2 ) x (( 1 − 2 ) s i n ( x ) − c o s ( x )) + C 2 ) e 2 x
Comments