First, we rearrange the terms to isolate the differential components:
xdy−ydx=x3cosxdx
This simplifies elegantly to the differential form:
d(xy)=xcosxdx
We now integrate both sides of the equation. The left side integrates directly to xy, while the right side requires integration by parts:
Using the ILATE rule, we set
u=x and
dv=cosxdx. This yields:
xy=xsinx−∫sinxdx=xsinx+cosx+C
Multiplying by
x, we obtain the general solution:
y=x2sinx+xcosx+Cx
We apply the condition
y(π)=0 to solve for the constant
C. Substituting
x=π and
y=0:
0=π2sin(π)+πcos(π)+Cπ
Substituting
C=1 back into our general solution, we get:
y=x2sinx+xcosx+x
To find
y(π/2), we evaluate the expression at
x=π/2:
y(2π)=(2π)2sin(2π)+(2π)cos(2π)+2π