SOLVER7 Study. Nothing Else.
Exercise 9.4 Q1

In each of the Exercises 1 to 10, show that the given differential equation is homogeneous and solve each of them.
\((x^2+xy)dy=(x^2+y^2)dx\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine a recipe that always tastes the same no matter how big or small a batch you make. Some maths equations are like that — they look the same whether you scale all the numbers up or down. When an equation has that special quality, you can swap out one variable with a clever trick to make the whole thing much simpler to solve. It is like untangling a knot by pulling just the right loose end. Once untangled, you can solve it easily and then swap back to get your final answer.

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

📖 Solving a Homogeneous Differential Equation

Detailed Explanation

A first-order differential equation \( \frac{dy}{dx} = F(x, y) \) is called homogeneous if \( F(x, y) \) can be written as a function of \( \frac{y}{x} \) only, that is \( F(\lambda x, \lambda y) = F(x, y) \) for every non-zero \( \lambda \). Such equations are solved by the substitution \( y = vx \), which turns them into a variables-separable equation in \( v \) and \( x \). Here we first rewrite the given equation in the form \( \frac{dy}{dx} = F(x, y) \), confirm homogeneity, substitute, separate variables, integrate, and finally return to the original variables.

Formula Used

Substitution for homogeneous equations: \( y = vx \) so that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Useful integral: \( \int \frac{1}{1-v}\,dv = -\log|1-v| + C \).

Solution

  1. Step 1: Write the equation in the form \( \frac{dy}{dx} = F(x, y) \). From \( (x^2 + xy)\,dy = (x^2 + y^2)\,dx \), we get \[ \frac{dy}{dx} = \frac{x^2 + y^2}{x^2 + xy}. \]
  2. Step 2: Check homogeneity. Replace \( x \) by \( \lambda x \) and \( y \) by \( \lambda y \): \[ F(\lambda x, \lambda y) = \frac{\lambda^2 x^2 + \lambda^2 y^2}{\lambda^2 x^2 + \lambda^2 xy} = \frac{x^2 + y^2}{x^2 + xy} = F(x, y). \] Since the function is unchanged, the equation is homogeneous of degree zero.
  3. Step 3: Apply the substitution \( y = vx \). Then \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting into the equation: \[ v + x\frac{dv}{dx} = \frac{x^2 + v^2 x^2}{x^2 + vx^2} = \frac{1 + v^2}{1 + v}. \]
  4. Step 4: Isolate \( x\frac{dv}{dx} \) by moving \( v \) to the right: \[ x\frac{dv}{dx} = \frac{1 + v^2}{1 + v} - v = \frac{1 + v^2 - v - v^2}{1 + v} = \frac{1 - v}{1 + v}. \]
  5. Step 5: Separate the variables so all \( v \) terms are on one side and all \( x \) terms on the other: \[ \frac{1 + v}{1 - v}\,dv = \frac{dx}{x}. \]
  6. Step 6: Simplify the left side for integration. Write \[ \frac{1 + v}{1 - v} = \frac{-(1 - v) + 2}{1 - v} = -1 + \frac{2}{1 - v}. \] So the equation becomes \[ \left( -1 + \frac{2}{1 - v} \right) dv = \frac{dx}{x}. \]
  7. Step 7: Integrate both sides. \[ \int \left( -1 + \frac{2}{1 - v} \right) dv = \int \frac{dx}{x}. \] This gives \[ -v - 2\log|1 - v| = \log|x| + C_1. \]
  8. Step 8: Return to the original variables using \( v = \frac{y}{x} \), so \( 1 - v = \frac{x - y}{x} \). Substituting: \[ -\frac{y}{x} - 2\log\left| \frac{x - y}{x} \right| = \log|x| + C_1. \]
  9. Step 9: Simplify the logarithms. Since \( -2\log\left|\frac{x-y}{x}\right| = -2\log|x - y| + 2\log|x| \), we get \[ -\frac{y}{x} - 2\log|x - y| + 2\log|x| = \log|x| + C_1. \] Combining the log terms: \[ -\frac{y}{x} + \log|x| = 2\log|x - y| + C_1. \] Hence \[ \log|x| - 2\log|x - y| = \frac{y}{x} + C_1, \] which can be written as \[ \log\left| \frac{x}{(x - y)^2} \right| = \frac{y}{x} + C_1. \]

Final Answer

The general solution is \[ \log\left| \frac{x}{(x - y)^2} \right| = \frac{y}{x} + C, \] equivalently \[ 2\log|x - y| = \log|x| - \frac{y}{x} - C. \]

Common Mistake

A common mistake is forgetting that after substituting \( y = vx \), the derivative is \( \frac{dy}{dx} = v + x\frac{dv}{dx} \), not just \( x\frac{dv}{dx} \). Students often drop the extra \( v \), which makes the variables-separable step incorrect.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite in the form dy/dx = F(x, y): Starting from \( (x^2 + xy) \, dy = (x^2 + y^2) \, dx \), divide both sides by \( (x^2 + xy) \, dx \) to isolate \( \frac{dy}{dx} \): \[ \frac{dy}{dx} = \frac{x^2 + y^2}{x^2 + xy}. \] Reason: We need the equation in the standard form before we can test for homogeneity or apply any substitution.
  2. Step 2: Verify the equation is homogeneous: Replace \( x \) with \( \lambda x \) and \( y \) with \( \lambda y \) in \( F(x,y) = \frac{x^2 + y^2}{x^2 + xy} \): \[ F(\lambda x, \lambda y) = \frac{\lambda^2 x^2 + \lambda^2 y^2}{\lambda^2 x^2 + \lambda^2 xy} = \frac{x^2 + y^2}{x^2 + xy} = F(x, y). \] Since \( \lambda \) cancels completely, the right-hand side is a function of \( \frac{y}{x} \) alone. Reason: Confirming homogeneity tells us the substitution \( y = vx \) will work to reduce the equation to a separable one.
  3. Step 3: Apply the substitution y = vx: Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting into the equation and factoring \( x^2 \) from numerator and denominator: \[ v + x\frac{dv}{dx} = \frac{x^2(1 + v^2)}{x^2(1 + v)} = \frac{1 + v^2}{1 + v}. \] Reason: The substitution converts a two-variable equation into one involving only \( v \) and \( x \), which can then be separated.
  4. Step 4: Isolate x dv/dx and simplify: Subtract \( v \) from both sides: \[ x\frac{dv}{dx} = \frac{1 + v^2}{1 + v} - v = \frac{1 + v^2 - v(1+v)}{1+v} = \frac{1 + v^2 - v - v^2}{1+v} = \frac{1 - v}{1 + v}. \] Reason: Combining the terms over a common denominator reveals the separable structure needed for integration.
  5. Step 5: Separate variables and integrate: Rearrange to put all \( v \)-terms on one side and all \( x \)-terms on the other: \[ \frac{1+v}{1-v} \, dv = \frac{dx}{x}. \] Rewrite the left side by splitting the numerator: \[ \frac{1+v}{1-v} = \frac{-(1-v) + 2}{1-v} = -1 + \frac{2}{1-v}. \] Integrating both sides: \[ \int \left(-1 + \frac{2}{1-v}\right) dv = \int \frac{dx}{x}. \] This gives \[ -v - 2\log|1-v| = \log|x| + C_1. \] Reason: Separating variables and integrating is the standard technique once the equation is in separable form.
  6. Step 6: Substitute back v = y/x: Replace \( v \) with \( \frac{y}{x} \) throughout: \[ -\frac{y}{x} - 2\log\left|1 - \frac{y}{x}\right| = \log|x| + C_1. \] Note that \( 1 - \frac{y}{x} = \frac{x-y}{x} \), so \[ \log\left|1 - \frac{y}{x}\right| = \log|x-y| - \log|x|. \] Substituting: \[ -\frac{y}{x} - 2(\log|x-y| - \log|x|) = \log|x| + C_1. \] Reason: Returning to the original variables expresses the solution in terms of \( x \) and \( y \) as required.
  7. Step 7: Rearrange into the standard form: Expand and collect logarithm terms: \[ -\frac{y}{x} - 2\log|x-y| + 2\log|x| = \log|x| + C_1. \] Moving \( \log|x| \) to the left: \[ 2\log|x| - \log|x| - 2\log|x-y| = \frac{y}{x} + C_1. \] This simplifies to \[ \log|x| - 2\log|x-y| = \frac{y}{x} + C_1. \] Using logarithm rules, \( \log|x| - 2\log|x-y| = \log\left|\frac{x}{(x-y)^2}\right| \), so with \( C_1 = C \): \[ \log\left|\frac{x}{(x-y)^2}\right| = \frac{y}{x} + C. \] Reason: Applying logarithm properties condenses the expression into its most compact and recognisable form.

Final Answer

The general solution is \[ \log\left| \frac{x}{(x - y)^2} \right| = \frac{y}{x} + C, \] equivalently \[ 2\log|x - y| = \log|x| - \frac{y}{x} - C. \]

Common Mistake

One common mistake: when computing \( x\frac{dv}{dx} = \frac{1+v^2}{1+v} - v \), students often forget to place \( v \) over the common denominator \( (1+v) \) before subtracting, writing \( 1+v^2 - v \) instead of the correct \( 1+v^2 - v(1+v) = 1-v \), which leads to a completely wrong separable equation.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite and substitute: From \( (x^2 + xy)\,dy = (x^2 + y^2)\,dx \), we get \( \frac{dy}{dx} = \frac{x^2 + y^2}{x^2 + xy} \). Setting \( y = vx \): \[ v + x\frac{dv}{dx} = \frac{1 + v^2}{1 + v} \]
  2. Step 2: Separate variables: \[ x\frac{dv}{dx} = \frac{1 + v^2}{1 + v} - v = \frac{1 - v}{1 + v} \] Rearranging: \[ \frac{1 + v}{1 - v}\,dv = \frac{dx}{x} \]
  3. Step 3: Integrate both sides: Write \( \frac{1+v}{1-v} = \frac{2}{1-v} - 1 \), so integrating: \[ -2\log|1 - v| - v = \log|x| + C_0 \] Substituting back \( v = \frac{y}{x} \), so \( 1 - v = \frac{x-y}{x} \): \[ -2\log\left|\frac{x-y}{x}\right| - \frac{y}{x} = \log|x| + C_0 \]
  4. Step 4: Simplify to final form: \[ \log|x| - 2\log|x - y| + 2\log|x| - \frac{y}{x} = \log|x| + C_0 \] Collecting log terms: \[ \log\left|\frac{x}{(x-y)^2}\right| = \frac{y}{x} + C \]

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

➕ More Examples

More Examples

Example 1

Question: Show that the differential equation \((x^2 - y^2)\,dx + 2xy\,dy = 0\) is homogeneous and solve it.

Solution: Step 1: Rewrite in the form \(\frac{dy}{dx} = f(x,y)\). From the equation: \[(x^2 - y^2)\,dx + 2xy\,dy = 0\] we get \[\frac{dy}{dx} = -\frac{x^2 - y^2}{2xy} = \frac{y^2 - x^2}{2xy}.\] Step 2: Check homogeneity. Let \(F(x,y) = \frac{y^2 - x^2}{2xy}\). Then \[F(tx, ty) = \frac{t^2 y^2 - t^2 x^2}{2(tx)(ty)} = \frac{t^2(y^2 - x^2)}{2t^2 xy} = \frac{y^2 - x^2}{2xy} = F(x,y).\] So the equation is homogeneous of degree 0. Step 3: Substitute \(y = vx\), so \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Then \[v + x\frac{dv}{dx} = \frac{v^2 x^2 - x^2}{2x \cdot vx} = \frac{x^2(v^2 - 1)}{2vx^2} = \frac{v^2 - 1}{2v}.\] Step 4: Separate variables. \[x\frac{dv}{dx} = \frac{v^2 - 1}{2v} - v = \frac{v^2 - 1 - 2v^2}{2v} = \frac{-v^2 - 1}{2v}.\] So \[\frac{2v}{v^2 + 1}\,dv = -\frac{dx}{x}.\] Step 5: Integrate both sides. \[\int \frac{2v}{v^2 + 1}\,dv = -\int \frac{dx}{x}.\] The left side gives \(\ln|v^2 + 1|\) (since the numerator is the derivative of \(v^2+1\)), and the right side gives \(-\ln|x|\). So \[\ln(v^2 + 1) = -\ln|x| + \ln|C_1|,\] which means \[\ln(v^2 + 1) + \ln|x| = \ln|C_1|,\] i.e., \[(v^2 + 1)\,x = C\] (absorbing the sign into the constant \(C\)). Step 6: Back-substitute \(v = \frac{y}{x}\). \[\left(\frac{y^2}{x^2} + 1\right) x = C \implies \frac{y^2 + x^2}{x^2} \cdot x = C \implies \frac{x^2 + y^2}{x} = C.\] Therefore the general solution is \[x^2 + y^2 = Cx.\]

Answer: \(x^2 + y^2 = Cx\)

Example 2

Question: Show that the differential equation \(x\frac{dy}{dx} = y + x\tan\!\left(\frac{y}{x}\right)\) is homogeneous and solve it.

Solution: Step 1: Rewrite as \(\frac{dy}{dx} = f(x,y)\). \[\frac{dy}{dx} = \frac{y}{x} + \tan\!\left(\frac{y}{x}\right) = F\!\left(\frac{y}{x}\right).\] Since \(F\) depends only on \(\frac{y}{x}\), the equation is homogeneous of degree 0. Step 2: Substitute \(y = vx\), so \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Then \[v + x\frac{dv}{dx} = v + \tan v.\] Step 3: Simplify and separate variables. \[x\frac{dv}{dx} = \tan v,\] so \[\frac{dv}{\tan v} = \frac{dx}{x},\] i.e., \[\cot v\,dv = \frac{dx}{x}.\] Step 4: Integrate both sides. \[\int \cot v\,dv = \int \frac{dx}{x}.\] This gives \[\ln|\sin v| = \ln|x| + \ln|C_1|,\] so \[\ln|\sin v| = \ln|C_1 x|,\] which means \[\sin v = Cx\] (where \(C\) is an arbitrary constant). Step 5: Back-substitute \(v = \frac{y}{x}\). \[\sin\!\left(\frac{y}{x}\right) = Cx.\] Therefore the general solution is \[\sin\!\left(\frac{y}{x}\right) = Cx.\]

Answer: \(\sin\!\left(\dfrac{y}{x}\right) = Cx\)

🎯 Try a Similar Question

Try a Similar Question

Question: Show that the differential equation \( (x^2 + y^2)\,dx = (xy + x^2)\,dy \) is homogeneous and solve it.

Solution

  1. Step 1: Rewrite as dy/dx: Rearrange the equation to express \( \frac{dy}{dx} \): Starting from \( (x^2 + y^2)\,dx = (xy + x^2)\,dy \), divide both sides appropriately: \[ \frac{dy}{dx} = \frac{x^2 + y^2}{xy + x^2} \]
  2. Step 2: Show the equation is homogeneous: Divide numerator and denominator by \( x^2 \): \[ \frac{dy}{dx} = \frac{1 + \left(\frac{y}{x}\right)^2}{\frac{y}{x} + 1} \] This is a function of \( \frac{y}{x} \) alone, so the equation is homogeneous.
  3. Step 3: Substitute y = vx: Let \( y = vx \), so \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = \frac{1 + v^2}{v + 1} \] Isolate the derivative term: \[ x\frac{dv}{dx} = \frac{1 + v^2}{v + 1} - v = \frac{1 + v^2 - v(v+1)}{v+1} = \frac{1 + v^2 - v^2 - v}{v+1} = \frac{1 - v}{v + 1} \]
  4. Step 4: Separate variables: Rearranging: \[ \frac{v+1}{1-v}\,dv = \frac{dx}{x} \] Rewrite the left side by splitting the fraction. Note that: \[ \frac{v+1}{1-v} = \frac{-(1-v) + 2}{1-v} = -1 + \frac{2}{1-v} \] So the equation becomes: \[ \left(-1 + \frac{2}{1-v}\right)dv = \frac{dx}{x} \]
  5. Step 5: Integrate both sides: Integrating both sides: \[ \int \left(-1 + \frac{2}{1-v}\right)dv = \int \frac{dx}{x} \] Left side: \( -v - 2\log|1-v| + C_1 \) Right side: \( \log|x| + C_2 \) Combining constants: \[ -v - 2\log|1 - v| = \log|x| + C \]
  6. Step 6: Back-substitute v = y/x: Replace \( v = \frac{y}{x} \) and \( 1 - v = 1 - \frac{y}{x} = \frac{x - y}{x} \): \[ -\frac{y}{x} - 2\log\left|\frac{x-y}{x}\right| = \log|x| + C \] Expand the logarithm: \[ -\frac{y}{x} - 2\log|x - y| + 2\log|x| = \log|x| + C \] Simplify: \[ -\frac{y}{x} - 2\log|x - y| + \log|x| = C \] This can be written as: \[ \log|x| - 2\log|x - y| = \frac{y}{x} + C \]
  7. Step 7: Write the general solution: Using logarithm rules: \[ \log\left|\frac{x}{(x-y)^2}\right| = \frac{y}{x} + C \] This is the required general solution.

Answer: The general solution is \[ \log\left|\frac{x}{(x-y)^2}\right| = \frac{y}{x} + C \] where \( C \) is an arbitrary constant. Equivalently, \[ \log|x| - 2\log|x - y| = \frac{y}{x} + 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