Characteristics equation:
k2+2=0roots arek1,2=±2
Basic solutions:
y2(x)=cos(2⋅x)y1(x)=sin(2⋅x)
General solution of homogeneous part:
yh(x,C1,C2)=C1⋅cos(2⋅x)+C2⋅sin(2⋅x);
Let find partial solution in form:
y1=a+b⋅x
For finding a,b substitute it in diff equation:
y1′′+2⋅y1=2a+2bx=2−4x
We take a,b values:
a=1, b=-2;
Partial solution has the form:
y1(x)=1−2⋅x
The overall solution as a whole
ynh(x,C1,C2)=C1⋅cos(2⋅x)+C2⋅sin(2⋅x)+1−2⋅x
Now we apply boundary condition y(0)=0 and have:
0=C1+1
From it we have C1=−1
And therefore
y(x,C2)=−cos(2⋅x)+C2⋅sin(2⋅x)+1−2⋅x
Further we use second boundary condition:
y(1)+y′(1)=−cos(2)+C2⋅sin(2)−1+2⋅sin(2)+2⋅C2⋅cos(2)−2=0
This is an equation with respect to C2
Solving it we have:
C2=sin(2)+2⋅cos(2)3+cos(2)−2⋅sin(2)
And finally
y(x,)=−cos(2⋅x)+(sin(2)+2⋅cos(2)3+cos(2)+2⋅sin(2))⋅sin(2⋅x)+1−2⋅x
Rhus we have sold bde problem.
Comments