SOLVER7 Study. Nothing Else.
2023 Board Paper Q27(a)

Find the general solution of the differential equation :
\((xy – x^2) dy = y^2\ dx.\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a machine that mixes two things together, and the mix always looks the same no matter how big or small you make it. This differential equation is like that machine. We replace the tricky mix with a single new ingredient called \( v \), which equals \( \frac{y}{x} \). After swapping, the puzzle becomes much easier to untangle. We gently pull the two sides apart so each side has only one ingredient, then collect everything up to find the answer.

Answer: The general solution is \[ \frac{y}{x} - \log|y| = C, \] or equivalently \[ \frac{y}{x} = \log|y| + C. \]

📖 General Solution of a Homogeneous Differential Equation

Detailed Explanation

A first-order differential equation is called homogeneous if it can be written in the form \( \frac{dy}{dx} = F\left(\frac{y}{x}\right) \), that is, the right side depends only on the ratio \( \frac{y}{x} \). Here every term in \( (xy - x^2)\,dy = y^2\,dx \) has total degree 2, so the equation is homogeneous. To solve such equations we use the substitution \( y = vx \), which converts the equation into a variables-separable form that we can integrate directly.

Formula Used

Substitution for homogeneous equations: \( y = vx \) so that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \).

Solution

  1. Step 1: Write the equation in the form \( \frac{dy}{dx} \). From \( (xy - x^2)\,dy = y^2\,dx \) we get \[ \frac{dy}{dx} = \frac{y^2}{xy - x^2}. \]
  2. Step 2: Check that it is homogeneous by dividing numerator and denominator by \( x^2 \): \[ \frac{dy}{dx} = \frac{\left(\frac{y}{x}\right)^2}{\frac{y}{x} - 1}. \] The right side depends only on \( \frac{y}{x} \), so it is homogeneous.
  3. Step 3: Substitute \( y = vx \), which gives \[ \frac{dy}{dx} = v + x\frac{dv}{dx}. \] Also \( \frac{y}{x} = v \), so the equation becomes \[ v + x\frac{dv}{dx} = \frac{v^2}{v - 1}. \]
  4. Step 4: Isolate the term with \( \frac{dv}{dx} \): \[ x\frac{dv}{dx} = \frac{v^2}{v - 1} - v. \] Combine over a common denominator: \[ x\frac{dv}{dx} = \frac{v^2 - v(v-1)}{v-1} = \frac{v}{v-1}. \]
  5. Step 5: Separate the variables so each side contains only one variable: \[ \frac{v-1}{v}\,dv = \frac{dx}{x}. \] The left side simplifies to \[ \left(1 - \frac{1}{v}\right)dv = \frac{dx}{x}. \]
  6. Step 6: Integrate both sides: \[ \int \left(1 - \frac{1}{v}\right)dv = \int \frac{dx}{x}. \] This gives \[ v - \log|v| = \log|x| + C. \]
  7. Step 7: Replace \( v \) by \( \frac{y}{x} \) to return to the original variables: \[ \frac{y}{x} - \log\left|\frac{y}{x}\right| = \log|x| + C. \] Since \( \log\left|\frac{y}{x}\right| = \log|y| - \log|x| \), we get \[ \frac{y}{x} - \log|y| + \log|x| = \log|x| + C, \] which simplifies to \[ \frac{y}{x} - \log|y| = C. \]

Final Answer

The general solution is \[ \frac{y}{x} - \log|y| = C, \] or equivalently \[ \frac{y}{x} = \log|y| + C. \]

Common Mistake

