For each of the differential equations given in Exercises 1 to 12, find the general solution: \(x\dfrac{dy}{dx}+y-x+xy\ cot\ x=0(x\ne 0)\)
CBSE Class 12 Maths · Differential Equations
CBSE Class 12 Maths · Differential Equations
Imagine you are trying to find a hidden number that changes as you move along. A differential equation is like a rule that tells you how fast that number changes. To find the actual number, we use a clever trick — we multiply both sides by a special helper value. This helper tidies up the messy equation into something we can easily reverse. Like using the right key to open a lock, the correct helper unlocks the answer neatly.
Answer: The general solution is \[ y\, x\sin x = \sin x - x\cos x + C, \] or equivalently \[ y = \frac{1}{x} - \cot x + \frac{C}{x\sin x}. \]
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 \( \mu = e^{\int P\, dx} \). This turns the left-hand side into the derivative of a product \( \dfrac{d}{dx}(y \cdot \mu) \), which can then be integrated directly. The given equation is not yet in standard form, so our first job is to divide through by \( x \) to isolate \( \dfrac{dy}{dx} \), and then identify \( P(x) \) and \( Q(x) \).
Standard linear form: \( \dfrac{dy}{dx} + P(x)\, y = Q(x) \). Integrating factor: \( \text{I.F.} = e^{\int P\, dx} \). General solution: \( y \cdot \text{I.F.} = \int Q \cdot \text{I.F.}\, dx + C \).
The general solution is \[ y\, x\sin x = \sin x - x\cos x + C, \] or equivalently \[ y = \frac{1}{x} - \cot x + \frac{C}{x\sin x}. \]
A common mistake is forgetting to divide the whole equation by \( x \) first, which leads to a wrong \( P(x) \) and an incorrect integrating factor. Always reduce the equation to the exact form \( \dfrac{dy}{dx} + P(x)y = Q(x) \) (coefficient of \( \frac{dy}{dx} \) equal to 1) before reading off \( P \) and \( Q \).
The general solution is \[ y\, x\sin x = \sin x - x\cos x + C, \] or equivalently \[ y = \frac{1}{x} - \cot x + \frac{C}{x\sin x}. \]
One common mistake: forgetting to group the \( y \)-terms together before identifying \( P(x) \) — students sometimes miss the \( \cot x \) part and write \( P(x) = \frac{1}{x} \) only, leading to a wrong integrating factor and an incorrect general solution.
Answer: The general solution is \[ y\, x\sin x = \sin x - x\cos x + C, \] or equivalently \[ y = \frac{1}{x} - \cot x + \frac{C}{x\sin x}. \]
Question: Find the general solution of the differential equation: \[x\frac{dy}{dx} + y - x + xy\tan x = 0, \quad x \ne 0.\]
Solution: Rewrite the equation by dividing throughout by \(x\): \[\frac{dy}{dx} + \frac{y}{x} + y\tan x = 1.\] This can be written as \[\frac{dy}{dx} + y\left(\frac{1}{x} + \tan x\right) = 1.\] This is of the standard linear form \(\frac{dy}{dx} + P(x)y = Q(x)\) where \(P(x) = \frac{1}{x} + \tan x\) and \(Q(x) = 1\). Compute the integrating factor: \[\text{IF} = e^{\int P(x)\,dx} = e^{\int\left(\frac{1}{x} + \tan x\right)dx}.\] Evaluate the integral: \[\int\left(\frac{1}{x} + \tan x\right)dx = \ln|x| + \ln|\sec x| = \ln|x\sec x|.\] So the integrating factor is \[\text{IF} = e^{\ln|x\sec x|} = x\sec x.\] Multiply both sides of the standard form by \(x\sec x\): \[x\sec x\frac{dy}{dx} + y\sec x(1 + x\tan x) = x\sec x.\] The left side is exactly \(\frac{d}{dx}(y \cdot x\sec x)\), so: \[\frac{d}{dx}(xy\sec x) = x\sec x.\] Integrate both sides: \[xy\sec x = \int x\sec x\,dx.\] Use integration by parts with \(u = x\) and \(dv = \sec x\,dx\): \[\int x\sec x\,dx = x\ln|\sec x + \tan x| - \int \ln|\sec x + \tan x|\,dx.\] Keeping the result in implicit form with the constant of integration \(C\): \[xy\sec x = x\ln|\sec x + \tan x| - \int \ln|\sec x + \tan x|\,dx + C.\] Dividing throughout by \(x\sec x\) (i.e., multiplying by \(\cos x / x\)) gives the general solution in the form \[y = \cos x\ln|\sec x + \tan x| - \frac{\cos x}{x}\int \ln|\sec x + \tan x|\,dx + \frac{C\cos x}{x}.\]
Answer: \(xy\sec x = x\ln|\sec x + \tan x| - \int\ln|\sec x + \tan x|\,dx + C\)
Question: Find the general solution of the differential equation: \[\frac{dy}{dx} + 2xy = 4x.\]
Solution: The equation is already in the standard linear form \(\frac{dy}{dx} + P(x)y = Q(x)\) with \(P(x) = 2x\) and \(Q(x) = 4x\). Compute the integrating factor: \[\text{IF} = e^{\int 2x\,dx} = e^{x^2}.\] Multiply both sides by \(e^{x^2}\): \[e^{x^2}\frac{dy}{dx} + 2x e^{x^2} y = 4x e^{x^2}.\] The left side is \(\frac{d}{dx}\left(y e^{x^2}\right)\), so: \[\frac{d}{dx}\left(y e^{x^2}\right) = 4x e^{x^2}.\] Integrate both sides: \[y e^{x^2} = \int 4x e^{x^2}\,dx.\] For the right-hand side, let \(t = x^2\) so \(dt = 2x\,dx\): \[\int 4x e^{x^2}\,dx = 2\int e^{t}\,dt = 2e^{t} + C = 2e^{x^2} + C.\] Therefore: \[y e^{x^2} = 2e^{x^2} + C.\] Dividing both sides by \(e^{x^2}\): \[y = 2 + Ce^{-x^2}.\]
Answer: \(y = 2 + Ce^{-x^2}\)
Question: Find the general solution of the differential equation \(x\,\frac{dy}{dx} + y - x^2 + xy\cot x = 0\), where \(x \ne 0\).
Answer: The general solution is \[y\,x\sin x = -x^2\cos x + 2x\sin x + 2\cos x + C\] or equivalently \[y = \frac{-x^2\cos x + 2x\sin x + 2\cos x + C}{x\sin x}\]