SOLVER7 Study. Nothing Else.
Chapter 9 Examples Q15

Find the general solution of the differential equation \(x\dfrac{dy}{dx}+2y=x^2(x\ne 0).\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy recipe and you want to tidy it up before cooking. This equation is like that messy recipe. We tidy it by dividing every part by a small number, making it neat and ready. A special helper number, called an integrating factor, is then multiplied across so both sides become easy to work with. Once tidy, we simply "undo" the operation using integration, like unwrapping a gift to reveal the answer hidden inside.

Answer: The general solution is \[ y = \frac{x^2}{4} + \frac{C}{x^2}, \quad x \ne 0 \] where \( C \) is an arbitrary constant.

📖 General Solution of a Linear Differential Equation

Detailed Explanation

A first-order linear differential equation is one that can be written in the standard form \( \frac{dy}{dx} + Py = Q \), where \( P \) and \( Q \) are functions of \( x \) only. The given equation is \( x\frac{dy}{dx} + 2y = x^2 \). It is not yet in standard form because of the coefficient \( x \) in front of \( \frac{dy}{dx} \), so our first job is to divide throughout by \( x \). Once it is in standard form, we compute the integrating factor \( \text{I.F.} = e^{\int P \, dx} \). Multiplying by this factor makes the left side an exact derivative, so we can integrate both sides directly to obtain the general solution.

Formula Used

For \( \frac{dy}{dx} + Py = Q \), the integrating factor is \( \text{I.F.} = e^{\int P \, dx} \), and the solution is \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \).

Solution

  1. Step 1: Write the equation in standard linear form by dividing every term by \( x \) (allowed since \( x \ne 0 \)). \[ \frac{dy}{dx} + \frac{2}{x}y = x \] Here \( P = \frac{2}{x} \) and \( Q = x \).
  2. Step 2: Find the integrating factor. First integrate \( P \). \[ \int P \, dx = \int \frac{2}{x} \, dx = 2\ln|x| = \ln x^2 \] Then \[ \text{I.F.} = e^{\ln x^2} = x^2 \]
  3. Step 3: Multiply the standard equation by the integrating factor \( x^2 \). \[ x^2\frac{dy}{dx} + 2x\,y = x^3 \] The left side is now exactly the derivative of \( y \cdot x^2 \), because \( \frac{d}{dx}(y x^2) = x^2\frac{dy}{dx} + 2xy \). This is the whole point of the integrating factor.
  4. Step 4: Rewrite the left side as a single derivative and integrate both sides with respect to \( x \). \[ \frac{d}{dx}\left( y x^2 \right) = x^3 \] Integrating gives \[ y x^2 = \int x^3 \, dx = \frac{x^4}{4} + C \]
  5. Step 5: Solve for \( y \) by dividing by \( x^2 \). \[ y = \frac{x^2}{4} + \frac{C}{x^2} \]

Final Answer

The general solution is \[ y = \frac{x^2}{4} + \frac{C}{x^2}, \quad x \ne 0 \] where \( C \) is an arbitrary constant.

Common Mistake

