SOLVER7 Study. Nothing Else.
2026 Board Paper Q34(a)

Solve the differential equation \(y\ e^y\ dx=(y^3+2x\ e^y)dy,\) when \(y(0) = 1.\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

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} \).

📖 Solving a First-Order Linear Differential Equation in x

Detailed Explanation

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.

Formula Used

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 \).

Solution

  1. Step 1: Write the given equation and rearrange it. We are given \[ y\,e^{y}\,dx = (y^{3} + 2x\,e^{y})\,dy. \] Divide both sides by \( dy \) to get \[ y\,e^{y}\,\frac{dx}{dy} = y^{3} + 2x\,e^{y}. \]
  2. Step 2: Since x appears linearly, treat x as the dependent variable. Divide throughout by \( y\,e^{y} \): \[ \frac{dx}{dy} = \frac{y^{3}}{y\,e^{y}} + \frac{2x\,e^{y}}{y\,e^{y}}. \] This simplifies to \[ \frac{dx}{dy} = \frac{y^{2}}{e^{y}} + \frac{2x}{y}. \]
  3. Step 3: Bring the x-term to the left to write it in standard linear form: \[ \frac{dx}{dy} - \frac{2}{y}\,x = y^{2}e^{-y}. \] Comparing with \( \frac{dx}{dy} + P\,x = Q \), we get \( P = -\frac{2}{y} \) and \( Q = y^{2}e^{-y} \).
  4. Step 4: Find the integrating factor. \[ I.F. = e^{\int P\,dy} = e^{\int -\frac{2}{y}\,dy} = e^{-2\ln y} = e^{\ln y^{-2}} = y^{-2} = \frac{1}{y^{2}}. \]
  5. Step 5: Apply the solution formula \( x \cdot (I.F.) = \int Q \cdot (I.F.)\, dy + C \): \[ x \cdot \frac{1}{y^{2}} = \int y^{2}e^{-y} \cdot \frac{1}{y^{2}}\, dy + C. \] The right side simplifies neatly: \[ \frac{x}{y^{2}} = \int e^{-y}\, dy + C. \]
  6. Step 6: Integrate the right side: \[ \int e^{-y}\, dy = -e^{-y}. \] So the general solution is \[ \frac{x}{y^{2}} = -e^{-y} + C. \]
  7. Step 7: Apply the initial condition \( y(0)=1 \), meaning \( x=0 \) when \( y=1 \): \[ \frac{0}{1^{2}} = -e^{-1} + C. \] This gives \( 0 = -\frac{1}{e} + C \), so \( C = \frac{1}{e} \).
  8. Step 8: Substitute \( C = \frac{1}{e} \) back into the general solution: \[ \frac{x}{y^{2}} = -e^{-y} + \frac{1}{e}. \] Multiply through by \( y^{2} \): \[ x = y^{2}\left( \frac{1}{e} - e^{-y} \right). \]

Final 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} \).

