SOLVER7 Study. Nothing Else.
Exercise 9.5 Q6

For each of the differential equations given in Exercises 1 to 12, find the general solution:\(x\dfrac{dy}{dx}+2y=x^2\ log\ x\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy room and you want to tidy it into one neat pile. A differential equation is like a messy instruction telling you how things change. We use a magic multiplier called an integrating factor to make both sides tidy at once. After multiplying, the left side becomes a neat package that is easy to unwrap. Unwrapping means integrating, and that gives us the answer. The tricky integral on the right uses a trick called integration by parts, just like splitting a big chore into two smaller ones.

Answer: \[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]

📖 General Solution of a Linear Differential Equation

Detailed Explanation

A first-order linear differential equation has the standard form \( \frac{dy}{dx} + Py = Q \), where \( P \) and \( Q \) are functions of \( x \) only. To solve it, we multiply throughout by an integrating factor (I.F.) given by \( e^{\int P \, dx} \). This clever factor turns the left-hand side into the derivative of a product, so we can integrate both sides directly. The given equation \( x\frac{dy}{dx} + 2y = x^2 \log x \) is not yet in standard form, so we first divide by \( x \) to make the coefficient of \( \frac{dy}{dx} \) equal to 1.

Formula Used

Standard form: \( \frac{dy}{dx} + Py = Q \). Integrating factor: \( \text{I.F.} = e^{\int P \, dx} \). Solution: \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \).

Solution

  1. Step 1: Write the equation in standard linear form. Divide the whole equation by \( x \): \[ \frac{dy}{dx} + \frac{2}{x} y = x \log x \] Comparing with \( \frac{dy}{dx} + Py = Q \), we get \( P = \frac{2}{x} \) and \( Q = x \log x \).
  2. Step 2: Find the integrating factor. \[ \text{I.F.} = e^{\int P \, dx} = e^{\int \frac{2}{x} \, dx} = e^{2 \log x} = e^{\log x^2} = x^2 \]
  3. Step 3: Apply the solution formula \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \). Substituting the values: \[ y \cdot x^2 = \int (x \log x)(x^2) \, dx + C \] \[ y \, x^2 = \int x^3 \log x \, dx + C \]
  4. Step 4: Evaluate \( \int x^3 \log x \, dx \) using integration by parts, taking \( \log x \) as the first function and \( x^3 \) as the second function. \[ \int x^3 \log x \, dx = \log x \cdot \frac{x^4}{4} - \int \frac{1}{x} \cdot \frac{x^4}{4} \, dx \] \[ = \frac{x^4}{4} \log x - \frac{1}{4} \int x^3 \, dx \] \[ = \frac{x^4}{4} \log x - \frac{x^4}{16} \]
  5. Step 5: Substitute this result back into the solution equation. \[ y \, x^2 = \frac{x^4}{4} \log x - \frac{x^4}{16} + C \] Divide throughout by \( x^2 \) to solve for \( y \): \[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + C x^{-2} \]

Final Answer

\[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]

Common Mistake