A frequent error is computing the integrating factor before converting to standard form, i.e. using \( P = 2 \) instead of \( P = \frac{2}{x} \). Always divide by the coefficient of \( \frac{dy}{dx} \) first so that \( P \) and \( Q \) are read correctly.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Convert to Standard Linear Form: Divide every term of the equation \( x\frac{dy}{dx} + 2y = x^2 \) by \( x \) (valid since \( x \ne 0 \)): \[ \frac{dy}{dx} + \frac{2}{x}y = x \] — Reason: The standard form requires the coefficient of \( \frac{dy}{dx} \) to be exactly 1. Dividing by \( x \) achieves this and reveals \( P = \frac{2}{x} \) and \( Q = x \).
  2. Step 2: Compute the Integral of P: Integrate \( P = \frac{2}{x} \) with respect to \( x \): \[ \int \frac{2}{x} \, dx = 2\ln|x| = \ln x^2 \] — Reason: This intermediate result is needed to build the integrating factor. Using the logarithm power rule, \( 2\ln|x| \) is rewritten as \( \ln x^2 \) to simplify the exponential in the next step.
  3. Step 3: Find the Integrating Factor: Raise \( e \) to the power of the result from Step 2: \[ \text{I.F.} = e^{\ln x^2} = x^2 \] — Reason: Since \( e^{\ln(\cdot)} \) and \( \ln(\cdot) \) are inverse operations, they cancel out, giving the clean integrating factor \( x^2 \).
  4. Step 4: Multiply the Equation by the Integrating Factor: Multiply both sides of the standard form equation by \( x^2 \): \[ x^2 \frac{dy}{dx} + 2xy = x^3 \] The left side is now the exact derivative of \( y \cdot x^2 \), because \[ \frac{d}{dx}\left(y \cdot x^2\right) = x^2\frac{dy}{dx} + 2xy \] So the equation becomes \[ \frac{d}{dx}\left(yx^2\right) = x^3 \] — Reason: This is the central purpose of the integrating factor — it forces the left side to collapse into a single derivative, making the equation directly integrable.
  5. Step 5: Integrate Both Sides: Integrate both sides with respect to \( x \): \[ \int \frac{d}{dx}\left(yx^2\right) \, dx = \int x^3 \, dx \] which gives \[ yx^2 = \frac{x^4}{4} + C \] — Reason: The left side integrates trivially (the integral of a derivative is the function itself), and the right side uses the standard power rule \( \int x^n \, dx = \frac{x^{n+1}}{n+1} + C \). The constant of integration \( C \) is added on the right.
  6. Step 6: Solve for y: Divide both sides of \( yx^2 = \frac{x^4}{4} + C \) by \( x^2 \): \[ y = \frac{x^2}{4} + \frac{C}{x^2} \] — Reason: Isolating \( y \) gives the explicit general solution. Here \( C \) remains an arbitrary constant (dividing a constant by \( x^2 \) produces another expression that still represents the family of solutions parameterised by \( C \)).

Final Answer

The general solution is \[ y = \frac{x^2}{4} + \frac{C}{x^2}, \quad x \ne 0 \] where \( C \) is an arbitrary constant.

Common Mistake

One common mistake: forgetting to divide the entire equation by \( x \) before identifying \( P \) and \( Q \). If you read off \( P = 2 \) and \( Q = x^2 \) directly from \( x\frac{dy}{dx} + 2y = x^2 \) without first dividing by \( x \), you get a wrong integrating factor and an incorrect solution.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Divide by \( x \): \[\frac{dy}{dx} + \frac{2}{x}y = x\] so \( P = \frac{2}{x} \), \( Q = x \).
  2. Step 2: \[\text{I.F.} = e^{\int \frac{2}{x}\\, dx} = e^{2\ln|x|} = x^2\]
  3. Step 3: Multiply through by \( x^2 \): \[\frac{d}{dx}(y \cdot x^2) = x^3\]
  4. Step 4: Integrate both sides: \[y \cdot x^2 = \int x^3 \\, dx = \frac{x^4}{4} + C\] Divide by \( x^2 \): \[y = \frac{x^2}{4} + \frac{C}{x^2}\]

Answer: The general solution is \[ y = \frac{x^2}{4} + \frac{C}{x^2}, \quad x \ne 0 \] where \( C \) is an arbitrary constant.

➕ More Examples

More Examples

Example 1

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

Solution: Divide throughout by \( x \) to write the equation in standard linear form: \[ \frac{dy}{dx} - \frac{3}{x}\,y = x^3 \] Here \( P(x) = -\dfrac{3}{x} \) and \( Q(x) = x^3 \). Compute the integrating factor: \[ \mu = e^{\int -\frac{3}{x}\,dx} = e^{-3\ln|x|} = e^{\ln|x|^{-3}} = x^{-3} \] Multiply both sides by \( x^{-3} \): \[ x^{-3}\frac{dy}{dx} - 3x^{-4}\,y = 1 \] The left side is the derivative of \( y \cdot x^{-3} \): \[ \frac{d}{dx}\left(y \cdot x^{-3}\right) = 1 \] Integrate both sides with respect to \( x \): \[ y \cdot x^{-3} = \int 1\,dx = x + C \] Multiply through by \( x^3 \) to solve for \( y \): \[ y = x^4 + C\,x^3 \]