Common Mistake

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} \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite the given equation as \( \frac{dx}{dy} \): The given equation is \[ y\,e^{y}\,dx = \left( y^{3} + 2x\,e^{y} \right) dy. \] Dividing both sides by \( dy \) gives \[ y\,e^{y}\,\frac{dx}{dy} = y^{3} + 2x\,e^{y}. \] Reason: Because x appears linearly and y appears in a more complex way, it is natural to treat x as the dependent variable and y as the independent variable, so we form \( \frac{dx}{dy} \).
  2. Step 2: Divide through to isolate \( \frac{dx}{dy} \): Dividing every term by \( y\,e^{y} \): \[ \frac{dx}{dy} = \frac{y^{3}}{y\,e^{y}} + \frac{2x\,e^{y}}{y\,e^{y}}, \] which simplifies to \[ \frac{dx}{dy} = y^{2}e^{-y} + \frac{2x}{y}. \] Reason: Dividing by the coefficient of \( \frac{dx}{dy} \) isolates the derivative so we can identify the standard linear form.
  3. Step 3: Arrange into standard linear form: Moving the x-term to the left side: \[ \frac{dx}{dy} - \frac{2}{y}\,x = y^{2}e^{-y}. \] Comparing with \( \frac{dx}{dy} + P(y)\,x = Q(y) \), we identify \( P(y) = -\dfrac{2}{y} \) and \( Q(y) = y^{2}e^{-y} \). Reason: The standard linear form lets us directly apply the integrating-factor formula.
  4. Step 4: Compute the integrating factor: The integrating factor is \( I.F. = e^{\int P(y)\,dy} = e^{\int -\frac{2}{y}\,dy} \). Now, \( \int -\dfrac{2}{y}\,dy = -2\ln|y| = \ln\left(y^{-2}\right) \), so \[ I.F. = e^{\ln(y^{-2})} = y^{-2} = \frac{1}{y^{2}}. \] Reason: Multiplying by the integrating factor converts the left side into an exact derivative of a product, making the equation directly integrable.
  5. Step 5: Multiply through by the integrating factor and integrate: Multiplying both sides of \( \frac{dx}{dy} - \frac{2}{y}\,x = y^{2}e^{-y} \) by \( \frac{1}{y^{2}} \) gives \[ \frac{d}{dy}\left( \frac{x}{y^{2}} \right) = e^{-y}. \] Integrating both sides with respect to y: \[ \frac{x}{y^{2}} = \int e^{-y}\,dy = -e^{-y} + C. \] So the general solution is \[ x = y^{2}\left( C - e^{-y} \right). \] Reason: Once the left side becomes a perfect derivative, a single integration yields the general solution directly.
  6. Step 6: Apply the initial condition to find C: We are given that \( y = 1 \) when \( x = 0 \) (i.e. \( y(0) = 1 \), meaning the point \( (x, y) = (0, 1) \)). Substituting \( x = 0 \) and \( y = 1 \): \[ 0 = 1^{2}\left( C - e^{-1} \right). \] This gives \( C = e^{-1} = \dfrac{1}{e} \). Reason: The initial condition pins down the arbitrary constant C, converting the general solution into the unique particular solution.
  7. Step 7: Write the particular solution: Substituting \( C = \dfrac{1}{e} \) back into the general solution: \[ x = y^{2}\left( \frac{1}{e} - e^{-y} \right). \] Rearranging by dividing both sides by \( y^{2} \): \[ \frac{x}{y^{2}} + e^{-y} = \frac{1}{e}. \] Reason: Substituting C gives the unique curve passing through the given point, which is the required particular solution.

Final 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} \).

Common Mistake

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.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite as Linear ODE in x: Dividing \( y\,e^{y}\,dx = (y^{3} + 2x\,e^{y})\,dy \) by \( y\,e^{y}\,dy \) gives \[ \frac{dx}{dy} - \frac{2}{y}\,x = y^{2}e^{-y} \] so \( P = -\dfrac{2}{y} \), \( Q = y^{2}e^{-y} \).
  2. Step 2: Compute Integrating Factor and General Solution: \( I.F. = e^{\int -\frac{2}{y}\,dy} = e^{-2\ln y} = y^{-2} \). Multiplying through: \[ \frac{d}{dy}\!\left(\frac{x}{y^{2}}\right) = e^{-y} \] Integrating: \[ \frac{x}{y^{2}} = \int e^{-y}\,dy + C = -e^{-y} + C \]
  3. Step 3: Apply Initial Condition \( x = 0 \) when \( y = 1 \): Substituting \( x = 0,\, y = 1 \): \( 0 = -e^{-1} + C \) so \( C = \dfrac{1}{e} \). Hence \[ \frac{x}{y^{2}} = \frac{1}{e} - e^{-y} \]

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} \).

➕ More Examples

More Examples

Example 1

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) \)

Example 2

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) \)

🎯 Try a Similar Question

Try a Similar Question

Question: Solve the differential equation \(y\,e^{y}\,dx = \left(y^{3} + 3x\,e^{y}\right)dy\), given that \(x = 0\) when \(y = 1\).

