Solution:
Concept: If dxdy=f(x), then y=∫f(x)dx+c. A particular solution is found by putting the given values of x and y into the general solution to fix c.
Step 1 — Write the equation in the form dxdy=f(x).
The equation says edy/dx=x+1. Taking the natural logarithm of both sides removes the exponential. This needs x+1>0, so we work on x>−1.
log(edy/dx)=log(x+1)
dxdy=log(x+1)
Step 2 — Separate and set up the integral.
We multiply by dx and integrate both sides.
dy=log(x+1)dx
y=∫1⋅log(x+1)dx
Step 3 — Integrate by parts.
We take log(x+1) as the first function and 1 as the second function, so that ∫uvdx=u∫vdx−∫(u′∫vdx)dx.
y=xlog(x+1)−∫x+1xdx
Now we split the fraction, because x+1x=x+1(x+1)−1.
y=xlog(x+1)−∫(1−x+11)dx
y=xlog(x+1)−x+log(x+1)+c
y=(x+1)log(x+1)−x+c
Step 4 — Use x=0, y=3 to find c.
We substitute the given values. Since log1=0, the first term vanishes.
3=(0+1)log1−0+c
c=3
Step 5 — Write the particular solution.
We put c=3 back into the general solution, which holds for x>−1.
y=(x+1)log(x+1)−x+3
Therefore, the particular solution is y=(x+1)log(x+1)−x+3, for x>−1.