To solve the given differential equation
(x+1)dxdy−y=e3x(x+1)2we start by rewriting it in the standard linear form:
dxdy−x+1y=e3x(x+1)Here, it's a first-order linear differential equation of the form
dxdy+P(x)y=Q(x)where
P(x)=−x+11 and
Q(x)=e3x(x+1).
Step 1: Calculate the Integrating Factor (IF)
The integrating factor is given by:
IF=e∫P(x)dx=e∫−x+11dx=e−ln(x+1)=x+11Step 2: Determine the Solution
Using the integrating factor, the solution of the differential equation is:
y⋅IF=∫Q(x)⋅IFdxSubstituting the known values:
y⋅x+11=∫e3x(x+1)⋅x+11dxThis simplifies to:
x+1y=3e3x+C′Therefore, the complete solution is:
x+13y=e3x+C′where
C′=3C representing an integration constant.