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
CBSE Class 12 Maths · Differential Equations
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.
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 \).
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 \).
\[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.
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| \).
\[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.
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.
Answer: \[ \tan^{-1}\left(\frac{y}{x}\right) = \ln|x| + C \] where \( C \) is an arbitrary constant.
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 \]
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.
Question: Find the general solution of the differential equation: \[ x^2 \frac{dy}{dx} = y^2 + 2xy - x^2 \]
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.