A common mistake is forgetting to replace \( \frac{dy}{dx} \) with \( v + x\frac{dv}{dx} \) after the substitution \( y = vx \); students often write only \( \frac{dv}{dx} \), which drops the \( v \) term and leads to a wrong equation.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite the given equation \( (xy - x^2)\,dy = y^2\,dx \) in the standard form \( \frac{dy}{dx} = (\text{something}) \) by dividing both sides by \( xy - x^2 \): \[ \frac{dy}{dx} = \frac{y^2}{xy - x^2}. \] Reason: Expressing the equation as \( \frac{dy}{dx} = F(x, y) \) is the first step to identifying the type of ODE and choosing an appropriate method.
  2. Step 2: Divide every term in the numerator and denominator by \( x^2 \) to check whether the right-hand side depends only on \( \frac{y}{x} \): \[ \frac{dy}{dx} = \frac{\left(\frac{y}{x}\right)^2}{\frac{y}{x} - 1}. \] Since the result depends only on \( \frac{y}{x} \), the equation is homogeneous. Reason: Confirming homogeneity tells us that the substitution \( y = vx \) will simplify the equation into a separable one.
  3. Step 3: Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \) and \( \frac{y}{x} = v \). The equation becomes \[ v + x\frac{dv}{dx} = \frac{v^2}{v - 1}. \] Reason: This substitution replaces two variables \( x \) and \( y \) with two variables \( x \) and \( v \), but in a form where separation is possible.
  4. Step 4: Isolate \( x\frac{dv}{dx} \) on the left side: \[ x\frac{dv}{dx} = \frac{v^2}{v-1} - v. \] Combine the right side over a common denominator \( (v-1) \): \[ x\frac{dv}{dx} = \frac{v^2 - v(v-1)}{v-1} = \frac{v^2 - v^2 + v}{v-1} = \frac{v}{v-1}. \] Reason: Simplifying to a single fraction on the right side is necessary before we can separate the variables \( v \) and \( x \).
  5. Step 5: Separate the variables by moving all terms involving \( v \) to the left and all terms involving \( x \) to the right: \[ \frac{v-1}{v}\,dv = \frac{dx}{x}. \] Rewrite the left side by splitting the fraction: \[ \left(1 - \frac{1}{v}\right)dv = \frac{dx}{x}. \] Reason: Having each variable on its own side allows us to integrate both sides independently.
  6. Step 6: Integrate both sides: \[ \int \left(1 - \frac{1}{v}\right)dv = \int \frac{dx}{x}. \] The left side gives \( v - \log|v| \) and the right side gives \( \log|x| \), so \[ v - \log|v| = \log|x| + C_1. \] Reason: Integration is the core operation that produces the general solution containing the arbitrary constant.
  7. Step 7: Substitute back \( v = \frac{y}{x} \) to express the answer in terms of \( x \) and \( y \): \[ \frac{y}{x} - \log\left|\frac{y}{x}\right| = \log|x| + C_1. \] Expand \( \log\left|\frac{y}{x}\right| = \log|y| - \log|x| \): \[ \frac{y}{x} - \log|y| + \log|x| = \log|x| + C_1. \] The \( \log|x| \) terms cancel on both sides, leaving \[ \frac{y}{x} - \log|y| = C_1. \] Writing \( C_1 = C \) gives the final general solution. Reason: Reverting to the original variables and absorbing constants into a single arbitrary constant \( C \) completes the solution.

Final Answer

The general solution is \[ \frac{y}{x} - \log|y| = C, \] or equivalently \[ \frac{y}{x} = \log|y| + C. \]

Common Mistake

One common mistake: After integrating, students forget to substitute \( v = \frac{y}{x} \) back and instead leave the answer in terms of \( v \) — always revert to the original variables \( x \) and \( y \) before writing the final general solution.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite: \[ \frac{dy}{dx} = \frac{y^2}{xy - x^2} = \frac{v^2}{v - 1} \] where \( v = \frac{y}{x} \). Substitute \( y = vx \): \[ v + x\frac{dv}{dx} = \frac{v^2}{v-1} \]
  2. Step 2: Separate variables: \[ x\frac{dv}{dx} = \frac{v^2 - v(v-1)}{v-1} = \frac{v}{v-1} \implies \frac{v-1}{v}\,dv = \frac{dx}{x} \]
  3. Step 3: Integrate both sides: \[ \int \left(1 - \frac{1}{v}\right)dv = \int \frac{dx}{x} \implies v - \log|v| = \log|x| + C_1 \]
  4. Step 4: Back-substitute \( v = \frac{y}{x} \): \[ \frac{y}{x} - \log\left|\frac{y}{x}\right| = \log|x| + C_1 \implies \frac{y}{x} - \log|y| + \log|x| = \log|x| + C_1 \implies \frac{y}{x} - \log|y| = C \]

Answer: The general solution is \[ \frac{y}{x} - \log|y| = C, \] or equivalently \[ \frac{y}{x} = \log|y| + C. \]

