Skip to content
Exercise 9.5 · Q6

Q.Solve the following differential equation: xdydx+2y=x2log⁡xx \frac{dy}{dx} + 2y = x^2 \log x

Sikkim CbseNCERTSubjective· 3mImportance★★★★★
40% · 88/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 →

This is a first-order linear ODE solved using the integrating factor method. The general solution is y=x24log⁡x−x216+Cx2y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2}.

Why This Approach Works

The given equation is a first-order linear ordinary differential equation of the form:

dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x)

The key idea: we multiply both sides by an integrating factor μ(x)=e∫P(x)dx\mu(x) = e^{\int P(x) dx}, which turns the left-hand side into the exact derivative of μ(x)y\mu(x) y. This reduces the problem to a direct integration.

Let’s rewrite the equation in standard form first.


Step-by-Step Solution

1. Rewrite in standard linear form

We have:

xdydx+2y=x2log⁡xx \frac{dy}{dx} + 2y = x^2 \log x

Divide through by xx (valid for x≠0x \neq 0):

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

So P(x)=2xP(x) = \frac{2}{x} and Q(x)=xlog⁡xQ(x) = x \log x.

2. Compute the integrating factor

μ(x)=e∫P(x)dx=e∫2xdx=e2log⁡∣x∣=x2\mu(x) = e^{\int P(x) dx} = e^{\int \frac{2}{x} dx} = e^{2 \log |x|} = x^2

We take x2x^2 (positive for x>0x>0; the absolute value is handled by the constant later).

Tip

The integrating factor x2x^2 is simple because ∫2xdx=2log⁡x\int \frac{2}{x} dx = 2\log x exponentiates cleanly. Always simplify the exponent before exponentiating.

3. Multiply the ODE by μ(x)\mu(x)

Multiply both sides of the standard form by x2x^2:

x2dydx+2xy=x3log⁡xx^2 \frac{dy}{dx} + 2x y = x^3 \log x

Notice the left side is exactly ddx(x2y)\frac{d}{dx}(x^2 y) — check by differentiating:

ddx(x2y)=x2dydx+2xy\frac{d}{dx}(x^2 y) = x^2 \frac{dy}{dx} + 2x y

So the equation becomes:

ddx(x2y)=x3log⁡x\frac{d}{dx}(x^2 y) = x^3 \log x

4. Integrate both sides

Integrate with respect to xx:

x2y=∫x3log⁡x dxx^2 y = \int x^3 \log x \, dx

Now evaluate the integral. Use integration by parts: let u=log⁡xu = \log x, dv=x3dxdv = x^3 dx. Then du=1xdxdu = \frac{1}{x} dx, v=x44v = \frac{x^4}{4}.

∫x3log⁡x dx=x44log⁡x−∫x44⋅1xdx\int x^3 \log x \, dx = \frac{x^4}{4} \log x - \int \frac{x^4}{4} \cdot \frac{1}{x} dx …

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.