SOLVER7 Study. Nothing Else.
Exercise 9.5 Q5

For each of the differential equations given in Exercises 1 to 12, find the general solution: \(cos^2\ x\dfrac{dy}{dx}+y=tan\ x\left(0\le x<\dfrac{\pi}{2}\right)\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy room and you want to tidy it up neatly. A differential equation is like a messy room — it mixes the unknown value with its rate of change. We find a special helper number called an integrating factor, like a magic key that unlocks the equation. Multiplying by this key makes both sides easy to handle, just like sorting items into boxes. Once sorted, we add up everything to find the tidy answer, which always includes a constant \( C \) because there are many possible starting points.

Answer: The general solution is \[ y = (\tan x - 1) + C e^{-\tan x} \]

📖 General Solution of a First-Order Linear Differential Equation

Detailed Explanation

A first-order linear differential equation has the standard form \( \dfrac{dy}{dx} + Py = Q \), where \( P \) and \( Q \) are functions of \( x \) only. To solve it, we find the integrating factor \( \text{I.F.} = e^{\int P \, dx} \). Multiplying the equation by the I.F. turns the left side into the derivative of a product, which can then be integrated directly. The given equation is not yet in standard form because of the \( \cos^2 x \) coefficient, so our first job is to divide throughout to reveal \( P \) and \( Q \).

Formula Used

Standard form: \( \dfrac{dy}{dx} + Py = Q \). Integrating factor: \( \text{I.F.} = e^{\int P \, dx} \). General solution: \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \).

Solution

  1. Step 1: Start with the given equation and convert it into standard linear form by dividing throughout by \( \cos^2 x \). \[ \cos^2 x \, \frac{dy}{dx} + y = \tan x \] Dividing by \( \cos^2 x \): \[ \frac{dy}{dx} + \frac{y}{\cos^2 x} = \frac{\tan x}{\cos^2 x} \] Using \( \dfrac{1}{\cos^2 x} = \sec^2 x \): \[ \frac{dy}{dx} + (\sec^2 x)\, y = \tan x \, \sec^2 x \]
  2. Step 2: Compare with the standard form \( \dfrac{dy}{dx} + Py = Q \) to identify \( P \) and \( Q \). \[ P = \sec^2 x, \qquad Q = \tan x \, \sec^2 x \]
  3. Step 3: Find the integrating factor. Since \( \int \sec^2 x \, dx = \tan x \), we get \[ \text{I.F.} = e^{\int P \, dx} = e^{\int \sec^2 x \, dx} = e^{\tan x} \]
  4. Step 4: Write the general solution using the formula \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \). \[ y \, e^{\tan x} = \int \tan x \, \sec^2 x \, e^{\tan x} \, dx + C \]
  5. Step 5: Solve the integral on the right using substitution. Let \( t = \tan x \), so \( dt = \sec^2 x \, dx \). \[ \int \tan x \, \sec^2 x \, e^{\tan x} \, dx = \int t \, e^{t} \, dt \] Now apply integration by parts with \( u = t \) and \( dv = e^{t} \, dt \): \[ \int t \, e^{t} \, dt = t e^{t} - \int e^{t} \, dt = t e^{t} - e^{t} = e^{t}(t - 1) \] Replacing \( t = \tan x \): \[ \int t \, e^{t} \, dt = e^{\tan x}(\tan x - 1) \]
  6. Step 6: Substitute the integral back into the solution. \[ y \, e^{\tan x} = e^{\tan x}(\tan x - 1) + C \] Divide both sides by \( e^{\tan x} \): \[ y = (\tan x - 1) + C e^{-\tan x} \]

Final Answer

The general solution is \[ y = (\tan x - 1) + C e^{-\tan x} \]

Common Mistake

