SOLVER7 Study. Nothing Else.
Chapter 9 Examples Q17

Find the particular solution of the differential equation \(\dfrac{dy}{dx}+y\ cot\ x=2x+x^2\ cot\ x\ (x\ne 0)\) given that \(y=0\) when \(x=\dfrac{\pi}{2}.\)

CBSE Class 12 Maths · Differential Equations

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy room and you want to tidy it into one neat pile. A differential equation is like a messy instruction for finding a hidden function. We use a special trick — multiplying by a magic number called an integrating factor — to tidy both sides at once. After tidying, we can simply undo the mess by adding things up. Finally, we use one known fact (the starting condition) to pin down the exact answer, just like knowing where you started on a map helps you find exactly where you ended up.

Answer: \[y = x^2 - \frac{\pi^2}{4}\,\csc x, \quad \text{or equivalently} \quad y \sin x = x^2 \sin x - \frac{\pi^2}{4}\]

📖 Particular Solution of a Linear Differential Equation

Detailed Explanation

A first-order linear differential equation has the standard form \(\frac{dy}{dx} + P(x)\,y = Q(x)\), where \(P(x)\) and \(Q(x)\) are functions of \(x\) only. To solve it, we multiply the whole equation by an integrating factor (I.F.) \(= e^{\int P\,dx}\). This special multiplier turns the left-hand side into the exact derivative of \(y \times \text{(I.F.)}\), which makes integration straightforward. After finding the general solution (which contains a constant \(C\)), we use the given condition \(y = 0\) when \(x = \frac{\pi}{2}\) to find \(C\), giving the particular solution.

Formula Used

