SOLVER7 Study. Nothing Else.
Exercise 9.5 Q1

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

Solution

👶 Simple Explanation

Simple Explanation

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} \]

📖 General Solution of dy/dx + 2y = sin x

Detailed Explanation

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

Formula Used

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

Solution

  1. Step 1: Compare the given equation with the standard linear form \( \dfrac{dy}{dx} + Py = Q \). Here \( P = 2 \) and \( Q = \sin x \).
  2. Step 2: Find the integrating factor. \[ \text{I.F.} = e^{\int P \, dx} = e^{\int 2 \, dx} = e^{2x} \] We use the I.F. because multiplying by it makes the left side an exact derivative.
  3. Step 3: Write the solution using the standard result. \[ y \cdot e^{2x} = \int e^{2x} \sin x \, dx + C \] Now we must evaluate the integral on the right.
  4. Step 4: Evaluate \( \int e^{2x} \sin x \, dx \) using integration by parts. Using the standard result \( \int e^{ax} \sin bx \, dx = \dfrac{e^{ax}}{a^2 + b^2}\left( a \sin bx - b \cos bx \right) \) with \( a = 2 \) and \( b = 1 \): \[ \int e^{2x} \sin x \, dx = \frac{e^{2x}}{5}\left( 2 \sin x - \cos x \right) \]
  5. Step 5: Substitute the integral back into the solution. \[ y \cdot e^{2x} = \frac{e^{2x}}{5}\left( 2 \sin x - \cos x \right) + C \]
  6. Step 6: Divide both sides by \( e^{2x} \) to make \( y \) the subject. \[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]

Final Answer

\[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]

Common Mistake

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

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify P and Q by matching standard form: Write the given equation as \( \frac{dy}{dx} + 2y = \sin x \) and compare it with \( \frac{dy}{dx} + Py = Q \). Reading off the coefficients gives \( P = 2 \) and \( Q = \sin x \). — Reason: Identifying P and Q is essential before we can compute the integrating factor and set up the solution formula.
  2. Step 2: Compute the integrating factor: Calculate \[ \text{I.F.} = e^{\int P \, dx} = e^{\int 2 \, dx} = e^{2x} \] — Reason: Multiplying the equation by \( e^{2x} \) will transform the left-hand side into \( \frac{d}{dx}\left(y \cdot e^{2x}\right) \), making the equation directly integrable.
  3. Step 3: Write the general solution template: Apply the standard solution formula with the integrating factor \( e^{2x} \): \[ y \cdot e^{2x} = \int e^{2x} \sin x \, dx + C \] — Reason: This template is the direct consequence of multiplying both sides by the integrating factor and integrating; C is the constant of integration.
  4. Step 4: Evaluate the integral on the right-hand side: Use the standard result \( \int e^{ax} \sin bx \, dx = \frac{e^{ax}}{a^2 + b^2}\left(a \sin bx - b \cos bx\right) \) with \( a = 2 \) and \( b = 1 \): \[ \int e^{2x} \sin x \, dx = \frac{e^{2x}}{2^2 + 1^2}\left(2 \sin x - 1 \cdot \cos x\right) = \frac{e^{2x}}{5}\left(2 \sin x - \cos x\right) \] — Reason: This formula is derived from applying integration by parts twice; using it directly saves time and avoids errors in the repeated application of parts.
  5. Step 5: Substitute the evaluated integral back: Replace the integral in the solution template: \[ y \cdot e^{2x} = \frac{e^{2x}}{5}\left(2 \sin x - \cos x\right) + C \] — Reason: Substituting the result brings us to an equation where y is expressed in terms of \( e^{2x} \), ready for the final simplification.
  6. Step 6: Isolate y to obtain the general solution: Divide every term on both sides by \( e^{2x} \): \[ y = \frac{1}{5}\left(2 \sin x - \cos x\right) + C e^{-2x} \] — Reason: Dividing by \( e^{2x} \) isolates y and converts \( \frac{C}{e^{2x}} \) into \( C e^{-2x} \), giving the final general solution in its neatest form.

Final Answer

\[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]

