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
CBSE Class 12 Maths · Differential Equations
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}.\]
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\).
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\).
\[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]
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\).
\[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]
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.
Answer: \[x=-y-1+C e^{y}\] equivalently \[x+y+1=C e^{y}.\]
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}} \)
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}} \)
Question: Find the general solution of the differential equation \((2x - y)\,\dfrac{dy}{dx} = 1\).
Answer: \[x = \frac{y}{2} + \frac{1}{4} + C\,e^{2y}\] equivalently \[4x = 2y + 1 + C\,e^{2y}\]