A common mistake is forgetting to first divide by \( \cos^2 x \) to bring the equation into standard form. If you take \( P \) directly from the original coefficients, you get the wrong integrating factor and an incorrect solution. Always ensure the coefficient of \( \dfrac{dy}{dx} \) is 1 before identifying \( P \) and \( Q \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Begin with the given equation: \[ \cos^2 x \, \frac{dy}{dx} + y = \tan x \] Divide every term by \( \cos^2 x \) to remove the coefficient from \( \dfrac{dy}{dx} \): \[ \frac{dy}{dx} + \frac{y}{\cos^2 x} = \frac{\tan x}{\cos^2 x} \] Using \( \dfrac{1}{\cos^2 x} = \sec^2 x \), this becomes \[ \frac{dy}{dx} + (\sec^2 x)\, y = \tan x \sec^2 x \] — Reason: The standard linear form requires the coefficient of \( \dfrac{dy}{dx} \) to be exactly 1, so dividing through is the mandatory first step.
  2. Step 2: Compare the rewritten equation with the standard form \( \dfrac{dy}{dx} + Py = Q \) to read off \( P \) and \( Q \): \[ P = \sec^2 x, \qquad Q = \tan x \sec^2 x \] — Reason: Identifying \( P \) and \( Q \) correctly is essential before computing the integrating factor; a wrong identification here propagates errors to every later step.
  3. Step 3: Compute the integrating factor using \( \text{I.F.} = e^{\int P \, dx} \). Since \( \int \sec^2 x \, dx = \tan x \), we obtain \[ \text{I.F.} = e^{\tan x} \] — Reason: The integrating factor is the multiplier that turns the left-hand side of the ODE into an exact derivative, enabling straightforward integration.
  4. Step 4: Multiply both sides of the standard-form equation by \( e^{\tan x} \). The left side collapses into a single derivative: \[ \frac{d}{dx}\left( y \cdot e^{\tan x} \right) = \tan x \sec^2 x \cdot e^{\tan x} \] — Reason: This is the whole point of the integrating-factor method; the left side is now a perfect derivative and can be integrated in one move.
  5. Step 5: Integrate both sides with respect to \( x \): \[ y \cdot e^{\tan x} = \int \tan x \sec^2 x \cdot e^{\tan x} \, dx \] For the right-hand side, substitute \( t = \tan x \), so \( dt = \sec^2 x \, dx \). The integral becomes \( \int t \, e^{t} \, dt \). Apply integration by parts with \( u = t \) and \( dv = e^t \, dt \): \[ \int t \, e^{t} \, dt = t e^{t} - e^{t} + C = (t - 1)e^{t} + C \] Substituting back \( t = \tan x \): \[ y \cdot e^{\tan x} = (\tan x - 1)e^{\tan x} + C \] — Reason: A substitution reduces the integral to a standard form, and integration by parts handles the product \( t e^t \).
  6. Step 6: Divide both sides by \( e^{\tan x} \) to isolate \( y \): \[ y = (\tan x - 1) + C e^{-\tan x} \] — Reason: Dividing by the integrating factor gives the explicit general solution for \( y \) in terms of \( x \).

Final Answer

The general solution is \[ y = (\tan x - 1) + C e^{-\tan x} \]

Common Mistake

One common mistake: forgetting to divide the entire equation by \( \cos^2 x \) before identifying \( P \) and \( Q \), which leads to \( P = 1 \) (instead of \( \sec^2 x \)) and gives a completely wrong integrating factor.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Convert to Standard Form: Divide throughout by \( \cos^2 x \): \[ \frac{dy}{dx} + (\sec^2 x)\, y = \tan x \sec^2 x \] So \( P = \sec^2 x \), \( Q = \tan x \sec^2 x \).
  2. Step 2: Integrating Factor: \[ \text{I.F.} = e^{\int \sec^2 x \, dx} = e^{\tan x} \]
  3. Step 3: Apply Solution Formula: \[ y \cdot e^{\tan x} = \int \tan x \sec^2 x \cdot e^{\tan x} \, dx \] Using substitution \( t = \tan x \): \[ \int t e^{t} \, dt = e^{t}(t - 1) + C = e^{\tan x}(\tan x - 1) + C \]
  4. Step 4: General Solution: Dividing both sides by \( e^{\tan x} \): \[ y = (\tan x - 1) + C e^{-\tan x} \]

Answer: The general solution is \[ y = (\tan x - 1) + C e^{-\tan x} \]

➕ More Examples

More Examples

Example 1

Question: Find the general solution of the differential equation \[ \sin^2 x \, \frac{dy}{dx} + y = \cot x, \quad 0 < x < \frac{\pi}{2} \]

Solution: Step 1: Rewrite in standard linear form. Divide both sides by \( \sin^2 x \): \[ \frac{dy}{dx} + \frac{1}{\sin^2 x}\,y = \frac{\cot x}{\sin^2 x} \] So we have \( P(x) = \csc^2 x \) and \( Q(x) = \frac{\cos x}{\sin^3 x} \). Step 2: Find the integrating factor. \[ \int P(x)\,dx = \int \csc^2 x \, dx = -\cot x \] Therefore the integrating factor is \[ \mu = e^{-\cot x} \] Step 3: Multiply both sides by the integrating factor \( e^{-\cot x} \): \[ \frac{d}{dx}\left(y \cdot e^{-\cot x}\right) = \frac{\cos x}{\sin^3 x} \cdot e^{-\cot x} \] Step 4: Integrate both sides. For the right side, let \( t = -\cot x \), so \( dt = \csc^2 x \, dx = \frac{1}{\sin^2 x} dx \). Also, \( \frac{\cos x}{\sin^3 x} = \cot x \cdot \csc^2 x \). Writing \( \cot x = -t \): \[ \int \frac{\cos x}{\sin^3 x} e^{-\cot x} dx = \int (-t)\, e^{t}\, dt \] Using integration by parts: \[ \int (-t) e^t \, dt = -t e^t + \int e^t \, dt = -t e^t + e^t = e^t(1 - t) \] Substituting back \( t = -\cot x \): \[ = e^{-\cot x}(1 + \cot x) \] Step 5: Write the general solution. \[ y \cdot e^{-\cot x} = e^{-\cot x}(1 + \cot x) + C \] Dividing both sides by \( e^{-\cot x} \): \[ y = 1 + \cot x + C\, e^{\cot x} \]

Answer: \( y = 1 + \cot x + C\, e^{\cot x} \)

Example 2

Question: Find the general solution of the differential equation \[ (1 + x^2)\frac{dy}{dx} + 2xy = 4x^2 \]

Solution: Step 1: Rewrite in standard linear form. Divide both sides by \( (1 + x^2) \): \[ \frac{dy}{dx} + \frac{2x}{1+x^2}\,y = \frac{4x^2}{1+x^2} \] Here \( P(x) = \frac{2x}{1+x^2} \) and \( Q(x) = \frac{4x^2}{1+x^2} \). Step 2: Find the integrating factor. \[ \int P(x)\,dx = \int \frac{2x}{1+x^2}\,dx = \ln(1+x^2) \] Therefore the integrating factor is \[ \mu = e^{\ln(1+x^2)} = 1 + x^2 \] Step 3: Multiply both sides by \( (1 + x^2) \): \[ \frac{d}{dx}\left[y(1+x^2)\right] = \frac{4x^2}{1+x^2} \cdot (1+x^2) = 4x^2 \] Step 4: Integrate both sides with respect to \( x \): \[ y(1+x^2) = \int 4x^2 \, dx = \frac{4x^3}{3} + C \] Step 5: Write the general solution by dividing both sides by \( (1+x^2) \): \[ y = \frac{4x^3}{3(1+x^2)} + \frac{C}{1+x^2} \]

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation \[ \sin^2 x \, \frac{dy}{dx} + y = \cot x, \quad 0 < x < \frac{\pi}{2} \]

Solution

  1. Step 1: Rewrite in Standard Linear Form: Divide both sides of the equation by \( \sin^2 x \) (which equals \( \frac{1}{\csc^2 x} \)) to get the standard form \( \frac{dy}{dx} + P(x)\,y = Q(x) \). Dividing: \[ \frac{dy}{dx} + \frac{1}{\sin^2 x}\,y = \frac{\cot x}{\sin^2 x} \] So \( P(x) = \csc^2 x \) and \( Q(x) = \cot x \cdot \csc^2 x \).
  2. Step 2: Find the Integrating Factor: The integrating factor is \[ \mu = e^{\int P(x)\,dx} = e^{\int \csc^2 x\,dx} \] We know \( \int \csc^2 x\,dx = -\cot x \), so \[ \mu = e^{-\cot x} \]
  3. Step 3: Multiply Both Sides by the Integrating Factor: Multiplying the standard-form equation by \( e^{-\cot x} \): \[ e^{-\cot x}\frac{dy}{dx} + e^{-\cot x}\csc^2 x \cdot y = e^{-\cot x}\cot x \csc^2 x \] The left-hand side is the exact derivative of \( y\,e^{-\cot x} \): \[ \frac{d}{dx}\left(y\,e^{-\cot x}\right) = e^{-\cot x}\cot x\csc^2 x \]
  4. Step 4: Integrate Both Sides: Integrating both sides with respect to \( x \): \[ y\,e^{-\cot x} = \int e^{-\cot x}\cot x\csc^2 x\,dx + C \] For the integral on the right, use the substitution \( t = -\cot x \), so \( dt = \csc^2 x\,dx \) and \( \cot x = -t \). The integral becomes \[ \int e^{t}(-t)\,dt = -\int t\,e^{t}\,dt \] Using integration by parts with \( u = t \) and \( dv = e^t dt \): \[ -\int t\,e^{t}\,dt = -(t\,e^{t} - e^{t}) = -e^{t}(t - 1) \] Substituting back \( t = -\cot x \): \[ = -e^{-\cot x}(-\cot x - 1) = e^{-\cot x}(\cot x + 1) \]
  5. Step 5: Write the General Solution: Substituting back: \[ y\,e^{-\cot x} = e^{-\cot x}(\cot x + 1) + C \] Dividing both sides by \( e^{-\cot x} \): \[ y = (\cot x + 1) + C\,e^{\cot x} \] This is the required general solution.

Answer: The general solution is \[ y = (\cot x + 1) + C\,e^{\cot x} \]

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