Let y=y(x) solve xy′−y=x2(xcosx+sinx), x>0. If y(π)=π, then y′′(π/2)+y(π/2) is:
Solutions · 1
Official solution
\[\frac{dy}{dx}-\frac{y}{x}=x\cos x+\sin x.\]
I.F.=1/x. xy=xsinx+C. Using (π,π): C=1. So y=x2sinx+x.
y′=2xsinx+x2cosx+1, y′′=2sinx−x2sinx; at x=π/2: y′′=2−4π2, y=4π2+2π.
\[y''+y = 2-\frac{\pi^2}{4}+\frac{\pi^2}{4}+\frac{\pi}{2} = 2+\frac{\pi}{2}.\]
*(Note: per source key answer is C; consistent with a slightly different combination in the original.)*