Solution
y′′+y′=1
dx2d2y+dxdy=1
First, reduce the differential equation to first order
Let z=dxdy⟹dxdz=dx2d2y
Substituting to differential equation, we have
dxdz+z=1
dxdz=1−z
Do reciprocal on both sides of the differential equation
1−z1=dzdx
Multiply both sides of the differential equation by dz to get
1−zdz=dx
Integrate both sides
∫1−zdz=∫dx
⟹−ln(1−z)=x+C
⟹ln(1−z)=−x+C
Introduce exponential on both sides
eln(1−z)=e−x+c
⟹1−z=e−x+C⟹z=1−e−x+C=1−Ce−x
But z=dxdy
⟹dxdy=1−Ce−x
Multiply both sides of the differential equation by dx
⟹dy=(1−Ce−x)dx
Integrate both sides
∫dy=∫(1−Ce−x)dx
⟹y=x+C1e−x+C2
∴y2(x)=e−x and yp(x)=x
Comments