Common Mistake

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

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given equation in standard form \( \dfrac{dy}{dx} + 2y = \sin x \), so \( P = 2 \), \( Q = \sin x \). I.F. \( = e^{\int 2 \, dx} = e^{2x} \).
  2. Step 2: Solution: \[ y \cdot e^{2x} = \int e^{2x} \sin x \, dx + C \]
  3. Step 3: Using \( \int e^{ax} \sin bx \, dx = \dfrac{e^{ax}}{a^2 + b^2}(a \sin bx - b \cos bx) \) with \( a = 2, b = 1 \): \[ \int e^{2x} \sin x \, dx = \frac{e^{2x}}{5}(2 \sin x - \cos x) \]
  4. Step 4: Substituting and dividing by \( e^{2x} \): \[ y = \frac{1}{5}(2 \sin x - \cos x) + C e^{-2x} \]

Answer: \[ y = \frac{1}{5}\left( 2 \sin x - \cos x \right) + C e^{-2x} \]

➕ More Examples

More Examples

Example 1

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

Example 2

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation \(\frac{dy}{dx} + 3y = \cos 2x\).

Solution

  1. Step 1: Identify the form: The equation \(\frac{dy}{dx} + 3y = \cos 2x\) is a first-order linear ODE with \(P(x) = 3\) and \(Q(x) = \cos 2x\).
  2. Step 2: Find the Integrating Factor: The integrating factor is \(\mu = e^{\int P\, dx} = e^{\int 3\, dx} = e^{3x}\).
  3. Step 3: Multiply both sides by the integrating factor: Multiplying both sides of the equation by \(e^{3x}\): \[ e^{3x}\frac{dy}{dx} + 3e^{3x}y = e^{3x}\cos 2x \] The left side is the derivative of \(y \cdot e^{3x}\), so: \[ \frac{d}{dx}\left(y e^{3x}\right) = e^{3x}\cos 2x \]
  4. Step 4: Integrate both sides: Integrating both sides with respect to \(x\): \[ y e^{3x} = \int e^{3x}\cos 2x \, dx + C \] We need to evaluate \(I = \int e^{3x}\cos 2x \, dx\) using integration by parts twice.
  5. Step 5: Evaluate the integral using integration by parts: Let \(I = \int e^{3x}\cos 2x \, dx\). Applying integration by parts (taking \(\cos 2x\) as the first function): \[ I = \cos 2x \cdot \frac{e^{3x}}{3} - \int (-2\sin 2x)\cdot\frac{e^{3x}}{3}\, dx \] \[ I = \frac{e^{3x}\cos 2x}{3} + \frac{2}{3}\int e^{3x}\sin 2x\, dx \] Now apply integration by parts again to \(\int e^{3x}\sin 2x\, dx\): \[ \int e^{3x}\sin 2x\, dx = \sin 2x \cdot \frac{e^{3x}}{3} - \int 2\cos 2x \cdot \frac{e^{3x}}{3}\, dx = \frac{e^{3x}\sin 2x}{3} - \frac{2}{3}I \] Substituting back: \[ I = \frac{e^{3x}\cos 2x}{3} + \frac{2}{3}\left(\frac{e^{3x}\sin 2x}{3} - \frac{2}{3}I\right) \] \[ I = \frac{e^{3x}\cos 2x}{3} + \frac{2e^{3x}\sin 2x}{9} - \frac{4}{9}I \]
  6. Step 6: Solve for I: Bringing the \(I\) terms to the left side: \[ I + \frac{4}{9}I = \frac{e^{3x}\cos 2x}{3} + \frac{2e^{3x}\sin 2x}{9} \] \[ \frac{13}{9}I = \frac{3e^{3x}\cos 2x + 2e^{3x}\sin 2x}{9} \] \[ I = \frac{e^{3x}(3\cos 2x + 2\sin 2x)}{13} \]
  7. Step 7: Write the general solution: Substituting back: \[ y e^{3x} = \frac{e^{3x}(3\cos 2x + 2\sin 2x)}{13} + C \] Dividing both sides by \(e^{3x}\): \[ y = \frac{1}{13}(3\cos 2x + 2\sin 2x) + Ce^{-3x} \]

Answer: \[ y = \frac{1}{13}\left(3\cos 2x + 2\sin 2x\right) + Ce^{-3x} \]

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