Find the general solution of the differential equation \(\dfrac{dy}{dx}-y=cos\ x.\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine you have a messy room and you want to tidy it using a magic cleaning cloth. The differential equation is like the messy room. We find a special magic cloth called the integrating factor, which is \( e^{-x} \). Multiplying both sides by it makes everything neat and easy to combine. After that, we just collect all the pieces together, like picking up toys off the floor. The final tidy result tells us exactly what \( y \) looks like in terms of \( x \).
Answer: \[ y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^{x} \]
A first-order linear differential equation has the standard form \( \dfrac{dy}{dx} + Py = Q \), where \( P \) and \( Q \) are functions of \( x \) (or constants). To solve it, we multiply the whole equation by a special factor called the integrating factor (I.F.), given by \( e^{\int P \, dx} \). Multiplying by this factor turns the left-hand side into the derivative of a product, which makes it easy to integrate. Here the equation \( \dfrac{dy}{dx} - y = \cos x \) is already linear, so we just identify \( P \) and \( Q \) and apply the method.
For \( \dfrac{dy}{dx} + Py = Q \), the integrating factor is \( \text{I.F.} = e^{\int P \, dx} \), and the solution is \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \).
\[ y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^{x} \]
A common mistake is using the wrong sign for \( P \). Since the equation is \( \dfrac{dy}{dx} - y = \cos x \), we must take \( P = -1 \), giving \( \text{I.F.} = e^{-x} \). Students often carelessly write \( P = 1 \) and get \( e^{x} \), which leads to a completely wrong solution.
\[ y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^{x} \]
One common mistake: Students often forget to flip the sign of P when reading off the integrating factor. Here the equation is \( \frac{dy}{dx} - y = \cos x \), so \( P = -1 \) (not \( +1 \)), giving I.F. \( = e^{-x} \) (not \( e^{x} \)). Using the wrong sign for P leads to an incorrect integrating factor and a completely wrong solution.
Answer: \[ y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^{x} \]
Question: Find the general solution of the differential equation \(\frac{dy}{dx} + 2y = \sin x\).
Solution: Step 1: The equation is already in standard linear form \(\frac{dy}{dx} + P(x)\,y = Q(x)\) with \(P(x) = 2\) and \(Q(x) = \sin x\). Step 2: Compute the integrating factor. \[\text{IF} = e^{\int 2\,dx} = e^{2x}\] Step 3: Multiply both sides by \(e^{2x}\): \[e^{2x}\frac{dy}{dx} + 2e^{2x}y = e^{2x}\sin x\] Step 4: The left side is an exact derivative: \[\frac{d}{dx}\left(y\,e^{2x}\right) = e^{2x}\sin x\] Integrate both sides with respect to \(x\): \[y\,e^{2x} = \int e^{2x}\sin x\,dx + C\] Step 5: Evaluate \(\int e^{2x}\sin x\,dx\) using integration by parts twice. Let \(I = \int e^{2x}\sin x\,dx\). Taking \(u = \sin x\) and \(dv = e^{2x}\,dx\): \[I = \frac{e^{2x}\sin x}{2} - \int \frac{e^{2x}\cos x}{2}\,dx\] Apply integration by parts again to \(\int e^{2x}\cos x\,dx\), with \(u = \cos x\) and \(dv = e^{2x}\,dx\): \[\int e^{2x}\cos x\,dx = \frac{e^{2x}\cos x}{2} + \int \frac{e^{2x}\sin x}{2}\,dx = \frac{e^{2x}\cos x}{2} + \frac{I}{2}\] Substituting back: \[I = \frac{e^{2x}\sin x}{2} - \frac{1}{2}\left(\frac{e^{2x}\cos x}{2} + \frac{I}{2}\right)\] \[I = \frac{e^{2x}\sin x}{2} - \frac{e^{2x}\cos x}{4} - \frac{I}{4}\] \[I + \frac{I}{4} = \frac{e^{2x}\sin x}{2} - \frac{e^{2x}\cos x}{4}\] \[\frac{5I}{4} = \frac{e^{2x}(2\sin x - \cos x)}{4}\] \[I = \frac{e^{2x}(2\sin x - \cos x)}{5}\] Step 6: Substituting back: \[y\,e^{2x} = \frac{e^{2x}(2\sin x - \cos x)}{5} + C\] Divide throughout by \(e^{2x}\): \[y = \frac{2\sin x - \cos x}{5} + C\,e^{-2x}\]
Answer: \(y = \dfrac{2\sin x - \cos x}{5} + C\,e^{-2x}\)
Question: Find the general solution of the differential equation \(\frac{dy}{dx} - 3y = e^{2x}\).
Solution: Step 1: The equation is in standard linear form with \(P(x) = -3\) and \(Q(x) = e^{2x}\). Step 2: Compute the integrating factor. \[\text{IF} = e^{\int (-3)\,dx} = e^{-3x}\] Step 3: Multiply both sides by \(e^{-3x}\): \[e^{-3x}\frac{dy}{dx} - 3e^{-3x}y = e^{2x}\cdot e^{-3x}\] \[e^{-3x}\frac{dy}{dx} - 3e^{-3x}y = e^{-x}\] Step 4: The left side is an exact derivative: \[\frac{d}{dx}\left(y\,e^{-3x}\right) = e^{-x}\] Integrate both sides with respect to \(x\): \[y\,e^{-3x} = \int e^{-x}\,dx + C\] Step 5: Evaluate the integral: \[\int e^{-x}\,dx = -e^{-x} + C\] So: \[y\,e^{-3x} = -e^{-x} + C\] Step 6: Divide throughout by \(e^{-3x}\) (i.e., multiply by \(e^{3x}\)): \[y = -e^{-x}\cdot e^{3x} + C\,e^{3x}\] \[y = -e^{2x} + C\,e^{3x}\]
Answer: \(y = -e^{2x} + C\,e^{3x}\)
Question: Find the general solution of the differential equation \[ \frac{dy}{dx} + y = \sin x \]
Answer: \[ y = \frac{1}{2}\left(\sin x - \cos x\right) + C\,e^{-x} \]