y'=1+x-2y
Solution:
y′+2y=1+x
The complementary equation is:
y′+2y=0
The characteristic equation:
r+2=0
r=−2
The general solution for this homogeneous equation :
y0=Ce−2x
Now let's find the particular solution yp(x) of the nonhomogeneous equation. The particular solution might have the form:
yp(x)=Ax+B
Then
yp′(x)=A
For yp(x) to be a solution to the differential equation, we must find values for A and B such that
A+2(Ax+B)=1+x
Setting coefficients of like terms equal, we have
A+2B=1
2A=1
Then
A=21 ; B=41 .
yp(x)=21x+41 .
The general solution of a nonhomogeneous equation is:
y(x)=y0(x)+yp(x)=Ce−2x+21x+41 .
Answer: y(x)=Ce−2x+21x+41 .
Comments
Leave a comment