Solve the differential equation \(y\ e^y\ dx=(y^3+2x\ e^y)dy,\) when \(y(0) = 1.\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine you have a machine where pressing a button changes both a dial and a counter together. Sometimes the dial is easier to watch than the counter. Here, instead of tracking y using x, we flip it and track x using y. This makes the messy equation behave nicely, like untangling a knot by pulling the right string. We then use a special multiplier to make both sides simplify neatly. Finally, a known starting point helps us pin down the exact answer.
Answer: The particular solution is \[ x = y^{2}\left( \frac{1}{e} - e^{-y} \right), \] which can also be written as \( \dfrac{x}{y^{2}} + e^{-y} = \dfrac{1}{e} \).
At first glance this equation does not look separable or homogeneous. The trick is to treat x as the dependent variable and y as the independent variable. When we do that, the equation becomes a linear first-order differential equation of the form \( \frac{dx}{dy} + P(y)\,x = Q(y) \). A linear differential equation is solved by multiplying throughout by an integrating factor \( I.F. = e^{\int P\,dy} \), which turns the left side into the derivative of a product. After integrating, we use the given condition \( y(0)=1 \) to find the constant, giving the particular solution.
For \( \frac{dx}{dy} + P(y)\,x = Q(y) \): Integrating Factor \( I.F. = e^{\int P\,dy} \), and the solution is \( x \cdot (I.F.) = \int Q \cdot (I.F.)\, dy + C \).
The particular solution is \[ x = y^{2}\left( \frac{1}{e} - e^{-y} \right), \] which can also be written as \( \dfrac{x}{y^{2}} + e^{-y} = \dfrac{1}{e} \).
A very common error is to try to make the equation linear in y (i.e. write \( \frac{dy}{dx} + Py = Q \)), which fails because the equation is not linear in y. You must notice that x appears to the first power only, so it should be treated as the dependent variable, giving a linear equation in \( \frac{dx}{dy} \).
The particular solution is \[ x = y^{2}\left( \frac{1}{e} - e^{-y} \right), \] which can also be written as \( \dfrac{x}{y^{2}} + e^{-y} = \dfrac{1}{e} \).
One common mistake: Students try to solve the equation by keeping y as the dependent variable and x as the independent variable, leading to a non-linear equation that is much harder to handle. Always check whether treating x as the dependent variable simplifies the equation into a recognisable linear form.
Answer: The particular solution is \[ x = y^{2}\left( \frac{1}{e} - e^{-y} \right), \] which can also be written as \( \dfrac{x}{y^{2}} + e^{-y} = \dfrac{1}{e} \).
Question: Solve the differential equation \( x\,e^{x}\,dy = (x^{3} + 2y\,e^{x})\,dx \), given that \( y(1) = 0 \).
Solution: Step 1 — Rewrite in standard linear form (treating y as a function of x). Divide both sides by \( x\,e^{x} \): \[ \frac{dy}{dx} = \frac{x^{3} + 2y\,e^{x}}{x\,e^{x}} \] Expand: \[ \frac{dy}{dx} = \frac{x^{3}}{x\,e^{x}} + \frac{2y\,e^{x}}{x\,e^{x}} \] Simplify: \[ \frac{dy}{dx} - \frac{2}{x}\,y = \frac{x^{2}}{e^{x}} \] This is the standard form \( \frac{dy}{dx} + P(x)\,y = Q(x) \) with \( P(x) = -\dfrac{2}{x} \) and \( Q(x) = \dfrac{x^{2}}{e^{x}} \). Step 2 — Find the integrating factor. \[ \mu = e^{\int P(x)\,dx} = e^{\int -\frac{2}{x}\,dx} = e^{-2\ln|x|} = x^{-2} \] Step 3 — Multiply through by \( \mu = x^{-2} \). \[ x^{-2}\,\frac{dy}{dx} - \frac{2}{x^{3}}\,y = \frac{1}{e^{x}} \] The left side is the derivative of \( y\,x^{-2} \): \[ \frac{d}{dx}\!\left(y\,x^{-2}\right) = e^{-x} \] Step 4 — Integrate both sides with respect to x. \[ y\,x^{-2} = \int e^{-x}\,dx = -e^{-x} + C \] Hence: \[ \frac{y}{x^{2}} = -e^{-x} + C \] or equivalently: \[ y = x^{2}\left(C - e^{-x}\right) \] Step 5 — Apply the initial condition \( y(1) = 0 \). \[ 0 = 1^{2}\left(C - e^{-1}\right) \] So \( C = e^{-1} = \dfrac{1}{e} \). Step 6 — Write the particular solution. \[ y = x^{2}\left(\frac{1}{e} - e^{-x}\right) \] or equivalently: \[ y = x^{2}\,e^{-x}\left(e^{x-1} - 1\right) \]
Answer: \( y = x^{2}\!\left(\dfrac{1}{e} - e^{-x}\right) \)
Question: Solve the differential equation \( y\,e^{2y}\,dx = \left(2x\,e^{2y} - y^{3}\right)dy \), given that \( x = 0 \) when \( y = 1 \).
Solution: Step 1 — Rewrite in standard linear form (treating x as a function of y). Divide both sides by \( y\,e^{2y} \): \[ \frac{dx}{dy} = \frac{2x\,e^{2y} - y^{3}}{y\,e^{2y}} \] Expand: \[ \frac{dx}{dy} = \frac{2x}{y} - \frac{y^{3}}{y\,e^{2y}} \] Simplify and rearrange: \[ \frac{dx}{dy} - \frac{2}{y}\,x = -\frac{y^{2}}{e^{2y}} \] This is the standard form \( \frac{dx}{dy} + P(y)\,x = Q(y) \) with \( P(y) = -\dfrac{2}{y} \) and \( Q(y) = -\dfrac{y^{2}}{e^{2y}} \). Step 2 — Find the integrating factor. \[ \mu = e^{\int P(y)\,dy} = e^{\int -\frac{2}{y}\,dy} = e^{-2\ln|y|} = y^{-2} \] Step 3 — Multiply through by \( \mu = y^{-2} \). \[ y^{-2}\,\frac{dx}{dy} - \frac{2}{y^{3}}\,x = -\frac{1}{e^{2y}} \] The left side is the derivative of \( x\,y^{-2} \): \[ \frac{d}{dy}\!\left(x\,y^{-2}\right) = -e^{-2y} \] Step 4 — Integrate both sides with respect to y. \[ x\,y^{-2} = \int -e^{-2y}\,dy = \frac{e^{-2y}}{2} + C \] Hence: \[ \frac{x}{y^{2}} = \frac{e^{-2y}}{2} + C \] or equivalently: \[ x = y^{2}\left(\frac{e^{-2y}}{2} + C\right) \] Step 5 — Apply the initial condition \( x = 0 \) when \( y = 1 \). \[ 0 = 1^{2}\left(\frac{e^{-2}}{2} + C\right) \] So \( C = -\dfrac{e^{-2}}{2} \). Step 6 — Write the particular solution. \[ x = y^{2}\left(\frac{e^{-2y}}{2} - \frac{e^{-2}}{2}\right) \] Factor out \( \dfrac{1}{2} \): \[ x = \frac{y^{2}}{2}\left(e^{-2y} - e^{-2}\right) \] or equivalently: \[ x = \frac{y^{2}\,e^{-2}}{2}\left(e^{2-2y} - 1\right) \]
Answer: \( x = \dfrac{y^{2}}{2}\left(e^{-2y} - e^{-2}\right) \)
Question: Solve the differential equation \(y\,e^{y}\,dx = \left(y^{3} + 3x\,e^{y}\right)dy\), given that \(x = 0\) when \(y = 1\).
Answer: The particular solution is \[x = \frac{2y^{3}}{e} - \left(y^{2} - y + 2\right)e^{-y}\]