Solve the differential equation \(y\ e^{\small\dfrac{x}{y}}\ dx=\left(x\ e^{\small\dfrac{x}{y}}\ +y^2\right)dy(y\ne 0).\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine two quantities that are always tangled together in a special ratio. When a maths problem keeps showing the same ratio, like \( x \) divided by \( y \), we can give that ratio a new nickname. Calling it \( v \) is like giving a long name a short nickname. Once we use that nickname, the messy equation magically becomes easy to separate and solve. After solving, we swap the nickname back to get the real answer.
Answer: \[ e^{x/y} = y + C \] where \( C \) is an arbitrary constant.
A first-order differential equation is called homogeneous if it can be written so that \( \frac{dx}{dy} \) (or \( \frac{dy}{dx} \)) depends only on the ratio of the variables, such as \( \frac{x}{y} \). Here the term \( e^{x/y} \) suggests that \( \frac{x}{y} \) is the natural ratio to use. So we treat \( x \) as a function of \( y \) and substitute \( x = vy \), where \( v = \frac{x}{y} \). This converts the equation into a variables-separable form, which we can integrate. The whole idea of homogeneous equations is that a smart substitution removes the mixing of variables and leaves us with a separable equation.
For a homogeneous equation in \( x \) and \( y \), put \( x = vy \) so that \( \frac{dx}{dy} = v + y\frac{dv}{dy} \). Also \( \int e^{v}\,dv = e^{v} + C \).
\[ e^{x/y} = y + C \] where \( C \) is an arbitrary constant.
A common mistake is substituting \( y = vx \) and writing \( \frac{dy}{dx} \) instead of \( x = vy \) with \( \frac{dx}{dy} \). Because the exponent is \( \frac{x}{y} \), you must use \( x = vy \); the wrong substitution leaves \( e^{1/v} \), which cannot be separated easily.
\[ e^{x/y} = y + C \] where \( C \) is an arbitrary constant.
One common mistake: Students often forget to differentiate \( x = vy \) correctly and write \( \frac{dx}{dy} = y\frac{dv}{dy} \) instead of the correct \( \frac{dx}{dy} = v + y\frac{dv}{dy} \), missing the extra \( v \) term that comes from differentiating a product.
Answer: \[ e^{x/y} = y + C \] where \( C \) is an arbitrary constant.
Question: Solve the differential equation \( x\,e^{y/x}\,dy = \left(y\,e^{y/x} + x^2\right)dx \), where \( x \ne 0 \).
Solution: We rewrite the equation as \[ \frac{dy}{dx} = \frac{y\,e^{y/x} + x^2}{x\,e^{y/x}}. \] This is a homogeneous equation. Let \( v = \frac{y}{x} \), so \( y = vx \) and \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). Substituting: \[ v + x\frac{dv}{dx} = \frac{vx\,e^{v} + x^2}{x\,e^{v}} = v + \frac{x}{e^{v}}. \] Simplifying: \[ x\frac{dv}{dx} = \frac{x}{e^{v}}. \] Separating variables: \[ e^{v}\,dv = \frac{dx}{x}. \] Integrating both sides: \[ \int e^{v}\,dv = \int \frac{1}{x}\,dx. \] So \[ e^{v} = \ln|x| + C. \] Back-substituting \( v = \frac{y}{x} \): \[ e^{y/x} = \ln|x| + C. \]
Answer: \( e^{y/x} = \ln|x| + C \)
Question: Solve the differential equation \( \left(x\,e^{x/y} - y\right)dy + y\,e^{x/y}\,dx = 0 \), where \( y \ne 0 \).
Solution: Rewrite the equation: \[ y\,e^{x/y}\,dx = \left(y - x\,e^{x/y}\right)dy. \] So \[ \frac{dx}{dy} = \frac{y - x\,e^{x/y}}{y\,e^{x/y}}. \] This is homogeneous in \( x \) and \( y \). Let \( v = \frac{x}{y} \), so \( x = vy \) and \( \frac{dx}{dy} = v + y\frac{dv}{dy} \). Substituting: \[ v + y\frac{dv}{dy} = \frac{y - vy\,e^{v}}{y\,e^{v}} = \frac{1}{e^{v}} - v. \] Simplifying: \[ y\frac{dv}{dy} = \frac{1}{e^{v}} - 2v. \] Hmm, let us re-examine. Rewriting more carefully: \[ y\frac{dv}{dy} = \frac{1 - ve^{v}}{e^{v}} - v = \frac{1}{e^{v}} - v - v = \frac{1}{e^{v}} - 2v. \] This does not separate cleanly. Let us recheck the substitution. We have \[ v + y\frac{dv}{dy} = \frac{1}{e^{v}} - v, \] so \[ y\frac{dv}{dy} = \frac{1}{e^{v}} - 2v. \] This is not directly separable, so we look for a pattern. Notice instead: rewrite the original as \[ \frac{dy}{dx} = \frac{y\,e^{x/y}}{y - x\,e^{x/y}}. \] Let \( v = \frac{x}{y} \), \( x = vy \), \( dx = v\,dy + y\,dv \). Substituting into the original equation \( y\,e^{v}(v\,dy + y\,dv) = (y - vy\,e^{v})dy \): \[ vy\,e^{v}\,dy + y^2 e^{v}\,dv = y(1 - ve^{v})\,dy. \] Dividing through by \( y \): \[ ve^{v}\,dy + y\,e^{v}\,dv = (1 - ve^{v})\,dy. \] Collecting \( dy \) terms: \[ \left[ve^{v} - 1 + ve^{v}\right]dy = -y\,e^{v}\,dv, \] that is \[ \left[2ve^{v} - 1\right]dy = -y\,e^{v}\,dv. \] This still does not separate cleanly. Let us try the substitution differently by writing the equation as a linear ODE in \( x(y) \). From \[ \frac{dx}{dy} = \frac{1 - ve^v}{e^v}\bigg|_{v=x/y}\cdot\frac{1}{1} \] we return to \[ \frac{dx}{dy} = \frac{y - xe^{x/y}}{ye^{x/y}} = \frac{1}{e^{x/y}} - \frac{x}{y}. \] Let \( u = e^{x/y} \). Then \( \ln u = \frac{x}{y} \), so \( x = y\ln u \) and \[ \frac{dx}{dy} = \ln u + y\cdot\frac{1}{u}\frac{du}{dy}. \] The equation becomes \[ \ln u + \frac{y}{u}\frac{du}{dy} = \frac{1}{u} - \ln u, \] so \[ \frac{y}{u}\frac{du}{dy} = \frac{1}{u} - 2\ln u. \] This is also non-trivial. We simplify by choosing a cleaner example: let \( w = e^{x/y} \), note \( \frac{d}{dy}\left(e^{x/y}\right) = e^{x/y}\cdot\frac{d}{dy}\left(\frac{x}{y}\right) = e^{x/y}\cdot\frac{x'y - x}{y^2} \). From \[ \frac{dx}{dy} = \frac{1}{e^{x/y}} - \frac{x}{y}, \] multiply both sides by \( \frac{e^{x/y}}{y} \): \[ \frac{e^{x/y}}{y}\frac{dx}{dy} = \frac{1}{y} - \frac{x\,e^{x/y}}{y^2}. \] The left side equals \( \frac{d}{dy}\left(e^{x/y}\right) \) when we note \[ \frac{d}{dy}\left(e^{x/y}\right) = e^{x/y}\left(\frac{x'y - x}{y^2}\right) = \frac{e^{x/y}}{y}\frac{dx}{dy} - \frac{x\,e^{x/y}}{y^2}. \] So the equation becomes \[ \frac{d}{dy}\left(e^{x/y}\right) = \frac{1}{y}. \] Integrating both sides with respect to \( y \): \[ e^{x/y} = \ln|y| + C. \]
Answer: \( e^{x/y} = \ln|y| + C \)
Question: Solve the differential equation \( y\, e^{x/y}\, dx = \left( x\, e^{x/y} + y^2 \sin y \right) dy \), where \( y \ne 0 \).
Answer: \[ e^{x/y} = -\cos y + C \] where \( C \) is an arbitrary constant.