We have the differential equation
(x+1)dy=((x+1)2+y−3)dx,x≥0.
Dividing both sides by dx and by (x+1) we obtain the first-order ODE
dxdy=x+1(x+1)2+y−3.
Now we split the right-hand side:
x+1(x+1)2+y−3=(x+1)+x+1y−3.
So the equation becomes
dxdy−x+1y−3=x+1.
Expanding the second term yields
dxdy−x+1y+x+13=x+1,
and therefore
dxdy−x+1y=x+1−x+13.
This is a linear equation of the standard form dxdy+P(x)y=Q(x) with
P(x)=−x+11,Q(x)=x+1−x+13.
For a linear ODE we first write the integrating factor. The integrating factor (I.F.) is defined by
I.F.=e∫P(x)dx.
Here
∫P(x)dx=∫−x+11dx=−ln∣x+1∣,
so, since x≥0⟹x+1>0, we have
I.F.=e−ln(x+1)=x+11.
Multiplying the whole differential equation by this integrating factor gives
x+11dxdy−(x+1)2y=(x+1−x+13)x+11.
The left side is now the derivative of x+1y because
dxd(x+1y)=x+11dxdy+y(−(x+1)21)=x+11dxdy−(x+1)2y.
Therefore we can rewrite the equation as
dxd(x+1y)=1−(x+1)23.
Next we integrate both sides with respect to x:
x+1y=∫(1−(x+1)23)dx+C.
We integrate term by term:
∫1dx=x,
and
∫−(x+1)23dx=−3∫(x+1)−2dx=−3(−(x+1)−1)=x+13.
So we get
x+1y=x+x+13+C.
Multiplying by (x+1) to isolate y gives
y=(x+1)(x+x+13+C)=(x+1)x+3+C(x+1).
Simplifying,
y=x2+x+3+Cx+C.
Group the terms:
y=x2+(1+C)x+(3+C).
We are told that y(2)=0, so we substitute x=2,y=0:
0=(2)2+(1+C)(2)+(3+C).
That is
0=4+2(1+C)+3+C=4+2+2C+3+C=9+3C.
Hence
C=−3.
Substituting this value of C back gives
y=x2+(1−3)x+(3−3)=x2−2x.
Finally, we evaluate y(3):
y(3)=(3)2−2(3)=9−6=3.
So, the answer is 3.