Characteristics equation:
k 2 + 2 = 0 r o o t s a r e k 1 , 2 = ± 2 k^2+2=0\\roots\space are\\
k_{1,2}=\pm\sqrt{2}\\ k 2 + 2 = 0 roo t s a re k 1 , 2 = ± 2
Basic solutions:
y 2 ( x ) = c o s ( 2 ⋅ x ) y 1 ( x ) = s i n ( 2 ⋅ x ) y_2(x)=cos(\sqrt{2}\cdot x)\\
y_1(x)=sin(\sqrt{2}\cdot x)\\ y 2 ( x ) = cos ( 2 ⋅ x ) y 1 ( x ) = s in ( 2 ⋅ x )
General solution of homogeneous part:
y h ( x , C 1 , C 2 ) = C 1 ⋅ c o s ( 2 ⋅ x ) + C 2 ⋅ s i n ( 2 ⋅ x ) ; y_h(x,C_1,C_2)=C_1\cdot cos(\sqrt{2}\cdot x)+
C_2\cdot sin(\sqrt{2}\cdot x); y h ( x , C 1 , C 2 ) = C 1 ⋅ cos ( 2 ⋅ x ) + C 2 ⋅ s in ( 2 ⋅ x ) ;
Let find partial solution in form:
y 1 = a + b ⋅ x y_1=a+b\cdot x y 1 = a + b ⋅ x
For finding a,b substitute it in diff equation:
y 1 ′ ′ + 2 ⋅ y 1 = 2 a + 2 b x = 2 − 4 x y_1''+2\cdot y_1=2a+2bx=2-4x y 1 ′′ + 2 ⋅ y 1 = 2 a + 2 b x = 2 − 4 x
We take a,b values:
a=1, b=-2;
Partial solution has the form:
y 1 ( x ) = 1 − 2 ⋅ x y_1(x)=1-2\cdot x y 1 ( x ) = 1 − 2 ⋅ x
The overall solution as a whole
y n h ( x , C 1 , C 2 ) = C 1 ⋅ c o s ( 2 ⋅ x ) + C 2 ⋅ s i n ( 2 ⋅ x ) + 1 − 2 ⋅ x y_{nh}(x,C_1,C_2)=C_1\cdot cos(\sqrt{2}\cdot x)+
C_2\cdot sin(\sqrt{2}\cdot x)+1-2\cdot x y nh ( x , C 1 , C 2 ) = C 1 ⋅ cos ( 2 ⋅ x ) + C 2 ⋅ s in ( 2 ⋅ x ) + 1 − 2 ⋅ x
Now we apply boundary condition y(0)=0 and have:
0=C 1 + 1 C_1+1 C 1 + 1
From it we have C 1 = − 1 C_1=-1 C 1 = − 1
And therefore
y ( x , C 2 ) = − c o s ( 2 ⋅ x ) + C 2 ⋅ s i n ( 2 ⋅ x ) + 1 − 2 ⋅ x y(x,C_2)= -cos(\sqrt{2}\cdot x)+
C_2\cdot sin(\sqrt{2}\cdot x)+1-2\cdot x y ( x , C 2 ) = − cos ( 2 ⋅ x ) + C 2 ⋅ s in ( 2 ⋅ x ) + 1 − 2 ⋅ x
Further we use second boundary condition:
y ( 1 ) + y ′ ( 1 ) = − c o s ( 2 ) + C 2 ⋅ s i n ( 2 ) − 1 + 2 ⋅ s i n ( 2 ) + 2 ⋅ C 2 ⋅ c o s ( 2 ) − 2 = 0 y(1)+y'(1)=-cos(\sqrt 2)+C_2\cdot sin(\sqrt 2)-1+\sqrt 2\cdot \\
sin(\sqrt 2)+\sqrt 2\cdot C_2\cdot cos(\sqrt 2)-2=0 y ( 1 ) + y ′ ( 1 ) = − cos ( 2 ) + C 2 ⋅ s in ( 2 ) − 1 + 2 ⋅ s in ( 2 ) + 2 ⋅ C 2 ⋅ cos ( 2 ) − 2 = 0
This is an equation with respect to C2
Solving it we have:
C 2 = 3 + c o s ( 2 ) − 2 ⋅ s i n ( 2 ) s i n ( 2 ) + 2 ⋅ c o s ( 2 ) C_2=\frac{3+cos(\sqrt 2)-\sqrt 2\cdot sin(\sqrt 2)}{sin(\sqrt 2)+\sqrt 2\cdot cos(\sqrt 2)} C 2 = s in ( 2 ) + 2 ⋅ cos ( 2 ) 3 + cos ( 2 ) − 2 ⋅ s in ( 2 )
And finally
y ( x , ) = − c o s ( 2 ⋅ x ) + ( 3 + c o s ( 2 ) + 2 ⋅ s i n ( 2 ) s i n ( 2 ) + 2 ⋅ c o s ( 2 ) ) ⋅ s i n ( 2 ⋅ x ) + 1 − 2 ⋅ x y(x,)= -cos(\sqrt{2}\cdot x)+\\
\left( \frac{3+cos(\sqrt 2)+\sqrt 2\cdot sin(\sqrt 2)}{sin(\sqrt 2)+\sqrt 2\cdot cos(\sqrt 2)} \right )\cdot sin(\sqrt{2}\cdot x)+1-2\cdot x y ( x , ) = − cos ( 2 ⋅ x ) + ( s in ( 2 ) + 2 ⋅ cos ( 2 ) 3 + cos ( 2 ) + 2 ⋅ s in ( 2 ) ) ⋅ s in ( 2 ⋅ x ) + 1 − 2 ⋅ x
Rhus we have sold bde problem.
Comments