SOLVER7 Study. Nothing Else.
2026 Board Paper Q29(a)

Find the general solution of the following differential equation : \(x^2\dfrac{dy}{dx}=x^2+xy+y^2\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy recipe with two ingredients mixed together. A clever trick is to write one ingredient as a multiple of the other, so you only track their ratio. That is exactly what we do here: we notice the equation only cares about the ratio of \( y \) to \( x \), not their individual sizes. Swapping to that ratio turns the problem into a simple sorting puzzle where the two sides can be separated. After sorting and adding up both sides, we get a clean relationship between \( y \), \( x \), and a free number \( C \).

Answer: \[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.

📖 General Solution of a Homogeneous Differential Equation

Detailed Explanation

A differential equation of the form \( \frac{dy}{dx} = F(x, y) \) is called homogeneous if \( F(x, y) \) can be written purely in terms of the ratio \( \frac{y}{x} \). Here, dividing the right side by \( x^2 \) shows every term depends only on \( \frac{y}{x} \), so the equation is homogeneous. To solve such equations we substitute \( y = vx \), which converts them into a variables-separable form that we can integrate. This works because the substitution replaces the mixed dependence on \( x \) and \( y \) with a single variable \( v \).

Formula Used

For a homogeneous equation \( \frac{dy}{dx} = F\left(\frac{y}{x}\right) \), put \( y = vx \) so that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Also use \( \int \frac{dv}{1+v^2} = \tan^{-1} v + C \).

Solution

  1. Step 1: Write the equation in the form \( \frac{dy}{dx} = F(x,y) \). Dividing throughout by \( x^2 \): \[ \frac{dy}{dx} = \frac{x^2 + xy + y^2}{x^2} = 1 + \frac{y}{x} + \left(\frac{y}{x}\right)^2 \] Since the right side depends only on \( \frac{y}{x} \), the equation is homogeneous.
  2. Step 2: Use the substitution \( y = vx \). Differentiating with respect to \( x \): \[ \frac{dy}{dx} = v + x\frac{dv}{dx} \] Substitute this into the equation: \[ v + x\frac{dv}{dx} = 1 + v + v^2 \]
  3. Step 3: Cancel \( v \) from both sides to separate the variables: \[ x\frac{dv}{dx} = 1 + v^2 \] Rearranging so that all \( v \) terms are on one side and all \( x \) terms on the other: \[ \frac{dv}{1+v^2} = \frac{dx}{x} \]
  4. Step 4: Integrate both sides: \[ \int \frac{dv}{1+v^2} = \int \frac{dx}{x} \] This gives: \[ \tan^{-1} v = \ln|x| + C \]
  5. Step 5: Replace \( v \) by \( \frac{y}{x} \) to return to the original variables: \[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \]

Final Answer

\[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.

Common Mistake

A common mistake is forgetting that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \) and instead writing \( \frac{dy}{dx} = v \), which loses the whole method. Another frequent error is not cancelling \( v \) correctly, or omitting the constant \( C \) and the modulus in \( \ln|x| \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite the equation in the form \( \frac{dy}{dx} = F(x, y) \) and check whether it is homogeneous. Divide the right-hand side by \( x^2 \): \[ \frac{dy}{dx} = \frac{x^2 + xy + y^2}{x^2} = 1 + \frac{y}{x} + \left(\frac{y}{x}\right)^2 \] — Reason: Since every term on the right depends only on the ratio \( \frac{y}{x} \), the equation is confirmed to be homogeneous, which tells us the substitution \( y = vx \) will work.
  2. Step 2: Introduce the substitution \( y = vx \) and differentiate with respect to \( x \): \[ \frac{dy}{dx} = v + x\frac{dv}{dx} \] — Reason: Writing \( y \) as a product \( vx \) converts the two-variable problem into a single-variable problem in \( v \) and \( x \), making the equation separable.
  3. Step 3: Replace \( \frac{dy}{dx} \) and \( \frac{y}{x} \) in the rewritten equation using the substitution: \[ v + x\frac{dv}{dx} = 1 + v + v^2 \] Now cancel \( v \) from both sides: \[ x\frac{dv}{dx} = 1 + v^2 \] — Reason: Cancelling the common \( v \) isolates \( x\frac{dv}{dx} \) cleanly on the left, preparing the equation for variable separation.
  4. Step 4: Separate the variables by placing all \( v \)-terms on one side and all \( x \)-terms on the other: \[ \frac{dv}{1 + v^2} = \frac{dx}{x} \] — Reason: Once the variables are separated, each side can be integrated independently using standard integral formulas.
  5. Step 5: Integrate both sides: \[ \int \frac{dv}{1 + v^2} = \int \frac{dx}{x} \] which gives \[ \tan^{-1} v = \ln|x| + C \] — Reason: The left side uses the standard result \( \int \frac{dv}{1+v^2} = \tan^{-1} v \), and the right side uses \( \int \frac{dx}{x} = \ln|x| \). The constant of integration \( C \) is added on one side only.
  6. Step 6: Substitute back \( v = \frac{y}{x} \) to express the answer in terms of the original variables \( x \) and \( y \): \[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] — Reason: The solution must be written in terms of \( x \) and \( y \), not the auxiliary variable \( v \). This gives the general solution of the original differential equation.

Final Answer

\[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.

Common Mistake

One common mistake: forgetting to cancel the \( v \) term after substitution — students often write \( x\frac{dv}{dx} = 1 + 2v + v^2 \) instead of the correct \( x\frac{dv}{dx} = 1 + v^2 \), which leads to an incorrect separation of variables and a wrong final answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite: \[ \frac{dy}{dx} = 1 + \frac{y}{x} + \left(\frac{y}{x}\right)^2 \] Put \( y = vx \): \[ v + x\frac{dv}{dx} = 1 + v + v^2 \]
  2. Step 2: Simplify and separate variables: \[ x\frac{dv}{dx} = 1 + v^2 \implies \frac{dv}{1 + v^2} = \frac{dx}{x} \]
  3. Step 3: Integrate both sides: \[ \int \frac{dv}{1 + v^2} = \int \frac{dx}{x} \implies \tan^{-1}(v) = \ln|x| + C \] Back-substitute \( v = \frac{y}{x} \).

Answer: \[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.

➕ More Examples

More Examples

Example 1

Question: Find the general solution of the differential equation \[ x^2 \frac{dy}{dx} = 2x^2 + 3xy + y^2. \]

Solution: Step 1: Rewrite the equation. Divide both sides by \( x^2 \): \[ \frac{dy}{dx} = 2 + \frac{3y}{x} + \frac{y^2}{x^2}. \] The right-hand side depends only on \( \frac{y}{x} \), confirming the equation is homogeneous. Step 2: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). The equation becomes \[ v + x\frac{dv}{dx} = 2 + 3v + v^2. \] Rearranging: \[ x\frac{dv}{dx} = 2 + 2v + v^2. \] Step 3: Separate variables: \[ \frac{dv}{v^2 + 2v + 2} = \frac{dx}{x}. \] Complete the square in the denominator: \[ v^2 + 2v + 2 = (v+1)^2 + 1. \] So the equation is \[ \frac{dv}{(v+1)^2 + 1} = \frac{dx}{x}. \] Step 4: Integrate both sides: \[ \int \frac{dv}{(v+1)^2 + 1} = \int \frac{dx}{x}. \] Using the standard formula \( \int \frac{du}{u^2+1} = \tan^{-1}(u) + C \): \[ \tan^{-1}(v+1) = \ln|x| + C. \] Step 5: Back-substitute \( v = \frac{y}{x} \): \[ \tan^{-1}\!\left(\frac{y}{x} + 1\right) = \ln|x| + C. \] This is the general solution.

Answer: \[ \tan^{-1}\!\left(\frac{y+x}{x}\right) = \ln|x| + C \]

Example 2

Question: Find the general solution of the differential equation \[ (x^2 - y^2)\frac{dy}{dx} = 2xy. \]

Solution: Step 1: Rewrite as \[ \frac{dy}{dx} = \frac{2xy}{x^2 - y^2}. \] Dividing numerator and denominator by \( x^2 \): \[ \frac{dy}{dx} = \frac{2\left(\frac{y}{x}\right)}{1 - \left(\frac{y}{x}\right)^2}. \] The equation is homogeneous. Step 2: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \): \[ v + x\frac{dv}{dx} = \frac{2v}{1 - v^2}. \] Rearranging: \[ x\frac{dv}{dx} = \frac{2v}{1 - v^2} - v = \frac{2v - v(1-v^2)}{1-v^2} = \frac{2v - v + v^3}{1-v^2} = \frac{v + v^3}{1-v^2} = \frac{v(1+v^2)}{1-v^2}. \] Step 3: Separate variables: \[ \frac{1-v^2}{v(1+v^2)}\,dv = \frac{dx}{x}. \] Use partial fractions on the left. Write \[ \frac{1-v^2}{v(1+v^2)} = \frac{A}{v} + \frac{Bv + D}{1+v^2}. \] Multiplying both sides by \( v(1+v^2) \): \[ 1 - v^2 = A(1+v^2) + (Bv+D)v. \] Setting \( v = 0 \): \( A = 1 \). Comparing \( v^2 \) coefficients: \( -1 = A + B \), so \( B = -2 \). Comparing \( v^1 \) coefficients: \( 0 = D \). Thus \[ \frac{1-v^2}{v(1+v^2)} = \frac{1}{v} - \frac{2v}{1+v^2}. \] Step 4: Integrate both sides: \[ \int\!\left(\frac{1}{v} - \frac{2v}{1+v^2}\right)dv = \int \frac{dx}{x}. \] \[ \ln|v| - \ln(1+v^2) = \ln|x| + \ln|C_1|. \] Combining logarithms: \[ \ln\left|\frac{v}{1+v^2}\right| = \ln|C_1 x|. \] Therefore \[ \frac{v}{1+v^2} = C_1 x. \] Step 5: Back-substitute \( v = \frac{y}{x} \): \[ \frac{\dfrac{y}{x}}{1 + \dfrac{y^2}{x^2}} = C_1 x \implies \frac{xy}{x^2 + y^2} = C_1 x. \] Dividing both sides by \( x \) (assuming \( x \ne 0 \)) and writing \( C = C_1 \): \[ \frac{y}{x^2 + y^2} = C. \] Equivalently, the general solution is \[ x^2 + y^2 = \frac{y}{C}. \] Renaming the arbitrary constant \( \frac{1}{C} = k \): \[ x^2 + y^2 = ky. \]

Answer: \[ x^2 + y^2 = ky \] where \( k \) is an arbitrary constant.

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation: \[ x^2 \frac{dy}{dx} = y^2 + 2xy - x^2 \]

Solution

  1. Step 1: Rewrite in standard form: Divide both sides by \( x^2 \) to get: \[ \frac{dy}{dx} = \frac{y^2 + 2xy - x^2}{x^2} = \left(\frac{y}{x}\right)^2 + 2\left(\frac{y}{x}\right) - 1 \] Since the right-hand side depends only on \( \frac{y}{x} \), the equation is homogeneous.
  2. Step 2: Apply the substitution y = vx: Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = v^2 + 2v - 1 \] Simplify by subtracting \( v \) from both sides: \[ x\frac{dv}{dx} = v^2 + v - 1 \]
  3. Step 3: Separate variables: Separate the variables \( v \) and \( x \): \[ \frac{dv}{v^2 + v - 1} = \frac{dx}{x} \]
  4. Step 4: Factor the quadratic denominator: Find the roots of \( v^2 + v - 1 = 0 \) using the quadratic formula: \[ v = \frac{-1 \pm \sqrt{1 + 4}}{2} = \frac{-1 \pm \sqrt{5}}{2} \] So \( v^2 + v - 1 = \left(v - \alpha\right)\left(v - \beta\right) \) where \( \alpha = \frac{-1 + \sqrt{5}}{2} \) and \( \beta = \frac{-1 - \sqrt{5}}{2} \).
  5. Step 5: Use partial fractions: Note that \( \alpha - \beta = \sqrt{5} \). Using partial fractions: \[ \frac{1}{v^2 + v - 1} = \frac{1}{(v - \alpha)(v - \beta)} = \frac{1}{\sqrt{5}}\left(\frac{1}{v - \alpha} - \frac{1}{v - \beta}\right) \] Integrate both sides: \[ \frac{1}{\sqrt{5}}\int \left(\frac{1}{v - \alpha} - \frac{1}{v - \beta}\right) dv = \int \frac{dx}{x} \]
  6. Step 6: Integrate both sides: Carrying out the integration: \[ \frac{1}{\sqrt{5}} \ln\left|\frac{v - \alpha}{v - \beta}\right| = \ln|x| + C_1 \] where \( C_1 \) is an arbitrary constant.
  7. Step 7: Substitute back v = y/x: Replace \( v \) with \( \frac{y}{x} \), and note \( v - \alpha = \frac{y}{x} - \frac{-1+\sqrt{5}}{2} = \frac{2y - x(-1+\sqrt{5})}{2x} \) and similarly for \( v - \beta \). Thus: \[ \frac{1}{\sqrt{5}} \ln\left|\frac{2y + x(1 - \sqrt{5})}{2y + x(1 + \sqrt{5})}\right| = \ln|x| + C_1 \] This can be written compactly as: \[ \ln\left|\frac{2y + x(1 - \sqrt{5})}{2y + x(1 + \sqrt{5})}\right| = \sqrt{5}\ln|x| + C \] where \( C = \sqrt{5}\, C_1 \) is an arbitrary constant.

Answer: The general solution is: \[ \ln\left|\frac{2y + x(1 - \sqrt{5})}{2y + x(1 + \sqrt{5})}\right| = \sqrt{5}\ln|x| + C \] 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) 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