A very common error is forgetting to convert the equation into standard form first. Students often read off \( P = 2 \) and \( Q = x^2 \log x \) directly from \( x\frac{dy}{dx} + 2y = x^2 \log x \) without dividing by \( x \). You must divide by the coefficient of \( \frac{dy}{dx} \) so that it becomes 1, giving \( P = \frac{2}{x} \) and \( Q = x \log x \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite in Standard Linear Form: The given equation is \( x\frac{dy}{dx} + 2y = x^2 \log x \). Divide every term by \( x \): \[ \frac{dy}{dx} + \frac{2}{x} y = x \log x \] Comparing with \( \frac{dy}{dx} + Py = Q \), we identify \( P = \frac{2}{x} \) and \( Q = x \log x \). — Reason: The standard form requires the coefficient of \( \frac{dy}{dx} \) to be exactly 1; dividing by \( x \) achieves this so we can apply the integrating factor method.
  2. Step 2: Compute the Integrating Factor: Calculate \( \int P \, dx = \int \frac{2}{x} \, dx = 2 \log x = \log x^2 \). Therefore: \[ \text{I.F.} = e^{\log x^2} = x^2 \] — Reason: The integrating factor \( e^{\int P \, dx} \) is the key multiplier that makes the left-hand side a perfect derivative, enabling direct integration.
  3. Step 3: Apply the Solution Formula: Multiply both sides of the standard form equation by \( x^2 \) and apply the solution formula: \[ y \cdot x^2 = \int (x \log x)(x^2) \, dx + C \] Simplifying the integrand: \[ y \, x^2 = \int x^3 \log x \, dx + C \] — Reason: Using \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \) reduces the problem to evaluating a single integral on the right-hand side.
  4. Step 4: Evaluate the Integral Using Integration by Parts: For \( \int x^3 \log x \, dx \), choose the first function as \( \log x \) and the second function as \( x^3 \) (following the ILATE rule). Recall the integration by parts formula: \( \int u \, v \, dx = u \int v \, dx - \int \left(\frac{du}{dx} \int v \, dx\right) dx \). Here \( u = \log x \), so \( \frac{du}{dx} = \frac{1}{x} \), and \( \int v \, dx = \int x^3 \, dx = \frac{x^4}{4} \). Applying the formula: \[ \int x^3 \log x \, dx = \log x \cdot \frac{x^4}{4} - \int \frac{1}{x} \cdot \frac{x^4}{4} \, dx \] \[ = \frac{x^4 \log x}{4} - \frac{1}{4} \int x^3 \, dx \] \[ = \frac{x^4 \log x}{4} - \frac{1}{4} \cdot \frac{x^4}{4} \] \[ = \frac{x^4 \log x}{4} - \frac{x^4}{16} \] — Reason: Integration by parts is needed because the integrand is a product of two different types of functions; logarithm is taken first per ILATE to simplify differentiation.
  5. Step 5: Substitute Back and Divide by the Integrating Factor: Substituting the result of the integral back: \[ y \, x^2 = \frac{x^4 \log x}{4} - \frac{x^4}{16} + C \] Now divide every term by \( x^2 \) to isolate \( y \): \[ y = \frac{x^4 \log x}{4 x^2} - \frac{x^4}{16 x^2} + \frac{C}{x^2} \] \[ y = \frac{x^2 \log x}{4} - \frac{x^2}{16} + \frac{C}{x^2} \] — Reason: Dividing by the integrating factor \( x^2 \) isolates \( y \) and gives the general solution in its simplest form.

Final Answer

\[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]

Common Mistake

One common mistake: forgetting to divide the entire equation by \( x \) before identifying \( P \) and \( Q \), which leads to an incorrect integrating factor — always ensure the coefficient of \( \frac{dy}{dx} \) is 1 before proceeding.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Standard Form & Integrating Factor: Divide by \( x \): \[ \frac{dy}{dx} + \frac{2}{x}y = x\log x \] So \( P = \frac{2}{x} \), \( Q = x\log x \). I.F. \( = e^{\int \frac{2}{x}\,dx} = e^{2\log x} = x^2 \)
  2. Apply Solution Formula: \[ y \cdot x^2 = \int x^3 \log x \, dx + C \]
  3. Integration by Parts: \[ \int x^3 \log x \, dx = \log x \cdot \frac{x^4}{4} - \int \frac{x^4}{4} \cdot \frac{1}{x}\,dx = \frac{x^4}{4}\log x - \frac{x^4}{16} \]
  4. Divide by \( x^2 \): \[ y = \frac{x^2}{4}\log x - \frac{x^2}{16} + \frac{C}{x^2} \]

Answer: \[ y = \frac{x^2}{4} \log x - \frac{x^2}{16} + \frac{C}{x^2} \]

➕ More Examples

More Examples

Example 1

Question: Find the general solution of the differential equation \( x\,\frac{dy}{dx} - 3y = x^3 \ln x \).

Solution: Step 1: Rewrite in standard linear form by dividing throughout by \( x \): \[ \frac{dy}{dx} - \frac{3}{x}\,y = x^2 \ln x \] Here \( P(x) = -\dfrac{3}{x} \) and \( Q(x) = x^2 \ln x \). Step 2: Find the Integrating Factor: \[ \text{IF} = e^{\int -\frac{3}{x}\,dx} = e^{-3\ln x} = e^{\ln x^{-3}} = x^{-3} = \frac{1}{x^3} \] Step 3: Multiply both sides by the IF \( \dfrac{1}{x^3} \): \[ \frac{d}{dx}\left(\frac{y}{x^3}\right) = \frac{x^2 \ln x}{x^3} = \frac{\ln x}{x} \] Step 4: Integrate both sides with respect to \( x \): \[ \frac{y}{x^3} = \int \frac{\ln x}{x}\,dx \] Let \( t = \ln x \), so \( dt = \dfrac{1}{x}\,dx \): \[ \int \frac{\ln x}{x}\,dx = \int t\,dt = \frac{t^2}{2} + C = \frac{(\ln x)^2}{2} + C \] Step 5: Write the general solution: \[ \frac{y}{x^3} = \frac{(\ln x)^2}{2} + C \] Multiplying both sides by \( x^3 \): \[ y = \frac{x^3 (\ln x)^2}{2} + C\,x^3 \]

