Question:

Let \(y=y(x)\) be the solution of the differential equation \(x\,dy=(y+x^3\cos x)\,dx\) with \(y(\pi)=0\), then \(y\left(\frac\pi2\right)\) is equal to :

Show Hint

Rewrite as \(\frac{dy}{dx}-\frac yx=x^2\cos x\) with integrating factor \(\frac1x\).
Updated On: Nov 4, 2026
  • \(\frac{\pi^2}{4}+\frac\pi2\)
  • \(\frac{\pi^2}{2}+\frac\pi4\)
  • \(\frac{\pi^2}{2}-\frac\pi4\)
  • \(\frac{\pi^4}{4}-\frac\pi2\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

\(\frac{dy}{dx}-\frac{y}{x}=x^2\cos x\). Integrating factor \(=e^{-\int dx/x}=\frac1x\).
\(\frac{d}{dx}\left(\frac yx\right)=x\cos x\Rightarrow\frac yx=x\sin x+\cos x+C\).
\(y(\pi)=0\): \(0=0-1+C\Rightarrow C=1\). So \(y=x^2\sin x+x\cos x+x\).
\(y\left(\frac\pi2\right)=\frac{\pi^2}{4}(1)+0+\frac\pi2=\frac{\pi^2}{4}+\frac\pi2\).
Answer: (1) \(\frac{\pi^2}{4}+\frac\pi2\)
Was this answer helpful?
0
0