For \(\frac{dy}{dx} + P(x)\,y = Q(x)\): \[\text{I.F.} = e^{\int P\,dx}, \qquad 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 \(\frac{dy}{dx} + P(x)\,y = Q(x)\). Here \(P(x) = \cot x\) and \(Q(x) = 2x + x^2 \cot x\).
  2. Step 2: Find the integrating factor. \[\text{I.F.} = e^{\int \cot x \, dx} = e^{\ln|\sin x|} = \sin x\] We use \(\int \cot x\, dx = \ln|\sin x|\).
  3. Step 3: Multiply the whole equation by the integrating factor \(\sin x\). The left-hand side becomes the derivative of \(y \cdot \sin x\). \[\frac{d}{dx}(y \sin x) = (2x + x^2 \cot x)\sin x\] Simplify the right-hand side using \(\cot x = \frac{\cos x}{\sin x}\). \[\frac{d}{dx}(y \sin x) = 2x \sin x + x^2 \cos x\]
  4. Step 4: Integrate both sides with respect to \(x\). \[y \sin x = \int (2x \sin x + x^2 \cos x)\, dx\] Notice the right-hand side is exactly the derivative of \(x^2 \sin x\), since \(\frac{d}{dx}(x^2 \sin x) = 2x \sin x + x^2 \cos x\). Therefore, \[y \sin x = x^2 \sin x + C\]
  5. Step 5: Apply the initial condition \(y = 0\) when \(x = \frac{\pi}{2}\). Since \(\sin\frac{\pi}{2} = 1\), \[0 \cdot 1 = \left(\frac{\pi}{2}\right)^2 \cdot 1 + C\] This gives \[C = -\frac{\pi^2}{4}\]
  6. Step 6: Substitute the value of \(C\) back to get the particular solution. \[y \sin x = x^2 \sin x - \frac{\pi^2}{4}\] Dividing by \(\sin x\) (for \(\sin x \ne 0\)), \[y = x^2 - \frac{\pi^2}{4}\,\csc x\]

Final Answer

\[y = x^2 - \frac{\pi^2}{4}\,\csc x, \quad \text{or equivalently} \quad y \sin x = x^2 \sin x - \frac{\pi^2}{4}\]

Common Mistake

A common mistake is failing to recognise that \(\int (2x \sin x + x^2 \cos x)\, dx = x^2 \sin x + C\) directly (as it is an exact derivative), and instead struggling with integration by parts and making sign errors. Another frequent error is forgetting the constant \(C\), which makes it impossible to apply the initial condition and find the particular solution.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify P(x) and Q(x): Rewrite the given equation in the standard linear form \( \frac{dy}{dx} + P(x)\,y = Q(x) \). Comparing term by term gives \( P(x) = \cot x \) and \( Q(x) = 2x + x^2 \cot x \). — Reason: We must match the given equation to the standard form before we can apply the integrating factor formula.
  2. Step 2: Compute the Integrating Factor: Integrate \( P(x) = \cot x \) to get \( \int \cot x\,dx = \ln|\sin x| \). Then the integrating factor is \[\text{I.F.} = e^{\ln|\sin x|} = \sin x\] — Reason: The integrating factor \( e^{\int P\,dx} \) is the special multiplier that turns the left-hand side into a perfect derivative.
  3. Step 3: Multiply Through and Simplify the Right Side: Multiply the entire equation by \( \sin x \). The left side becomes \( \frac{d}{dx}(y \sin x) \) by the product rule. The right side becomes \[(2x + x^2 \cot x)\sin x = 2x\sin x + x^2 \cdot \frac{\cos x}{\sin x} \cdot \sin x = 2x\sin x + x^2 \cos x\] So the equation is now \[\frac{d}{dx}(y \sin x) = 2x\sin x + x^2 \cos x\] — Reason: After multiplying by the I.F., the left side is always an exact derivative, which prepares both sides for direct integration.
  4. Step 4: Recognise the Right Side as a Product-Rule Derivative: Observe that \( 2x\sin x + x^2 \cos x \) matches the expansion of \( \frac{d}{dx}(x^2 \sin x) \) exactly, since by the product rule \[\frac{d}{dx}(x^2 \sin x) = 2x\sin x + x^2 \cos x\] So the equation becomes \[\frac{d}{dx}(y \sin x) = \frac{d}{dx}(x^2 \sin x)\] — Reason: Spotting that the right side is itself an exact derivative avoids the need for integration by parts and makes the next step immediate.
  5. Step 5: Integrate Both Sides: Integrating both sides with respect to \( x \) gives \[y \sin x = x^2 \sin x + C\] — Reason: Since both sides are exact derivatives of known expressions, integrating is direct; \( C \) is the constant of integration representing the family of all solutions.
  6. Step 6: Apply the Initial Condition to Find C: Use the given condition \( y = 0 \) when \( x = \frac{\pi}{2} \). Substituting into \( y \sin x = x^2 \sin x + C \): \[0 \cdot \sin\!\left(\frac{\pi}{2}\right) = \left(\frac{\pi}{2}\right)^2 \sin\!\left(\frac{\pi}{2}\right) + C\] Since \( \sin\!\left(\frac{\pi}{2}\right) = 1 \), this gives \[0 = \frac{\pi^2}{4} + C \implies C = -\frac{\pi^2}{4}\] — Reason: The initial condition pins down the unique particular solution from the infinite family of general solutions.
  7. Step 7: Write the Particular Solution: Substitute \( C = -\dfrac{\pi^2}{4} \) back into the general solution: \[y \sin x = x^2 \sin x - \frac{\pi^2}{4}\] Dividing through by \( \sin x \) (assuming \( \sin x \ne 0 \)) and using \( \frac{1}{\sin x} = \csc x \): \[y = x^2 - \frac{\pi^2}{4}\csc x\] — Reason: Dividing by the integrating factor isolates \( y \) explicitly, giving the cleanest final form of the particular solution.

Final Answer

\[y = x^2 - \frac{\pi^2}{4}\,\csc x, \quad \text{or equivalently} \quad y \sin x = x^2 \sin x - \frac{\pi^2}{4}\]

Common Mistake

One common mistake: students forget to apply the initial condition after finding the general solution, leaving \( C \) undetermined and thus reporting only the general solution \( y \sin x = x^2 \sin x + C \) instead of the required particular solution.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Identify and compute I.F.: Given equation: \\ P(x) = \cot x,\\; Q(x) = 2x + x^2 \cot x. Integrating factor: \( \text{I.F.} = e^{\int \cot x\\, dx} = e^{\ln|\sin x|} = \sin x \)
  2. Step 2: Form and integrate: Multiplying through by \( \sin x \) gives \( \frac{d}{dx}(y \sin x) = 2x \sin x + x^2 \cos x \). Integrate: \[ y \sin x = \int (2x \sin x + x^2 \cos x)\\, dx = x^2 \sin x + C \]
  3. Step 3: Apply initial condition \( y = 0 \) at \( x = \frac{\pi}{2} \): \( 0 \cdot \sin\frac{\pi}{2} = \left(\frac{\pi}{2}\right)^2 \sin\frac{\pi}{2} + C \) gives \( C = -\dfrac{\pi^2}{4} \)

Answer: \[y = x^2 - \frac{\pi^2}{4}\,\csc x, \quad \text{or equivalently} \quad y \sin x = x^2 \sin x - \frac{\pi^2}{4}\]

➕ More Examples

More Examples

Example 1

Question: Find the particular solution of the differential equation \(\dfrac{dy}{dx} + y \cot x = 4x \csc x\), given that \(y = 0\) when \(x = \dfrac{\pi}{2}\).

Solution: The given equation is already in standard linear form \(\dfrac{dy}{dx} + P(x)\,y = Q(x)\). Here \(P(x) = \cot x\) and \(Q(x) = 4x \csc x\). Integrating Factor: \[\text{IF} = e^{\int \cot x \, dx} = e^{\ln|\sin x|} = \sin x\] Multiplying both sides by \(\sin x\): \[\frac{d}{dx}\left(y \sin x\right) = 4x \csc x \cdot \sin x = 4x\] Integrating both sides: \[y \sin x = \int 4x \, dx = 2x^2 + C\] Applying the initial condition \(y = 0\) when \(x = \dfrac{\pi}{2}\): \[0 \cdot \sin\left(\frac{\pi}{2}\right) = 2\left(\frac{\pi}{2}\right)^2 + C\] \[0 = \frac{\pi^2}{2} + C\] So \(C = -\dfrac{\pi^2}{2}\). The particular solution is: \[y \sin x = 2x^2 - \frac{\pi^2}{2}\]

Answer: \(y \sin x = 2x^2 - \dfrac{\pi^2}{2}\)

Example 2

Question: Find the particular solution of the differential equation \(\dfrac{dy}{dx} - y \tan x = -2x \sec x + x^2 \tan x\), given that \(y = 1\) when \(x = 0\).

Solution: The given equation is in standard linear form \(\dfrac{dy}{dx} + P(x)\,y = Q(x)\). Here \(P(x) = -\tan x\) and \(Q(x) = -2x \sec x + x^2 \tan x\). Integrating Factor: \[\text{IF} = e^{\int -\tan x \, dx} = e^{\ln|\cos x|} = \cos x\] Multiplying both sides by \(\cos x\): \[\frac{d}{dx}\left(y \cos x\right) = \left(-2x \sec x + x^2 \tan x\right) \cos x\] \[\frac{d}{dx}\left(y \cos x\right) = -2x + x^2 \sin x\] Integrating both sides: \[y \cos x = \int \left(-2x + x^2 \sin x\right) dx\] For \(\int -2x \, dx\): \[\int -2x \, dx = -x^2\] For \(\int x^2 \sin x \, dx\), using integration by parts twice: Let \(u = x^2\), \(dv = \sin x \, dx\), so \(du = 2x \, dx\), \(v = -\cos x\). \[\int x^2 \sin x \, dx = -x^2 \cos x + 2\int x \cos x \, dx\] For \(\int x \cos x \, dx\): let \(u = x\), \(dv = \cos x \, dx\), so \(du = dx\), \(v = \sin x\). \[\int x \cos x \, dx = x \sin x - \int \sin x \, dx = x \sin x + \cos x\] Therefore: \[\int x^2 \sin x \, dx = -x^2 \cos x + 2x \sin x + 2\cos x\] Combining: \[y \cos x = -x^2 - x^2 \cos x + 2x \sin x + 2\cos x + C\] Applying the initial condition \(y = 1\) when \(x = 0\): \[1 \cdot \cos 0 = -0 - 0 + 0 + 2\cos 0 + C\] \[1 = 2 + C\] So \(C = -1\). The particular solution is: \[y \cos x = -x^2 - x^2 \cos x + 2x \sin x + 2\cos x - 1\]

Answer: \(y \cos x = -x^2 - x^2 \cos x + 2x \sin x + 2\cos x - 1\)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the particular solution of the differential equation \[ \frac{dy}{dx} + y\cot x = 4x + x^2 \cot x, \quad x \ne 0, \] given that \( y = 0 \) when \( x = \dfrac{\pi}{2} \).

Solution

  1. Step 1: Identify P(x) and Q(x): The equation is already in standard linear form \( \frac{dy}{dx} + P(x)\,y = Q(x) \) with \( P(x) = \cot x \) and \( Q(x) = 4x + x^2 \cot x \).
  2. Step 2: Find the Integrating Factor: The integrating factor is \[ \mu = e^{\int \cot x \, dx} = e^{\ln|\sin x|} = \sin x. \]
  3. Step 3: Multiply Both Sides by the Integrating Factor: Multiplying both sides of the ODE by \( \sin x \): \[ \sin x \frac{dy}{dx} + y \cos x = 4x \sin x + x^2 \cos x. \] The left side is exactly \( \frac{d}{dx}(y \sin x) \), so we have \[ \frac{d}{dx}(y \sin x) = 4x \sin x + x^2 \cos x. \]
  4. Step 4: Recognize the Right Side as a Derivative: Notice that \[ \frac{d}{dx}(x^2 \sin x) = 2x \sin x + x^2 \cos x. \] Therefore \[ 4x \sin x + x^2 \cos x = 2x \sin x + (2x \sin x + x^2 \cos x) = 2x \sin x + \frac{d}{dx}(x^2 \sin x). \] So the equation becomes \[ \frac{d}{dx}(y \sin x) = 2x \sin x + \frac{d}{dx}(x^2 \sin x). \]
  5. Step 5: Integrate Both Sides: Integrating both sides with respect to \( x \): \[ y \sin x = x^2 \sin x + 2\int x \sin x \, dx + C. \] Evaluate \( \int x \sin x \, dx \) using integration by parts with \( u = x \) and \( dv = \sin x \, dx \): \[ \int x \sin x \, dx = -x \cos x + \sin x + C_1. \] Therefore \[ y \sin x = x^2 \sin x + 2(-x \cos x + \sin x) + C = x^2 \sin x - 2x \cos x + 2\sin x + C. \]
  6. Step 6: Apply the Initial Condition: We are given \( y = 0 \) when \( x = \dfrac{\pi}{2} \). Substituting: \[ 0 \cdot \sin\frac{\pi}{2} = \left(\frac{\pi}{2}\right)^2 \sin\frac{\pi}{2} - 2\cdot\frac{\pi}{2}\cos\frac{\pi}{2} + 2\sin\frac{\pi}{2} + C. \] Since \( \sin\dfrac{\pi}{2} = 1 \) and \( \cos\dfrac{\pi}{2} = 0 \): \[ 0 = \frac{\pi^2}{4} - 0 + 2 + C. \] Therefore \[ C = -\frac{\pi^2}{4} - 2. \]
  7. Step 7: Write the Particular Solution: Substituting \( C \) back: \[ y \sin x = x^2 \sin x - 2x \cos x + 2\sin x - \frac{\pi^2}{4} - 2. \] Dividing both sides by \( \sin x \) (where \( \sin x \ne 0 \)): \[ y = x^2 - 2x \cot x + 2 - \left(\frac{\pi^2}{4} + 2\right)\csc x. \]

Answer: The particular solution is \[ y \sin x = x^2 \sin x - 2x \cos x + 2\sin x - \frac{\pi^2}{4} - 2, \] or equivalently \[ y = x^2 - 2x\cot x + 2 - \left(\frac{\pi^2}{4} + 2\right)\csc 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 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 65/3/1 2023 / Section C Q26(a)