Find the particular solution of the differential equation
\(x\dfrac{dy}{dx}+y+\dfrac{1}{1+x^2}=0,\) given that \( y(1) = 0.\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine you have a machine that mixes two ingredients together. A differential equation is like a recipe telling you how the mix changes. Sometimes the recipe is messy, so you multiply both sides by a clever number to tidy it up. Once tidy, you can work backwards to find the original mixture. Using a special starting clue — that when \( x = 1 \), \( y = 0 \) — you pin down exactly which mixture fits, giving the unique answer.
Answer: \[ xy + \tan^{-1} x = \frac{\pi}{4}, \quad\text{or equivalently}\quad y = \frac{1}{x}\left(\frac{\pi}{4} - \tan^{-1} x\right). \]
A first-order linear differential equation has the standard form \( \dfrac{dy}{dx} + P(x)\,y = Q(x) \), where \( P \) and \( Q \) 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 factor makes the left-hand side become the exact derivative of \( y \times \text{(I.F.)} \), so we can integrate both sides directly. The given equation is not yet in standard form, so our first job is to rearrange it. After finding the general solution (which contains an arbitrary constant \( C \)), we use the condition \( y(1) = 0 \) to find \( C \), giving the particular solution.
Standard form: \( \dfrac{dy}{dx} + P(x)\,y = Q(x) \). Integrating factor: \( \text{I.F.} = e^{\int P\,dx} \). Solution: \( y \cdot \text{I.F.} = \int Q \cdot \text{I.F.}\, dx + C \).
\[ xy + \tan^{-1} x = \frac{\pi}{4}, \quad\text{or equivalently}\quad y = \frac{1}{x}\left(\frac{\pi}{4} - \tan^{-1} x\right). \]
A common mistake is forgetting to divide the whole equation by \( x \) before identifying \( P(x) \), which leads to a wrong integrating factor. Always convert the equation to the exact form \( \dfrac{dy}{dx} + P(x)y = Q(x) \) with coefficient \( 1 \) on \( \dfrac{dy}{dx} \) first.
\[ xy + \tan^{-1} x = \frac{\pi}{4}, \quad\text{or equivalently}\quad y = \frac{1}{x}\left(\frac{\pi}{4} - \tan^{-1} x\right). \]
One common mistake: forgetting to divide the entire original equation by \( x \) before identifying \( P(x) \) and \( Q(x) \) — if you read off \( P(x) = 1 \) instead of \( P(x) = \frac{1}{x} \), you compute the wrong integrating factor and every subsequent step is incorrect.
Answer: \[ xy + \tan^{-1} x = \frac{\pi}{4}, \quad\text{or equivalently}\quad y = \frac{1}{x}\left(\frac{\pi}{4} - \tan^{-1} x\right). \]
Question: Find the particular solution of the differential equation \[ x\,\frac{dy}{dx} - y = x^2\sin x, \] given that \( y(\pi) = 0 \).
Solution: Step 1 — Rewrite in standard linear form by dividing throughout by \( x \): \[ \frac{dy}{dx} - \frac{1}{x}\,y = x\sin x. \] Here \( P(x) = -\dfrac{1}{x} \) and \( Q(x) = x\sin x \). Step 2 — Find the integrating factor: \[ \mu = e^{\int -\frac{1}{x}\,dx} = e^{-\ln|x|} = \frac{1}{x}. \] Step 3 — Multiply both sides by \( \dfrac{1}{x} \): \[ \frac{1}{x}\,\frac{dy}{dx} - \frac{y}{x^2} = \sin x. \] The left side is \( \dfrac{d}{dx}\!\left(\dfrac{y}{x}\right) \), so \[ \frac{d}{dx}\!\left(\frac{y}{x}\right) = \sin x. \] Step 4 — Integrate both sides with respect to \( x \): \[ \frac{y}{x} = \int \sin x\,dx = -\cos x + C. \] Hence the general solution is \[ y = x(-\cos x + C) = -x\cos x + Cx. \] Step 5 — Apply the initial condition \( y(\pi) = 0 \): \[ 0 = -\pi\cos\pi + C\pi = -\pi(-1) + C\pi = \pi + C\pi. \] Solving: \( C\pi = -\pi \), so \( C = -1 \). Step 6 — Write the particular solution: \[ y = -x\cos x + (-1)\cdot x = -x\cos x - x = -x(\cos x + 1). \]
Answer: \( y = -x(1 + \cos x) \)
Question: Find the particular solution of the differential equation \[ (1 + x^2)\,\frac{dy}{dx} + 2xy = \frac{1}{1+x^2}, \] given that \( y(0) = 1 \).
Solution: Step 1 — Rewrite in standard linear form by dividing throughout by \( (1+x^2) \): \[ \frac{dy}{dx} + \frac{2x}{1+x^2}\,y = \frac{1}{(1+x^2)^2}. \] Here \( P(x) = \dfrac{2x}{1+x^2} \) and \( Q(x) = \dfrac{1}{(1+x^2)^2} \). Step 2 — Find the integrating factor: \[ \mu = e^{\int \frac{2x}{1+x^2}\,dx} = e^{\ln(1+x^2)} = 1 + x^2. \] Step 3 — Multiply both sides by \( (1+x^2) \): \[ (1+x^2)\,\frac{dy}{dx} + 2x\,y = \frac{1}{1+x^2}. \] The left side is \( \dfrac{d}{dx}\!\left[(1+x^2)\,y\right] \), so \[ \frac{d}{dx}\!\left[(1+x^2)\,y\right] = \frac{1}{1+x^2}. \] Step 4 — Integrate both sides with respect to \( x \): \[ (1+x^2)\,y = \int \frac{1}{1+x^2}\,dx = \tan^{-1} x + C. \] Hence the general solution is \[ y = \frac{\tan^{-1} x + C}{1+x^2}. \] Step 5 — Apply the initial condition \( y(0) = 1 \): \[ 1 = \frac{\tan^{-1}(0) + C}{1 + 0} = \frac{0 + C}{1} = C. \] So \( C = 1 \). Step 6 — Write the particular solution: \[ y = \frac{\tan^{-1} x + 1}{1 + x^2}. \]
Answer: \( y = \dfrac{1 + \tan^{-1} x}{1 + x^2} \)
Question: Find the particular solution of the differential equation \[ x\frac{dy}{dx} + y = \frac{2}{1+x^2}, \] given that \( y(1) = 0 \).
Answer: The particular solution is \[ xy = 2\tan^{-1} x - \frac{\pi}{2}, \quad \text{or equivalently} \quad y = \frac{1}{x}\left(2\tan^{-1} x - \frac{\pi}{2}\right). \]