Question
Question: Solve the differential equation \[x\dfrac{dy}{dx}-y=2{{x}^{2}}\operatorname{cosec}2x\] (a) y = c...
Solve the differential equation
xdxdy−y=2x2cosec2x
(a) y = cx + x ln tan x
(b) y = cx + x ln cot x
(c) y = cx – y ln tan x
(d) y = cx – y ln cot x
Solution
Hint: First of all, divide the whole equation by x. Now, it is in the form dxdy+P(x)y=Q(x). Solve it by solving y(I.F)=∫Q(I.F)dx where I.F=e∫Pdx. So, find the I.F and substitute in the above equation and solve it.
Complete step-by-step answer:
We have to solve the differential equation.
xdxdy−y=2x2cosec2x
Let us consider the differential equation given in the question.
xdxdy−y=2x2cosec2x
By dividing x on both the sides of the above equation, we get,
dxdy−xy=2xcosec2x
Now, the above equation is of the form dxdy+Py=Q where P and Q are functions of x. By comparison, we get, P=x−1 and Q=2xcosec2x.
To solve this equation, we will first find its integrating factor which is:
I.F=e∫Pdx
By substituting P=x−1, we get,
I.F=e∫x−1dx
We know that
∫x1dx=lnx
So, we get,
I.F=e−lnx
We know that,
alogb=bloga
So, we get,
I.F=x−lne
We know that ln e = 1, so we get,
I.F=x−1=x1
Now, the equation is solved by using
y(I.F)=∫Q(I.F)dx
By substituting the value of I.F=x1 and Q=2xcosec2x, we get,
xy=∫x2xcosec2xdx
xy=∫2cosec2x dx
xy=2∫cosec2x dx.....(i)
Now, let us find the value of ∫cosec2x dx.
We know that cosecθ=sinθ1. By using this, we get,
I=∫cosec2x dx=∫sin2x1dx
We know that sin2θ=2sinθcosθ. By using this, we get,
I=∫2sinxcosx1dx
By multiplying cos x on both numerator and denominator of the above equation on the RHS, we get,
I=∫2sinxcosx1×cosxcosxdx
We know that, cosθsinθ=tanθ and cosθ1=secθ. By using this, we get,
I=∫2tanxsec2xdx....(ii)
Let us take tan x = t. By differentiating both the sides, we get,
sec2xdx=dt
So, by substituting x in terms of t in equation (ii), we get,
I=∫2tdt
We know that ∫x1dx=lnx+c. By using this, we get,
I=2lnt+c
By substituting t = tan x, we get,
I=2ln(tanx)+c
So, we get,
∫cosec2xdx=2ln(tanx)+c
Now, by substituting the value of ∫cosec2x dx in equation (i), we get,
xy=2∫cosec2x dx
xy=2[2ln(tanx)+c]
xy=ln(tanx)+c
By multiplying x on both the sides, we get,
y=cx+xln(tanx)
Therefore, option (a) is the right answer.
Note: In these types of questions, first of all, it is very important to identify the form and convert it into the standard linear differential equation of the first order that is in dxdy+Py=Q like we have first divided the whole equation by x to convert it into this form. Also, remember that I.F or integrating factor is e∫Pdx and not e∫Qdx. So, always compare the values properly and then only write them.