Solution

  1. Step 1: Rewrite in Standard Linear Form: Divide both sides by \(y\,e^{y}\,dy\) to express the equation as \(\frac{dx}{dy}\) on the left. Starting from \(y\,e^{y}\,dx = \left(y^{3} + 3x\,e^{y}\right)dy\), divide by \(y\,e^{y}\): \[\frac{dx}{dy} = \frac{y^{3} + 3x\,e^{y}}{y\,e^{y}}\] Rearranging: \[\frac{dx}{dy} = \frac{y^{2}}{e^{y}} + \frac{3x}{y}\] Bring the \(x\)-term to the left: \[\frac{dx}{dy} - \frac{3}{y}\,x = \frac{y^{2}}{e^{y}}\] This is the standard linear form with \(P(y) = -\dfrac{3}{y}\) and \(Q(y) = \dfrac{y^{2}}{e^{y}}\).
  2. Step 2: Find the Integrating Factor: The integrating factor is \(\mu = e^{\int P(y)\,dy}\). Compute the integral: \[\int -\frac{3}{y}\,dy = -3\ln|y| = \ln|y|^{-3}\] Therefore: \[\mu = e^{\ln y^{-3}} = y^{-3} = \frac{1}{y^{3}}\]
  3. Step 3: Multiply Through by the Integrating Factor: Multiply the standard-form equation by \(\mu = \dfrac{1}{y^{3}}\): \[\frac{1}{y^{3}}\frac{dx}{dy} - \frac{3}{y^{4}}\,x = \frac{y^{2}}{y^{3}\,e^{y}}\] The left side is exactly the derivative of \(\dfrac{x}{y^{3}}\): \[\frac{d}{dy}\left(\frac{x}{y^{3}}\right) = \frac{1}{y\,e^{y}}\]
  4. Step 4: Integrate Both Sides: Integrate both sides with respect to \(y\): \[\frac{x}{y^{3}} = \int \frac{1}{y\,e^{y}}\,dy = \int y^{-1}e^{-y}\,dy\] Apply integration by parts with \(u = y^{-1}\) and \(dv = e^{-y}\,dy\), so \(du = -y^{-2}\,dy\) and \(v = -e^{-y}\): \[\int y^{-1}e^{-y}\,dy = -\frac{e^{-y}}{y} - \int \frac{e^{-y}}{y^{2}}\,dy\] Apply integration by parts again to \(\int y^{-2}e^{-y}\,dy\) with \(u = y^{-2}\), \(dv = e^{-y}\,dy\), so \(du = -2y^{-3}\,dy\) and \(v = -e^{-y}\): \[\int y^{-2}e^{-y}\,dy = -\frac{e^{-y}}{y^{2}} - \int \frac{2e^{-y}}{y^{3}}\,dy\] Substituting back: \[\int y^{-1}e^{-y}\,dy = -\frac{e^{-y}}{y} - \left(-\frac{e^{-y}}{y^{2}} - \int \frac{2e^{-y}}{y^{3}}\,dy\right)\] Therefore: \[\frac{x}{y^{3}} = -\frac{e^{-y}}{y} + \frac{e^{-y}}{y^{2}} + 2\int \frac{e^{-y}}{y^{3}}\,dy\] Applying integration by parts once more to \(\int y^{-3}e^{-y}\,dy\) with \(u = y^{-3}\), \(v = -e^{-y}\): \[\int y^{-3}e^{-y}\,dy = -\frac{e^{-y}}{y^{3}} - \int \frac{3e^{-y}}{y^{4}}\,dy\] Substituting: \[\frac{x}{y^{3}} = -\frac{e^{-y}}{y} + \frac{e^{-y}}{y^{2}} + 2\left(-\frac{e^{-y}}{y^{3}} - \int \frac{3e^{-y}}{y^{4}}\,dy\right)\] Collecting terms: \[\frac{x}{y^{3}} = -\frac{e^{-y}}{y} + \frac{e^{-y}}{y^{2}} - \frac{2e^{-y}}{y^{3}} + C\] Multiplying both sides by \(y^{3}\): \[x = -y^{2}e^{-y} + y\,e^{-y} - 2e^{-y} + C\,y^{3}\]
  5. Step 5: Apply the Initial Condition: Use \(x = 0\) when \(y = 1\): \[0 = -e^{-1} + e^{-1} - 2e^{-1} + C\] \[0 = -2e^{-1} + C\] Therefore \(C = \dfrac{2}{e}\).
  6. Step 6: Write the Particular Solution: Substituting \(C = \dfrac{2}{e}\) back: \[x = e^{-y}\left(-y^{2} + y - 2\right) + \frac{2y^{3}}{e}\] This can be written as: \[x = \frac{2y^{3}}{e} - \left(y^{2} - y + 2\right)e^{-y}\]

Answer: The particular solution is \[x = \frac{2y^{3}}{e} - \left(y^{2} - y + 2\right)e^{-y}\]

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