Question
Mathematics Question on Differential equations
Find the general solution: (1+x2)dy+2xy dx=cot x dx (x=0)
Answer
(1+x2)dy+2xy dx=cot x dx
⇒$$\frac {dy}{dx}+1+x22xy = 1+x2cot x
This equation is a linear differential equation of the form:
dxdy + py = Q (where p = 1+x22x and Q = 1+x2cot x)
Now, I.F. = e∫pdx = e\int$$\frac {2x}{1+x^2}dx = elog(1+x2) = 1+x2.
The general solution of the given differential equation is given by the relation,
y(I.F.) = ∫(Q×I.F.)dx + C
⇒y(1+x2) = ∫[1+x2cot x.(1+x2)]dx + C
⇒y(1+x2) = ∫cot x dx + C
⇒y(1+x2) = log |sin x| + C
⇒y = 1+x2log ∣sin x∣+1+x2c
⇒y = (1+x2)-1 log |sin x| + c(1+x2)-1