Show that the differential equation \((x-y)\dfrac{dy}{dx}=x+2y\) is homogeneous and solve it.
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine a recipe that always gives the same taste no matter how much you scale it up or down. This differential equation is like that recipe — if you double both ingredients \( x \) and \( y \), the ratio stays the same. We use a clever trick: replace \( y \) with a multiple of \( x \). This turns a tricky mixed problem into a simpler one we can actually solve. After solving, we swap back to get the answer in terms of the original \( x \) and \( y \).
Answer: The general solution is \[ \sqrt{3}\,\tan^{-1}\!\left(\frac{x + 2y}{\sqrt{3}\,x}\right) - \tfrac{1}{2}\ln\left|x^2 + xy + y^2\right| = C. \]
A first-order differential equation of the form \( \frac{dy}{dx} = F(x, y) \) is called homogeneous if \( F(x, y) \) can be written purely as a function of the ratio \( \frac{y}{x} \). Equivalently, if we replace \( x \) by \( \lambda x \) and \( y \) by \( \lambda y \), the function \( F \) stays unchanged (it is homogeneous of degree zero). To solve such an equation we substitute \( y = vx \), which turns the equation into a variables-separable equation in \( v \) and \( x \). After separating and integrating, we replace \( v \) by \( \frac{y}{x} \) to get the general solution.
If \( \frac{dy}{dx} = F\left(\frac{y}{x}\right) \), substitute \( y = vx \) so that \( \frac{dy}{dx} = v + x\frac{dv}{dx} \).
The general solution is \[ \sqrt{3}\,\tan^{-1}\!\left(\frac{x + 2y}{\sqrt{3}\,x}\right) - \tfrac{1}{2}\ln\left|x^2 + xy + y^2\right| = C. \]
A common mistake is differentiating the substitution incorrectly, writing \( \frac{dy}{dx} = v \) instead of the correct product-rule result \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Forgetting the \( x\frac{dv}{dx} \) term makes the equation impossible to separate correctly.
The general solution is \[ \sqrt{3}\,\tan^{-1}\!\left(\frac{x + 2y}{\sqrt{3}\,x}\right) - \tfrac{1}{2}\ln\left|x^2 + xy + y^2\right| = C. \]
One common mistake: when splitting the numerator \( 1 - v \) as \( -\frac{1}{2}(2v+1) + \frac{3}{2} \), students often forget the \( +\frac{3}{2} \) residual term and therefore miss the \( \tan^{-1} \) part of the integral entirely.
Answer: The general solution is \[ \sqrt{3}\,\tan^{-1}\!\left(\frac{x + 2y}{\sqrt{3}\,x}\right) - \tfrac{1}{2}\ln\left|x^2 + xy + y^2\right| = C. \]
Question: Show that the differential equation \((x + 2y)\frac{dy}{dx} = 2x - y\) is homogeneous and solve it.
Solution: Step 1: Rewrite the equation. The given equation is \((x + 2y)\frac{dy}{dx} = 2x - y\), so \[\frac{dy}{dx} = \frac{2x - y}{x + 2y}.\] Step 2: Check homogeneity. Let \(f(x, y) = \frac{2x - y}{x + 2y}\). Then \[f(\lambda x, \lambda y) = \frac{2(\lambda x) - (\lambda y)}{(\lambda x) + 2(\lambda y)} = \frac{\lambda(2x - y)}{\lambda(x + 2y)} = \frac{2x - y}{x + 2y} = f(x, y).\] Since \(f(\lambda x, \lambda y) = \lambda^0 f(x, y)\), the equation is homogeneous of degree zero. Step 3: Substitute \(y = vx\). Let \(y = vx\), so \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Substituting: \[v + x\frac{dv}{dx} = \frac{2x - vx}{x + 2vx} = \frac{x(2 - v)}{x(1 + 2v)} = \frac{2 - v}{1 + 2v}.\] Step 4: Separate variables. \[x\frac{dv}{dx} = \frac{2 - v}{1 + 2v} - v = \frac{2 - v - v(1 + 2v)}{1 + 2v} = \frac{2 - v - v - 2v^2}{1 + 2v} = \frac{2 - 2v - 2v^2}{1 + 2v}.\] So \[x\frac{dv}{dx} = \frac{2(1 - v - v^2)}{1 + 2v}.\] Separating: \[\frac{1 + 2v}{1 - v - v^2}\, dv = \frac{2\, dx}{x}.\] Step 5: Integrate the left side. Note that \(\frac{d}{dv}(1 - v - v^2) = -1 - 2v\), so \(1 + 2v = -(- 1 - 2v)\). Therefore: \[\frac{1 + 2v}{1 - v - v^2} = \frac{-(\,-1 - 2v)}{1 - v - v^2} = -\frac{d}{dv}\ln|1 - v - v^2| \cdot \frac{1}{1}.\] More directly, \(\int \frac{1 + 2v}{1 - v - v^2}\, dv\). Since \(\frac{d}{dv}(1 - v - v^2) = -1 - 2v\), we have: \[\int \frac{1 + 2v}{1 - v - v^2}\, dv = -\int \frac{-1 - 2v}{1 - v - v^2}\, dv = -\ln|1 - v - v^2| + C_1.\] Integrating the right side: \[\int \frac{2}{x}\, dx = 2\ln|x| + C_2.\] Step 6: Combine results. \[-\ln|1 - v - v^2| = 2\ln|x| + C_3.\] Multiplying through by \(-1\): \[\ln|1 - v - v^2| = -2\ln|x| + \ln|A|,\] where \(\ln|A|\) is the constant of integration. Exponentiating: \[|1 - v - v^2| = \frac{|A|}{x^2}.\] Step 7: Back-substitute \(v = \frac{y}{x}\). \[1 - \frac{y}{x} - \frac{y^2}{x^2} = \frac{A}{x^2}.\] Multiplying both sides by \(x^2\): \[x^2 - xy - y^2 = A.\] This is the general solution.
Answer: \(x^2 - xy - y^2 = A\), where \(A\) is an arbitrary constant.
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 the equation. The given equation is \(x\frac{dy}{dx} = y + x\tan\left(\frac{y}{x}\right)\), so \[\frac{dy}{dx} = \frac{y}{x} + \tan\left(\frac{y}{x}\right).\] Step 2: Check homogeneity. Let \(f(x, y) = \frac{y}{x} + \tan\left(\frac{y}{x}\right)\). Then \[f(\lambda x, \lambda y) = \frac{\lambda y}{\lambda x} + \tan\left(\frac{\lambda y}{\lambda x}\right) = \frac{y}{x} + \tan\left(\frac{y}{x}\right) = f(x, y).\] Since \(f(\lambda x, \lambda y) = \lambda^0 f(x, y)\), the equation is homogeneous of degree zero. Step 3: Substitute \(y = vx\). Let \(y = vx\), so \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Substituting: \[v + x\frac{dv}{dx} = v + \tan(v).\] Step 4: Simplify. \[x\frac{dv}{dx} = \tan(v).\] Step 5: Separate variables. \[\frac{dv}{\tan(v)} = \frac{dx}{x},\] which can be written as \[\cot(v)\, dv = \frac{dx}{x}.\] Step 6: Integrate both sides. \[\int \cot(v)\, dv = \int \frac{dx}{x}.\] The left side: \(\int \cot(v)\, dv = \ln|\sin(v)| + C_1\). The right side: \(\int \frac{dx}{x} = \ln|x| + C_2\). Combining: \[\ln|\sin(v)| = \ln|x| + \ln|C|,\] where \(\ln|C|\) is the constant of integration. Therefore: \[\ln|\sin(v)| = \ln|Cx|,\] which gives \[|\sin(v)| = |Cx|,\] or simply \[\sin(v) = Cx.\] Step 7: Back-substitute \(v = \frac{y}{x}\). \[\sin\left(\frac{y}{x}\right) = Cx.\] This is the general solution.
Answer: \(\sin\left(\frac{y}{x}\right) = Cx\), where \(C\) is an arbitrary constant.
Question: Show that the differential equation \( (2x - y)\dfrac{dy}{dx} = 2y + x \) is homogeneous, and hence solve it.
Answer: The general solution is \[ 2\tan^{-1}\!\left(\frac{y}{x}\right) - \frac{1}{2}\ln\!\left(x^2 + y^2\right) = C. \]