SOLVER7 Study. Nothing Else.
Exercise 9.5 Q8

For each of the differential equations given in Exercises 1 to 12, find the general solution: \((1+x^2)\ dy+2xy\ dx=cot\ x\ dx\ (x\ne 0)\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy recipe and want to tidy it up so baking is easy. This equation is like that messy recipe — we rearrange it into a neat form. We then multiply both sides by a clever number called the integrating factor, which is \( 1 + x^2 \). This makes one side look like something we already know how to handle. After that, we simply collect everything together and write the final tidy answer.

Answer: \[ y(1+x^2) = \ln|\sin x| + C \]

📖 General Solution of a Linear Differential Equation

Detailed Explanation

A first-order linear differential equation has the standard form \( \frac{dy}{dx} + P y = Q \), where \( P \) and \( Q \) are functions of \( x \) only. To solve it, we multiply throughout by a special factor called the integrating factor (I.F.), given by \( e^{\int P \, dx} \). This turns the left side into the derivative of a single product, which we can then integrate directly. The given equation must first be rearranged into this standard form before we can identify \( P \) and \( Q \).

Formula Used

For \( \frac{dy}{dx} + Py = Q \): Integrating Factor \( = 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: Start with the given equation and divide by \( dx \) to bring it to derivative form. \[ (1+x^2)\, dy + 2xy\, dx = \cot x \, dx \] Dividing by \( dx \): \[ (1+x^2)\frac{dy}{dx} + 2xy = \cot x \]
  2. Step 2: Divide throughout by \( (1+x^2) \) to reach the standard linear form. \[ \frac{dy}{dx} + \frac{2x}{1+x^2}\, y = \frac{\cot x}{1+x^2} \] Comparing with \( \frac{dy}{dx} + Py = Q \), we get \[ P = \frac{2x}{1+x^2}, \qquad Q = \frac{\cot x}{1+x^2} \]
  3. Step 3: Compute the integrating factor. \[ \int P \, dx = \int \frac{2x}{1+x^2}\, dx = \ln(1+x^2) \] So the integrating factor is \[ \text{I.F.} = e^{\ln(1+x^2)} = 1+x^2 \] Here we used the fact that the numerator \( 2x \) is the derivative of the denominator \( 1+x^2 \).
  4. Step 4: Write the solution using the formula \( y \cdot (\text{I.F.}) = \int Q \cdot (\text{I.F.}) \, dx + C \). \[ y(1+x^2) = \int \frac{\cot x}{1+x^2}\cdot (1+x^2)\, dx + C \] The factor \( (1+x^2) \) cancels neatly: \[ y(1+x^2) = \int \cot x \, dx + C \]
  5. Step 5: Evaluate the remaining integral. \[ \int \cot x \, dx = \ln|\sin x| \] Therefore \[ y(1+x^2) = \ln|\sin x| + C \]

Final Answer

\[ y(1+x^2) = \ln|\sin x| + C \]

Common Mistake

A common mistake is to forget to divide the equation by \( (1+x^2) \) first, and then wrongly take \( P = 2x \). The integrating factor must be computed from the coefficient of \( y \) only after the equation is written in the standard form \( \frac{dy}{dx} + Py = Q \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Convert to derivative form: Divide the entire given equation by \( dx \) to express it as a derivative. Starting from \[ (1+x^2)\, dy + 2xy\, dx = \cot x \, dx \] dividing through by \( dx \) gives \[ (1+x^2)\frac{dy}{dx} + 2xy = \cot x \] Reason: We need the equation written explicitly in terms of \( \frac{dy}{dx} \) before we can compare it with the standard linear form.
  2. Step 2: Bring to standard linear form: Divide every term by \( (1+x^2) \): \[ \frac{dy}{dx} + \frac{2x}{1+x^2}\, y = \frac{\cot x}{1+x^2} \] Comparing with \( \frac{dy}{dx} + Py = Q \), we identify \[ P = \frac{2x}{1+x^2}, \qquad Q = \frac{\cot x}{1+x^2} \] Reason: The standard form requires the coefficient of \( \frac{dy}{dx} \) to be exactly 1 so that \( P \) and \( Q \) can be read off directly.
  3. Step 3: Compute the integrating factor: Integrate \( P \) with respect to \( x \). Notice that the numerator \( 2x \) is the derivative of the denominator \( 1+x^2 \), so \[ \int \frac{2x}{1+x^2} \, dx = \ln(1+x^2) \] Therefore \[ \text{I.F.} = e^{\ln(1+x^2)} = 1+x^2 \] Reason: The integrating factor is the special multiplier that turns the left side of the equation into a perfect derivative of a product, enabling direct integration.
  4. Step 4: Multiply both sides by the integrating factor: Multiplying the standard-form equation by \( (1+x^2) \): \[ (1+x^2)\frac{dy}{dx} + 2xy = \cot x \] The left side is now exactly \( \frac{d}{dx}\left[y(1+x^2)\right] \), so the equation becomes \[ \frac{d}{dx}\left[y(1+x^2)\right] = \cot x \] Reason: This is the key step — once the left side is a perfect derivative, we can integrate both sides directly without any further manipulation.
  5. Step 5: Integrate both sides: Integrating both sides with respect to \( x \): \[ \int \frac{d}{dx}\left[y(1+x^2)\right] \, dx = \int \cot x \, dx \] The left side integrates trivially, and the standard result \( \int \cot x \, dx = \ln|\sin x| \) gives \[ y(1+x^2) = \ln|\sin x| + C \] Reason: Integration on the left simply undoes the derivative, while the standard integral of \( \cot x \) on the right completes the solution.

Final Answer

\[ y(1+x^2) = \ln|\sin x| + C \]

Common Mistake

One common mistake: Students forget to divide by \( (1+x^2) \) before computing the integrating factor, incorrectly reading \( P = 2x \) instead of \( P = \frac{2x}{1+x^2} \), which leads to a wrong integrating factor and an incorrect solution.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Standard Form: Dividing \( (1+x^2)\,dy + 2xy\,dx = \cot x\,dx \) by \( (1+x^2)\,dx \): \[ \frac{dy}{dx} + \frac{2x}{1+x^2}\,y = \frac{\cot x}{1+x^2} \] So \( P = \dfrac{2x}{1+x^2} \), \( Q = \dfrac{\cot x}{1+x^2} \).
  2. Step 2: Integrating Factor: \[ \text{I.F.} = e^{\int \frac{2x}{1+x^2}\,dx} = e^{\ln(1+x^2)} = 1+x^2 \]
  3. Step 3: Apply Solution Formula: \[ y(1+x^2) = \int \frac{\cot x}{1+x^2} \cdot (1+x^2)\,dx = \int \cot x\,dx = \ln|\sin x| + C \]

Answer: \[ y(1+x^2) = \ln|\sin x| + C \]

➕ More Examples

More Examples

Example 1

Question: Find the general solution of the differential equation \((1 + x^2)\,dy + 2xy\,dx = \sin x\,dx\), where \(x \ne 0\).

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

Answer: \(y(1+x^2) = -\cos x + C\), i.e., \(y = \dfrac{C - \cos x}{1+x^2}\)

Example 2

Question: Find the general solution of the differential equation \((1 + x^2)\,\frac{dy}{dx} + 2xy = \tan^{-1} x\).

Solution: Step 1: Divide both sides by \((1+x^2)\) to write in standard linear form: \[\frac{dy}{dx} + \frac{2x}{1+x^2}\,y = \frac{\tan^{-1} x}{1+x^2}\] Here \(P(x) = \frac{2x}{1+x^2}\) and \(Q(x) = \frac{\tan^{-1} x}{1+x^2}\). Step 2: Find the integrating factor. \[\int P(x)\,dx = \int \frac{2x}{1+x^2}\,dx = \ln\left(1+x^2\right)\] So the integrating factor is: \[\mu = e^{\ln(1+x^2)} = 1+x^2\] Step 3: Multiply both sides by \(\mu = 1+x^2\): \[\frac{d}{dx}\left[y(1+x^2)\right] = \tan^{-1} x\] Step 4: Integrate both sides. Use integration by parts for the right side, letting \(u = \tan^{-1} x\) and \(dv = dx\), so \(du = \frac{1}{1+x^2}\,dx\) and \(v = x\): \[\int \tan^{-1} x\,dx = x\tan^{-1} x - \int \frac{x}{1+x^2}\,dx\] Now, \(\int \frac{x}{1+x^2}\,dx = \frac{1}{2}\ln(1+x^2)\), so: \[\int \tan^{-1} x\,dx = x\tan^{-1} x - \frac{1}{2}\ln(1+x^2) + C\] Step 5: Write the general solution: \[y(1+x^2) = x\tan^{-1} x - \frac{1}{2}\ln(1+x^2) + C\] Dividing by \((1+x^2)\): \[y = \frac{x\tan^{-1} x - \frac{1}{2}\ln(1+x^2) + C}{1+x^2}\]

Answer: \(y(1+x^2) = x\tan^{-1} x - \dfrac{1}{2}\ln(1+x^2) + C\)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the general solution of the differential equation \[ (1 + x^2)\,dy + 2xy\,dx = \tan x\,dx, \quad x \ne \frac{\pi}{2} + n\pi,\; n \in \mathbb{Z}. \]

Solution

  1. Step 1 – Rewrite in standard linear form: Divide both sides of the equation by \( (1 + x^2)\,dx \) to obtain \[ \frac{dy}{dx} + \frac{2x}{1+x^2}\,y = \frac{\tan x}{1+x^2}. \] This is a first-order linear ODE with \( P(x) = \dfrac{2x}{1+x^2} \) and \( Q(x) = \dfrac{\tan x}{1+x^2} \).
  2. Step 2 – Compute the integrating factor: The integrating factor is \( \mu = e^{\int P(x)\,dx} \). We compute \[ \int \frac{2x}{1+x^2}\,dx = \ln|1+x^2|. \] Therefore \[ \mu = e^{\ln|1+x^2|} = 1 + x^2. \]
  3. Step 3 – Multiply through by the integrating factor: Multiplying both sides of the standard form by \( (1+x^2) \) gives \[ (1+x^2)\frac{dy}{dx} + 2x\,y = \tan x. \] The left-hand side is exactly \( \dfrac{d}{dx}\bigl[y(1+x^2)\bigr] \), so we can write \[ \frac{d}{dx}\bigl[y(1+x^2)\bigr] = \tan x. \]
  4. Step 4 – Integrate both sides: Integrating both sides with respect to \( x \): \[ y(1+x^2) = \int \tan x\,dx + C. \] We know that \[ \int \tan x\,dx = \ln|\sec x| + \text{constant}. \] Therefore \[ y(1+x^2) = \ln|\sec x| + C. \]
  5. Step 5 – Write the general solution: The general solution of the given differential equation is \[ y(1+x^2) = \ln|\sec x| + C, \] where \( C \) is an arbitrary constant.

Answer: \[ y(1+x^2) = \ln|\sec x| + C \]

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