For each of the differential equations given in Exercises 1 to 12, find the general solution: \(\dfrac{dy}{dx}+2y=sin\ x\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine you have a messy recipe that mixes two ingredients together. A special multiplying trick — like adding a secret sauce — suddenly makes both sides of the recipe clean and easy to read. That secret sauce here is \( e^{2x} \). Once you apply it, the left side becomes a neat package, and the right side just needs a little careful calculation. After unwrapping everything at the end, you find the tidy answer hiding inside. The extra letter \( C \) simply reminds you that many similar recipes could all work.
Answer: \[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]
This is a first-order linear differential equation. Such equations have the standard form \( \dfrac{dy}{dx} + Py = Q \), where \( P \) and \( Q \) are functions of \( x \) (or constants). To solve them, 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 we can then integrate directly. Here \( P = 2 \) and \( Q = \sin x \).
For \( \dfrac{dy}{dx} + Py = Q \): 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}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]
A common mistake is forgetting to multiply the constant of integration by \( e^{-2x} \) when dividing through. The term \( C \) must also be divided by the integrating factor, giving \( C e^{-2x} \), not just \( C \).
\[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]
One common mistake: When evaluating \( \int e^{2x} \sin x \, dx \) by parts, students forget to apply parts a second time (or make a sign error in the second application) and arrive at an incorrect numerator such as \( 2 \sin x + \cos x \) instead of the correct \( 2 \sin x - \cos x \); always check both the sign and the denominator \( a^2 + b^2 = 5 \).
Answer: \[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]
Question: Find the general solution of the differential equation \( \frac{dy}{dx} + 3y = \cos x \).
Solution: Step 1: Identify P and Q. The equation is already in standard form \( \frac{dy}{dx} + P(x)\,y = Q(x) \) with \( P(x) = 3 \) and \( Q(x) = \cos x \). Step 2: Find the integrating factor. \[ \mu = e^{\int 3\,dx} = e^{3x} \] Step 3: Multiply both sides by \( e^{3x} \). \[ e^{3x}\frac{dy}{dx} + 3e^{3x}y = e^{3x}\cos x \] The left side is an exact derivative: \[ \frac{d}{dx}\left(y\,e^{3x}\right) = e^{3x}\cos x \] Step 4: Integrate both sides with respect to \( x \). \[ y\,e^{3x} = \int e^{3x}\cos x\,dx + C \] Step 5: Evaluate \( I = \int e^{3x}\cos x\,dx \) using integration by parts twice. First application — let \( u = \cos x \) and \( dv = e^{3x}\,dx \): \[ I = \frac{e^{3x}\cos x}{3} + \frac{1}{3}\int e^{3x}\sin x\,dx \] Second application — let \( u = \sin x \) and \( dv = e^{3x}\,dx \): \[ \int e^{3x}\sin x\,dx = \frac{e^{3x}\sin x}{3} - \frac{1}{3}\int e^{3x}\cos x\,dx \] Substituting back: \[ I = \frac{e^{3x}\cos x}{3} + \frac{1}{3}\left(\frac{e^{3x}\sin x}{3} - \frac{I}{3}\right) \] \[ I = \frac{e^{3x}\cos x}{3} + \frac{e^{3x}\sin x}{9} - \frac{I}{9} \] \[ I + \frac{I}{9} = \frac{e^{3x}\cos x}{3} + \frac{e^{3x}\sin x}{9} \] \[ \frac{10I}{9} = \frac{3e^{3x}\cos x + e^{3x}\sin x}{9} \] \[ I = \frac{e^{3x}(3\cos x + \sin x)}{10} \] Step 6: Write the general solution. \[ y\,e^{3x} = \frac{e^{3x}(3\cos x + \sin x)}{10} + C \] Dividing by \( e^{3x} \): \[ y = \frac{3\cos x + \sin x}{10} + C\,e^{-3x} \]
Answer: \( y = \dfrac{3\cos x + \sin x}{10} + C\,e^{-3x} \)
Question: Find the general solution of the differential equation \( \frac{dy}{dx} + y\cot x = 2\cos x \).
Solution: Step 1: Identify P and Q. The equation is in standard form with \( P(x) = \cot x \) and \( Q(x) = 2\cos x \). Step 2: Find the integrating factor. \[ \mu = e^{\int \cot x\,dx} = e^{\ln|\sin x|} = \sin x \] Step 3: Multiply both sides by \( \sin x \). \[ \sin x\,\frac{dy}{dx} + y\cos x = 2\sin x\cos x \] The left side is an exact derivative: \[ \frac{d}{dx}\left(y\sin x\right) = 2\sin x\cos x = \sin 2x \] Step 4: Integrate both sides with respect to \( x \). \[ y\sin x = \int \sin 2x\,dx + C \] \[ y\sin x = -\frac{\cos 2x}{2} + C \] Step 5: Write the general solution. Dividing by \( \sin x \) (assuming \( \sin x \ne 0 \)): \[ y = \frac{-\cos 2x}{2\sin x} + \frac{C}{\sin x} \] Alternatively, the solution can be left in implicit form as: \[ y\sin x = -\frac{\cos 2x}{2} + C \]
Answer: \( y\sin x = -\dfrac{\cos 2x}{2} + C \)
Question: Find the general solution of the differential equation \(\frac{dy}{dx} + 3y = \cos 2x\).
Answer: \[ y = \frac{1}{13}\left(3\cos 2x + 2\sin 2x\right) + Ce^{-3x} \]