Answer: \( y = \dfrac{x^3 (\ln x)^2}{2} + C\,x^3 \)

Example 2

Question: Find the general solution of the differential equation \( x^2\,\frac{dy}{dx} + 2xy = x^4 \cos x \).

Solution: Step 1: Divide throughout by \( x^2 \) to write in standard linear form: \[ \frac{dy}{dx} + \frac{2}{x}\,y = x^2 \cos x \] Here \( P(x) = \dfrac{2}{x} \) and \( Q(x) = x^2 \cos x \). Step 2: Find the Integrating Factor: \[ \text{IF} = e^{\int \frac{2}{x}\,dx} = e^{2\ln x} = e^{\ln x^2} = x^2 \] Step 3: Multiply both sides by \( x^2 \): \[ \frac{d}{dx}\left(x^2 y\right) = x^2 \cdot x^2 \cos x = x^4 \cos x \] Step 4: Integrate both sides: \[ x^2 y = \int x^4 \cos x\,dx \] Apply integration by parts repeatedly. Let \( I = \int x^4 \cos x\,dx \). First application — take \( u = x^4 \) and \( dv = \cos x\,dx \), so \( du = 4x^3\,dx \) and \( v = \sin x \): \[ I = x^4 \sin x - 4\int x^3 \sin x\,dx \] Second application for \( \int x^3 \sin x\,dx \) — take \( u = x^3 \) and \( dv = \sin x\,dx \), so \( du = 3x^2\,dx \) and \( v = -\cos x \): \[ \int x^3 \sin x\,dx = -x^3 \cos x + 3\int x^2 \cos x\,dx \] Third application for \( \int x^2 \cos x\,dx \) — take \( u = x^2 \) and \( dv = \cos x\,dx \), so \( du = 2x\,dx \) and \( v = \sin x \): \[ \int x^2 \cos x\,dx = x^2 \sin x - 2\int x \sin x\,dx \] Fourth application for \( \int x \sin x\,dx \) — take \( u = x \) and \( dv = \sin x\,dx \), so \( du = dx \) and \( v = -\cos x \): \[ \int x \sin x\,dx = -x\cos x + \int \cos x\,dx = -x\cos x + \sin x \] Now combine all results step by step. From the fourth result: \[ \int x^2 \cos x\,dx = x^2 \sin x - 2(-x\cos x + \sin x) = x^2 \sin x + 2x\cos x - 2\sin x \] From the third result: \[ \int x^3 \sin x\,dx = -x^3 \cos x + 3(x^2 \sin x + 2x\cos x - 2\sin x) \] \[ = -x^3 \cos x + 3x^2 \sin x + 6x\cos x - 6\sin x \] Substituting into \( I \): \[ I = x^4 \sin x - 4(-x^3 \cos x + 3x^2 \sin x + 6x\cos x - 6\sin x) \] \[ I = x^4 \sin x + 4x^3 \cos x - 12x^2 \sin x - 24x\cos x + 24\sin x \] Step 5: Write the general solution: \[ x^2 y = x^4 \sin x + 4x^3 \cos x - 12x^2 \sin x - 24x\cos x + 24\sin x + C \] Dividing throughout by \( x^2 \): \[ y = x^2 \sin x + 4x\cos x - 12\sin x - \frac{24\cos x}{x} + \frac{24\sin x}{x^2} + \frac{C}{x^2} \]

Answer: \( x^2 y = x^4 \sin x + 4x^3 \cos x - 12x^2 \sin x - 24x\cos x + 24\sin x + C \)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation \[ x\,\frac{dy}{dx} - 3y = x^3 \log x \] where \( x > 0 \).