➕ More Examples

More Examples

Example 1

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

Solution: We rewrite the equation as \[ \frac{dy}{dx} = \frac{xy - y^2}{x^2 + xy}. \] Dividing numerator and denominator by \( x^2 \): \[ \frac{dy}{dx} = \frac{\frac{y}{x} - \left(\frac{y}{x}\right)^2}{1 + \frac{y}{x}}. \] This is a homogeneous equation. Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = \frac{v - v^2}{1 + v}. \] Therefore: \[ x\frac{dv}{dx} = \frac{v - v^2}{1 + v} - v = \frac{v - v^2 - v(1+v)}{1+v} = \frac{v - v^2 - v - v^2}{1+v} = \frac{-2v^2}{1+v}. \] Separating variables: \[ \frac{1+v}{v^2}\, dv = -\frac{2}{x}\, dx. \] Writing the left side as \[ \left(\frac{1}{v^2} + \frac{1}{v}\right) dv = -\frac{2}{x}\, dx. \] Integrating both sides: \[ -\frac{1}{v} + \ln|v| = -2\ln|x| + C_1. \] Back-substituting \( v = \frac{y}{x} \): \[ -\frac{x}{y} + \ln\left|\frac{y}{x}\right| = -2\ln|x| + C_1. \] Using \( \ln\left|\frac{y}{x}\right| = \ln|y| - \ln|x| \): \[ -\frac{x}{y} + \ln|y| - \ln|x| + 2\ln|x| = C_1. \] Simplifying: \[ -\frac{x}{y} + \ln|y| + \ln|x| = C_1. \] Writing \( C \) for the arbitrary constant, the general solution is \[ \ln|xy| - \frac{x}{y} = C. \]

Answer: \( \ln|xy| - \dfrac{x}{y} = C \)

Example 2

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

Solution: Rearranging the equation: \[ x^2\, dy = (xy - y^2)\, dx \] \[ \frac{dy}{dx} = \frac{xy - y^2}{x^2}. \] Dividing numerator and denominator by \( x^2 \): \[ \frac{dy}{dx} = \frac{y}{x} - \left(\frac{y}{x}\right)^2. \] This is a homogeneous equation. Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = v - v^2. \] Therefore: \[ x\frac{dv}{dx} = -v^2. \] Separating variables: \[ -\frac{dv}{v^2} = \frac{dx}{x}. \] Integrating both sides: \[ \int -v^{-2}\, dv = \int \frac{1}{x}\, dx. \] \[ \frac{1}{v} = \ln|x| + C_1. \] Back-substituting \( v = \frac{y}{x} \), so \( \frac{1}{v} = \frac{x}{y} \): \[ \frac{x}{y} = \ln|x| + C_1. \] Writing \( C \) for the arbitrary constant, the general solution is \[ \frac{x}{y} = \ln|x| + C. \]

Answer: \( \dfrac{x}{y} = \ln|x| + C \)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation: \[ (x^2 y - x^3)\, dy = y^3\, dx. \]