Answer: \( y = x^4 + C\,x^3 \)

Example 2

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

Solution: Divide throughout by \( x \) to write the equation in standard linear form: \[ \frac{dy}{dx} + \frac{3}{x}\,y = x^2\ln x \] Here \( P(x) = \dfrac{3}{x} \) and \( Q(x) = x^2\ln x \). Compute the integrating factor: \[ \mu = e^{\int \frac{3}{x}\,dx} = e^{3\ln x} = x^3 \] Multiply both sides by \( x^3 \): \[ x^3\frac{dy}{dx} + 3x^2\,y = x^5\ln x \] The left side is the derivative of \( y \cdot x^3 \): \[ \frac{d}{dx}\left(y \cdot x^3\right) = x^5\ln x \] Integrate both sides with respect to \( x \): \[ y\,x^3 = \int x^5\ln x\,dx \] Use integration by parts with \( u = \ln x \) and \( dv = x^5\,dx \), so \( du = \dfrac{1}{x}\,dx \) and \( v = \dfrac{x^6}{6} \): \[ \int x^5\ln x\,dx = \frac{x^6}{6}\ln x - \int \frac{x^6}{6}\cdot\frac{1}{x}\,dx = \frac{x^6}{6}\ln x - \frac{1}{6}\int x^5\,dx \] \[ = \frac{x^6}{6}\ln x - \frac{x^6}{36} + C \] Therefore: \[ y\,x^3 = \frac{x^6}{6}\ln x - \frac{x^6}{36} + C \] Divide through by \( x^3 \): \[ y = \frac{x^3}{6}\ln x - \frac{x^3}{36} + C\,x^{-3} \]

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation \[ x\,\frac{dy}{dx} - 3y = x^4, \quad x \ne 0. \]

Solution

  1. Step 1: Rewrite in Standard Linear Form: Divide every term by \( x \) (since \( x \ne 0 \)) to get the equation in the standard form \( \frac{dy}{dx} + P(x)\,y = Q(x) \). Dividing throughout by \( x \): \[ \frac{dy}{dx} - \frac{3}{x}\,y = x^3. \] Here \( P(x) = -\dfrac{3}{x} \) and \( Q(x) = x^3 \).
  2. Step 2: Find the Integrating Factor: The integrating factor is \( \mu(x) = e^{\int P(x)\,dx} \). Compute the integral: \[ \int P(x)\,dx = \int -\frac{3}{x}\,dx = -3\ln|x| = \ln|x|^{-3}. \] Therefore: \[ \mu(x) = e^{\ln|x|^{-3}} = x^{-3} = \frac{1}{x^3}. \]
  3. Step 3: Multiply Both Sides by the Integrating Factor: Multiply the standard-form equation by \( \mu(x) = \dfrac{1}{x^3} \): \[ \frac{1}{x^3}\,\frac{dy}{dx} - \frac{3}{x^4}\,y = x^3 \cdot \frac{1}{x^3}. \] The left-hand side is exactly the derivative of \( y \cdot x^{-3} \) with respect to \( x \): \[ \frac{d}{dx}\left(\frac{y}{x^3}\right) = 1. \]
  4. Step 4: Integrate Both Sides: Integrate both sides with respect to \( x \): \[ \int \frac{d}{dx}\left(\frac{y}{x^3}\right)\,dx = \int 1\,dx. \] This gives: \[ \frac{y}{x^3} = x + C, \] where \( C \) is an arbitrary constant.
  5. Step 5: Write the General Solution: Multiply both sides by \( x^3 \) to isolate \( y \): \[ y = x^3\,(x + C) = x^4 + C\,x^3. \] This is the required general solution.

Answer: The general solution is \[ y = x^4 + C\,x^3, \quad x \ne 0, \] where \( C \) is an arbitrary constant.

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) 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 65/3/1 2023 / Section C Q26(a)