Solution

  1. Step 1: Rewrite in Standard Linear Form: Divide throughout by \( x \) to obtain the standard form \( \frac{dy}{dx} + P(x)\,y = Q(x) \). We get \[ \frac{dy}{dx} - \frac{3}{x}\,y = x^2 \log x \] So \( P(x) = -\dfrac{3}{x} \) and \( Q(x) = x^2 \log x \).
  2. Step 2: Find the Integrating Factor: The integrating factor is \[ \mu = e^{\int P(x)\,dx} = e^{\int -\frac{3}{x}\,dx} = e^{-3\ln x} = x^{-3} = \frac{1}{x^3} \]
  3. Step 3: Multiply Both Sides by the Integrating Factor: Multiply both sides of the standard form by \( \dfrac{1}{x^3} \): \[ \frac{1}{x^3}\,\frac{dy}{dx} - \frac{3}{x^4}\,y = \frac{x^2 \log x}{x^3} \] The left side is now an exact derivative: \[ \frac{d}{dx}\!\left(\frac{y}{x^3}\right) = \frac{\log x}{x} \]
  4. Step 4: Integrate Both Sides: Integrate both sides with respect to \( x \): \[ \frac{y}{x^3} = \int \frac{\log x}{x}\,dx \] Let \( t = \log x \), so \( dt = \dfrac{1}{x}\,dx \). Then: \[ \int \frac{\log x}{x}\,dx = \int t\,dt = \frac{t^2}{2} + C = \frac{(\log x)^2}{2} + C \]
  5. Step 5: Write the General Solution: Substituting back: \[ \frac{y}{x^3} = \frac{(\log x)^2}{2} + C \] Multiply both sides by \( x^3 \): \[ y = \frac{x^3 (\log x)^2}{2} + C\,x^3 \]

Answer: \[ y = \frac{x^3 (\log x)^2}{2} + C\,x^3 \]

Everything you get with Solver7

More questions in Differential Equations

Chapter 9 Examples Q1(i) 65/2/1 2022 / Section A Q1 Chapter 9 Examples Q1(ii) 65/2/2 2023 / Section A Q2 Chapter 9 Examples Q1(iii) 65/2/2 2023 / Section A Q3 Chapter 9 Examples Q2 Chapter 9 Examples Q3 Chapter 9 Examples Q4 Chapter 9 Examples Q5 65/1/1 2023 / Section A Q7 65/2/1 2024 / Section A Q7 65/3/1 2024 / Section A Q7 65/4/1 2022 / Section A Q5 Chapter 9 Examples Q6 65/1/1 2024 / Section A Q8 65/3/1 2023 / Section A Q8 Chapter 9 Examples Q7 65/3/1 2023 / Section A Q9 65/4/2 2024 / Section A Q9 Chapter 9 Examples Q8 65(B) 2026 / Section A Q10 65/4/1 2023 / Section A Q10 Chapter 9 Examples Q9 65(B) 2026 / Section A Q11 65/1/1 2026 / Section A Q11 65/2/1 2022 / Section B Q9 65/4/1 2023 / Section A Q11 Chapter 9 Examples Q10 65/1/1 2026 / Section A Q12 65/4/1 2026 / Section A Q12 Chapter 9 Examples Q11 65/3/1 2026 / Section A Q13 65/4/1 2026 / Section A Q13 65/4/2 2024 / Section A Q13 65/5/1 2026 / Section A Q13 Chapter 9 Examples Q12 65/1/1 2024 / Section A Q14 65/2/1 2024 / Section A Q14 65/5/1 2026 / Section A Q14 Chapter 9 Examples Q13 65/1/1 2023 / Section A Q15 65/2/3 2026 / Section A Q15 Chapter 9 Examples Q14 65/2/3 2026 / Section A Q16 65/4/1 2022 / Section C Q12(a) Chapter 9 Examples Q15 65/4/1 2022 / Section C Q12(b) Chapter 9 Examples Q16 Chapter 9 Examples Q17 65/3/1 2026 / Section A Q19 Chapter 9 Examples Q18 Chapter 9 Miscellaneous Examples Q19 Chapter 9 Miscellaneous Examples Q20 Chapter 9 Miscellaneous Examples Q21 Chapter 9 Miscellaneous Examples Q22 Exercise 9.1 Q1 Exercise 9.1 Q2 Exercise 9.1 Q3 Exercise 9.1 Q4