Solution

  1. Step 1: Rewrite as dy/dx: Rewrite the equation in the form \( \frac{dy}{dx} \). Starting from \( (x^2 y - x^3)\, dy = y^3\, dx \), we get \[ \frac{dy}{dx} = \frac{y^3}{x^2 y - x^3} = \frac{y^3}{x^2(y - x)}. \]
  2. Step 2: Check for homogeneity: Check the degree of numerator and denominator. The numerator is \( y^3 \) (degree 3) and the denominator is \( x^2(y - x) \) (degree 3). Since both have the same degree, the equation is homogeneous of degree 0 in \( \frac{dy}{dx} \).
  3. Step 3: Use the substitution y = vx: Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting into \( \frac{dy}{dx} = \frac{y^3}{x^2(y - x)} \): \[ v + x\frac{dv}{dx} = \frac{(vx)^3}{x^2(vx - x)} = \frac{v^3 x^3}{x^2 \cdot x(v - 1)} = \frac{v^3}{v - 1}. \]
  4. Step 4: Separate variables: Subtract \( v \) from both sides: \[ x\frac{dv}{dx} = \frac{v^3}{v-1} - v = \frac{v^3 - v(v-1)}{v-1} = \frac{v^3 - v^2 + v}{v-1} = \frac{v(v^2 - v + 1)}{v-1}. \] Separating variables: \[ \frac{v-1}{v(v^2 - v + 1)}\, dv = \frac{dx}{x}. \]
  5. Step 5: Decompose using partial fractions: Write \[ \frac{v-1}{v(v^2 - v + 1)} = \frac{A}{v} + \frac{Bv + C}{v^2 - v + 1}. \] Multiplying both sides by \( v(v^2 - v + 1) \): \[ v - 1 = A(v^2 - v + 1) + (Bv + C)v. \] Setting \( v = 0 \): \( -1 = A \). So \( A = -1 \). Expanding with \( A = -1 \): \[ v - 1 = -v^2 + v - 1 + Bv^2 + Cv. \] Comparing \( v^2 \) coefficients: \( 0 = -1 + B \), giving \( B = 1 \). Comparing \( v^0 \) coefficients: already satisfied. Comparing \( v^1 \) coefficients: \( 1 = 1 + C \), giving \( C = 0 \). So \[ \frac{v-1}{v(v^2 - v + 1)} = \frac{-1}{v} + \frac{v}{v^2 - v + 1}. \]
  6. Step 6: Integrate both sides: The equation becomes \[ \left(\frac{-1}{v} + \frac{v}{v^2 - v + 1}\right) dv = \frac{dx}{x}. \] Integrating the left side: \[ \int \frac{-1}{v}\, dv + \int \frac{v}{v^2 - v + 1}\, dv. \] The first integral is \( -\log|v| \). For the second, note that the derivative of \( v^2 - v + 1 \) is \( 2v - 1 \), so write \( v = \frac{1}{2}(2v - 1) + \frac{1}{2} \): \[ \int \frac{v}{v^2 - v + 1}\, dv = \frac{1}{2}\int \frac{2v-1}{v^2 - v + 1}\, dv + \frac{1}{2}\int \frac{dv}{v^2 - v + 1}. \] The first part gives \( \frac{1}{2}\log|v^2 - v + 1| \). For the second part, complete the square: \( v^2 - v + 1 = \left(v - \frac{1}{2}\right)^2 + \frac{3}{4} \), giving \( \frac{1}{2} \cdot \frac{2}{\sqrt{3}}\tan^{-1}\left(\frac{2v-1}{\sqrt{3}}\right) = \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2v-1}{\sqrt{3}}\right) \). Integrating the right side gives \( \log|x| \). Combining: \[ -\log|v| + \frac{1}{2}\log|v^2 - v + 1| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2v-1}{\sqrt{3}}\right) = \log|x| + C_1. \]
  7. Step 7: Back-substitute v = y/x: Replace \( v = \frac{y}{x} \): \[ -\log\left|\frac{y}{x}\right| + \frac{1}{2}\log\left|\frac{y^2}{x^2} - \frac{y}{x} + 1\right| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{\frac{2y}{x}-1}{\sqrt{3}}\right) = \log|x| + C_1. \] Using \( -\log\left|\frac{y}{x}\right| = \log|x| - \log|y| \) and simplifying \( \log\left|\frac{y^2 - xy + x^2}{x^2}\right| = \log|y^2 - xy + x^2| - 2\log|x| \): \[ \log|x| - \log|y| + \frac{1}{2}\log|y^2 - xy + x^2| - \log|x^2| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2y - x}{x\sqrt{3}}\right) = \log|x| + C_1. \] Since \( \log|x^2| = 2\log|x| \): \[ -\log|y| + \frac{1}{2}\log|y^2 - xy + x^2| - \log|x| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2y - x}{x\sqrt{3}}\right) = C_1. \]
  8. Step 8: Write the general solution: The general solution is \[ -\log|y| + \frac{1}{2}\log(y^2 - xy + x^2) - \log|x| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2y - x}{x\sqrt{3}}\right) = C. \] This can also be written as \[ \frac{1}{2}\log(y^2 - xy + x^2) - \log|xy| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2y - x}{\sqrt{3}\,x}\right) = C. \]

Answer: The general solution is \[ \frac{1}{2}\log(y^2 - xy + x^2) - \log|xy| + \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{2y - x}{\sqrt{3}\,x}\right) = C. \]

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