Skip to content
NCERT Exemplar · Q25

Q.Solve: y+ddx(xy)=x(sin⁡x+log⁡x)y+\frac{d}{dx}(xy)=x(\sin x+\log x).

Odisha ChseLong· 5mImportance★★★★★
Appeared in past exams:MHT-CET 2025· Set pcm-2025-04-22-M· 2mexact
65% · 145/222 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Expanding ddx(xy)\frac{d}{dx}(xy) turns the equation into the linear ODE dydx+2xy=sin⁡x+log⁡x\frac{dy}{dx}+\frac{2}{x}y=\sin x+\log x (I.F. x2x^2), giving y=−cos⁡x+2sin⁡xx+2cos⁡xx2+x3log⁡x−x9+Cx2y=-\cos x+\frac{2\sin x}{x}+\frac{2\cos x}{x^2}+\frac{x}{3}\log x-\frac{x}{9}+\frac{C}{x^2}.

Unpack the left side

The term ddx(xy)\frac{d}{dx}(xy) is a product-rule derivative: ddx(xy)=xdydx+y\frac{d}{dx}(xy)=x\frac{dy}{dx}+y. Substituting,

y+xdydx+y=x(sin⁡x+log⁡x)⇒xdydx+2y=x(sin⁡x+log⁡x).y+x\frac{dy}{dx}+y=x(\sin x+\log x)\quad\Rightarrow\quad x\frac{dy}{dx}+2y=x(\sin x+\log x).

Put it in linear form

Divide by xx:

dydx+2xy=sin⁡x+log⁡x.\frac{dy}{dx}+\frac{2}{x}y=\sin x+\log x.

Here P=2xP=\frac{2}{x}, so the integrating factor is

I.F.=e∫2x dx=e2log⁡x=x2.\text{I.F.}=e^{\int \frac{2}{x}\,dx}=e^{2\log x}=x^2.

Collapse to a single derivative

Multiplying through by x2x^2,

ddx(x2y)=x2sin⁡x+x2log⁡x.\frac{d}{dx}(x^2y)=x^2\sin x+x^2\log x.

Integrate each piece

∫x2sin⁡x dx\int x^2\sin x\,dx (integration by parts twice): =−x2cos⁡x+2xsin⁡x+2cos⁡x=-x^2\cos x+2x\sin x+2\cos x. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.