Question
Question: The solution of \[\dfrac{dy}{dx}-y\tan x={{e}^{x}}\sec x\] is: (a) \[y{{e}^{x}}=\cos x+c\] (b) \...
The solution of dxdy−ytanx=exsecx is:
(a) yex=cosx+c
(b) ycosx=ex+c
(c) ysinx=ex+c
(d) yex=sinx+c
Solution
Hint: First of all consider the given equation and convert it 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 I.F and substitute in the above equation and solve it.
Complete step-by-step answer:
In this question, we have to solve the differential equation
dxdy−ytanx=exsecx
Let us consider the differential equation given in the question
dxdy−ytanx=exsecx
We can also write the above equation as
dxdy+(−tanx)y=exsecx
Now, the above equation is of the form dxdy+Py=Q where P and Q are functions of x. By comparison, we get, P = – tan x and Q=exsecx.
To solve this equation, we will first find the integration factor that is,
I.F=e∫Pdx
By substituting the value of P = – tan x, we get,
I.F=e∫−tanx dx
We know that ∫tanθdθ=−mcosθ, so by using this, we get,
I.F=elncosx
We know that alogb.bloga, by using this, we get,
I.F=(cosx)lne
We know that ln e = 1. So, we get,
I.F=cosx
Now, the equation is solved by using
y(I.F)=∫Q(I.F)dx
By substituting the value of I.F = cos x and Q=exsecx, we get,
y(cosx)=∫exsecxcosxdx
We know that, cosθ.secθ=1. So, we get,
y(cosx)=∫exdx
We know that ∫exdx=ex+c. By using this, we get,
y(cosx)=ex+c
ycosx=ex+c
Hence, option (b) is the right answer.
Note: In this type of question, 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 dxdy+Py=Q. Also, remember that I.F or integrating factor is e∫Pdx and not e∫Qdx. So, always compare the values properly and then only substitute them to get the correct answer.