SOLVER7 Study. Nothing Else.
Exercise 9.5 Q10

For each of the differential equations given in Exercises 1 to 12, find the general solution: \((x+y)\dfrac{dy}{dx}=1\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you are lost trying to find a path, but the usual road is blocked. So you simply flip the map and look from the other side. This equation is like that blocked road — it is too tangled when we think of y depending on x. Instead, we swap roles and let x depend on y. Suddenly the path clears up and the answer falls into place. The final answer tells us exactly how x and y are connected through a neat, clean formula.

Answer: \[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]

📖 General Solution of (x+y)dy/dx = 1

Detailed Explanation

At first glance the equation \((x+y)\dfrac{dy}{dx}=1\) looks messy because it is not variables separable and not homogeneous in the usual way. The trick is to treat \(x\) as the dependent variable and \(y\) as the independent variable. Taking the reciprocal, \(\dfrac{dx}{dy}=x+y\), which rearranges into a first-order linear differential equation of the form \(\dfrac{dx}{dy}+Px=Q\). Such equations are solved using an integrating factor. This 'swap the variables' idea is a standard CBSE technique whenever the equation is linear in \(x\) rather than in \(y\).

Formula Used

For a linear equation \(\dfrac{dx}{dy}+Px=Q\) (with \(P,Q\) functions of \(y\)), the integrating factor is \(\text{I.F.}=e^{\int P\,dy}\), and the solution is \(x\cdot(\text{I.F.})=\int Q\,(\text{I.F.})\,dy + C\).

Solution

  1. Step 1: Take the reciprocal of both sides. From \((x+y)\dfrac{dy}{dx}=1\) we get \[\frac{dx}{dy}=x+y.\] We do this because the equation is not linear in \(y\), but it becomes linear when we regard \(x\) as a function of \(y\).
  2. Step 2: Rearrange into standard linear form \(\dfrac{dx}{dy}+Px=Q\). \[\frac{dx}{dy}-x=y.\] Here \(P=-1\) and \(Q=y\), both functions of \(y\) only, confirming it is a linear equation in \(x\).
  3. Step 3: Find the integrating factor. \[\text{I.F.}=e^{\int P\,dy}=e^{\int(-1)\,dy}=e^{-y}.\] Multiplying by this factor makes the left side an exact derivative.
  4. Step 4: Multiply the equation by the I.F. and write the left side as a single derivative. \[\frac{d}{dy}\left(x\,e^{-y}\right)=y\,e^{-y}.\] This is the key property of the integrating factor: it collapses two terms into one derivative.
  5. Step 5: Integrate both sides with respect to \(y\). \[x\,e^{-y}=\int y\,e^{-y}\,dy.\] The right side needs integration by parts.
  6. Step 6: Evaluate \(\int y\,e^{-y}\,dy\) using integration by parts with \(u=y\) and \(dv=e^{-y}\,dy\). \[\int y\,e^{-y}\,dy=-y e^{-y}-\int(-e^{-y})\,dy=-y e^{-y}-e^{-y}.\] So \[x\,e^{-y}=-y e^{-y}-e^{-y}+C.\]
  7. Step 7: Multiply throughout by \(e^{y}\) to solve for \(x\). \[x=-y-1+C e^{y}.\] This gives the general solution with the arbitrary constant \(C\).

Final Answer

\[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]

Common Mistake

A common error is trying to force this into the form \(\dfrac{dy}{dx}+Py=Q\) by keeping \(y\) as the dependent variable; the equation is NOT linear in \(y\). You must invert to \(\dfrac{dx}{dy}=x+y\) first so that it becomes linear in \(x\).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Start with the given equation \((x+y)\dfrac{dy}{dx} = 1\). Take the reciprocal of both sides to obtain \[\frac{dx}{dy} = x + y.\] — Reason: The original equation is not linear in y, but flipping it reveals that x is a linear function of y, making the equation far easier to handle.
  2. Step 2: Rearrange into the standard linear form by moving the x-term to the left: \[\frac{dx}{dy} - x = y.\] Here \(P = -1\) and \(Q = y\), both purely functions of y. — Reason: The standard form \(\dfrac{dx}{dy} + Px = Q\) is required before the integrating-factor method can be applied.
  3. Step 3: Compute the integrating factor using \(P = -1\): \[\text{I.F.} = e^{\int (-1)\,dy} = e^{-y}.\] — Reason: Multiplying through by \(e^{-y}\) will convert the left-hand side into an exact derivative of the product \(x \cdot e^{-y}\).
  4. Step 4: Multiply every term of the equation \(\dfrac{dx}{dy} - x = y\) by the integrating factor \(e^{-y}\): \[e^{-y}\frac{dx}{dy} - x e^{-y} = y e^{-y}.\] Recognise the left side as an exact derivative: \[\frac{d}{dy}\left(x e^{-y}\right) = y e^{-y}.\] — Reason: Writing the left side as a single derivative allows us to integrate both sides directly.
  5. Step 5: Integrate both sides with respect to y: \[x e^{-y} = \int y e^{-y}\,dy.\] Evaluate the right-hand side using integration by parts with \(u = y\) and \(dv = e^{-y}\,dy\): \[\int y e^{-y}\,dy = -y e^{-y} - e^{-y} + C.\] So: \[x e^{-y} = -y e^{-y} - e^{-y} + C.\] — Reason: Integration by parts handles the product \(y e^{-y}\) systematically.
  6. Step 6: Divide every term by \(e^{-y}\) (equivalently, multiply by \(e^{y}\)) to solve for x: \[x = -y - 1 + C e^{y}.\] — Reason: Isolating x gives the explicit general solution in terms of y.
  7. Step 7: Rearrange by bringing all non-exponential terms to the left side: \[x + y + 1 = C e^{y}.\] — Reason: This compact form is the conventional way to present the general solution and matches the standard CBSE answer format.

Final Answer

\[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]

Common Mistake

One common mistake: Students forget to flip the equation and instead try to separate variables or use an integrating factor in x directly — always check whether the equation is linear in x (by writing \(\dfrac{dx}{dy}\)) before choosing your method.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Take reciprocal and rearrange into standard linear form in \( x \): \[\frac{dx}{dy} - x = y\] where \( P = -1 \), \( Q = y \).
  2. Step 2: Integrating factor: \[\text{I.F.} = e^{\int -1 \, dy} = e^{-y}\] Multiply through: \[\frac{d}{dy}\left(x e^{-y}\right) = y e^{-y}\]
  3. Step 3: Integrate both sides: \[x e^{-y} = \int y e^{-y} \, dy = -y e^{-y} - e^{-y} + C\]
  4. Step 4: Divide by \( e^{-y} \): \[x = -y - 1 + C e^{y}\]

Answer: \[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]

➕ More Examples

More Examples

Example 1

Question: Find the general solution of the differential equation \( (2x - y)\,\dfrac{dy}{dx} = 3 \).

Solution: We are given \( (2x - y)\,\frac{dy}{dx} = 3 \). Taking the reciprocal of both sides, we write \( \frac{dx}{dy} = \frac{2x - y}{3} \). Rearranging: \( \frac{dx}{dy} = \frac{2x}{3} - \frac{y}{3} \). Bringing the x-term to the left side: \( \frac{dx}{dy} - \frac{2}{3}x = -\frac{y}{3} \). This is a linear ODE in x with \( P(y) = -\dfrac{2}{3} \) and \( Q(y) = -\dfrac{y}{3} \). The integrating factor is \[ \mu = e^{\int -\frac{2}{3}\,dy} = e^{-\frac{2y}{3}}. \] Multiplying both sides by \( e^{-\frac{2y}{3}} \): \[ \frac{d}{dy}\left(x\,e^{-\frac{2y}{3}}\right) = -\frac{y}{3}\,e^{-\frac{2y}{3}}. \] Integrating the right side using integration by parts. Let \( I = \int -\dfrac{y}{3}\,e^{-\frac{2y}{3}}\,dy \). Using integration by parts with \( u = y \) and \( dv = e^{-\frac{2y}{3}}\,dy \): \[ dv = e^{-\frac{2y}{3}}\,dy \Rightarrow v = -\frac{3}{2}\,e^{-\frac{2y}{3}}. \] So \[ I = -\frac{1}{3}\left[y\cdot\left(-\frac{3}{2}\right)e^{-\frac{2y}{3}} - \int\left(-\frac{3}{2}\right)e^{-\frac{2y}{3}}\,dy\right]. \] Evaluating the remaining integral: \[ \int e^{-\frac{2y}{3}}\,dy = -\frac{3}{2}\,e^{-\frac{2y}{3}}. \] Therefore \[ I = -\frac{1}{3}\left[-\frac{3y}{2}\,e^{-\frac{2y}{3}} + \frac{3}{2}\cdot\left(-\frac{3}{2}\right)e^{-\frac{2y}{3}}\right] \] \[ I = -\frac{1}{3}\left[-\frac{3y}{2}\,e^{-\frac{2y}{3}} - \frac{9}{4}\,e^{-\frac{2y}{3}}\right] \] \[ I = \frac{y}{2}\,e^{-\frac{2y}{3}} + \frac{3}{4}\,e^{-\frac{2y}{3}}. \] Hence the solution is \[ x\,e^{-\frac{2y}{3}} = \frac{y}{2}\,e^{-\frac{2y}{3}} + \frac{3}{4}\,e^{-\frac{2y}{3}} + C. \] Dividing throughout by \( e^{-\frac{2y}{3}} \): \[ x = \frac{y}{2} + \frac{3}{4} + C\,e^{\frac{2y}{3}}. \]

Answer: \( x = \dfrac{y}{2} + \dfrac{3}{4} + C\,e^{\frac{2y}{3}} \)

Example 2

Question: Find the general solution of the differential equation \( (y - 3x)\,\dfrac{dy}{dx} = 2 \).

Solution: We are given \( (y - 3x)\,\frac{dy}{dx} = 2 \). Taking the reciprocal of both sides: \( \frac{dx}{dy} = \frac{y - 3x}{2} \). Rearranging: \( \frac{dx}{dy} = \frac{y}{2} - \frac{3x}{2} \). Bringing the x-term to the left: \( \frac{dx}{dy} + \frac{3}{2}x = \frac{y}{2} \). This is a linear ODE in x with \( P(y) = \dfrac{3}{2} \) and \( Q(y) = \dfrac{y}{2} \). The integrating factor is \[ \mu = e^{\int \frac{3}{2}\,dy} = e^{\frac{3y}{2}}. \] Multiplying both sides by \( e^{\frac{3y}{2}} \): \[ \frac{d}{dy}\left(x\,e^{\frac{3y}{2}}\right) = \frac{y}{2}\,e^{\frac{3y}{2}}. \] Integrating the right side using integration by parts. Let \( I = \int \dfrac{y}{2}\,e^{\frac{3y}{2}}\,dy \). Using integration by parts with \( u = y \) and \( dv = e^{\frac{3y}{2}}\,dy \): \[ dv = e^{\frac{3y}{2}}\,dy \Rightarrow v = \frac{2}{3}\,e^{\frac{3y}{2}}. \] So \[ I = \frac{1}{2}\left[y\cdot\frac{2}{3}\,e^{\frac{3y}{2}} - \int\frac{2}{3}\,e^{\frac{3y}{2}}\,dy\right]. \] Evaluating the remaining integral: \[ \int e^{\frac{3y}{2}}\,dy = \frac{2}{3}\,e^{\frac{3y}{2}}. \] Therefore \[ I = \frac{1}{2}\left[\frac{2y}{3}\,e^{\frac{3y}{2}} - \frac{2}{3}\cdot\frac{2}{3}\,e^{\frac{3y}{2}}\right] \] \[ I = \frac{1}{2}\left[\frac{2y}{3}\,e^{\frac{3y}{2}} - \frac{4}{9}\,e^{\frac{3y}{2}}\right] \] \[ I = \frac{y}{3}\,e^{\frac{3y}{2}} - \frac{2}{9}\,e^{\frac{3y}{2}}. \] Hence the solution is \[ x\,e^{\frac{3y}{2}} = \frac{y}{3}\,e^{\frac{3y}{2}} - \frac{2}{9}\,e^{\frac{3y}{2}} + C. \] Dividing throughout by \( e^{\frac{3y}{2}} \): \[ x = \frac{y}{3} - \frac{2}{9} + C\,e^{-\frac{3y}{2}}. \]

Answer: \( x = \dfrac{y}{3} - \dfrac{2}{9} + C\,e^{-\frac{3y}{2}} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation \((2x - y)\,\dfrac{dy}{dx} = 1\).

Solution

  1. Step 1: Rewrite with x as a function of y: The equation is \((2x - y)\,\dfrac{dy}{dx} = 1\). Taking the reciprocal of both sides, write \(\dfrac{dx}{dy} = 2x - y\). Rearranging: \(\dfrac{dx}{dy} - 2x = -y\). This is a first-order linear ODE in \(x\) as a function of \(y\).
  2. Step 2: Identify P(y) and Q(y): Comparing with the standard form \(\dfrac{dx}{dy} + P(y)\,x = Q(y)\), we get \(P(y) = -2\) and \(Q(y) = -y\).
  3. Step 3: Find the Integrating Factor: The integrating factor is \(I.F. = e^{\int P(y)\,dy} = e^{\int (-2)\,dy} = e^{-2y}\).
  4. Step 4: Multiply both sides by the Integrating Factor: Multiplying throughout by \(e^{-2y}\): \(\dfrac{d}{dy}\left(x\,e^{-2y}\right) = -y\,e^{-2y}\).
  5. Step 5: Integrate both sides with respect to y: Integrating the right side using integration by parts with \(u = -y\) and \(dv = e^{-2y}\,dy\): \(\int -y\,e^{-2y}\,dy = -y \cdot \dfrac{e^{-2y}}{-2} - \int \dfrac{e^{-2y}}{-2}(-1)\,dy\). Simplifying step by step: \(= \dfrac{y\,e^{-2y}}{2} - \int \dfrac{e^{-2y}}{2}\,dy\). Then: \(= \dfrac{y\,e^{-2y}}{2} - \dfrac{1}{2} \cdot \dfrac{e^{-2y}}{-2} + C = \dfrac{y\,e^{-2y}}{2} + \dfrac{e^{-2y}}{4} + C\). So the integrated equation is: \(x\,e^{-2y} = \dfrac{y\,e^{-2y}}{2} + \dfrac{e^{-2y}}{4} + C\).
  6. Step 6: Solve for x: Dividing both sides by \(e^{-2y}\) (i.e., multiplying by \(e^{2y}\)): \(x = \dfrac{y}{2} + \dfrac{1}{4} + C\,e^{2y}\). Multiplying through by 4 and absorbing the constant gives the general solution as: \(x = \dfrac{y}{2} + \dfrac{1}{4} + C\,e^{2y}\), or equivalently \(4x = 2y + 1 + C\,e^{2y}\) where \(C\) is an arbitrary constant.

Answer: \[x = \frac{y}{2} + \frac{1}{4} + C\,e^{2y}\] equivalently \[4x = 2y + 1 + C\,e^{2y}\]

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