Question
Question: Solve the differential equation \[{{\cos }^{2}}x\dfrac{dy}{dx}+y=\tan x\] A). \[y=t-1+c{{e}^{-1}}\...
Solve the differential equation cos2xdxdy+y=tanx
A). y=t−1+ce−1 where t=tanx
B). y=t+1+ce−1 where t=tanx
C). y=t−1−ce−1 where t=tanx
D). None of these
Solution
In this question make the equation in the form of a differential equation and then find the value of P and Q . To find these values first of all find out the integrating factor and then find out the solution. Apply integration by parts to find out the value in terms of y and then check which option is correct among them.
Complete step-by-step solution:
By definition, a differential equation is an equation that contains one or more functions and their derivatives. The derivatives of a function define the rate of change of the function at a given position. Differential equations are commonly utilised in biology, physics, engineering, and other sciences. The differential equation's major goal is to investigate the solutions that satisfy the equations as well as the properties of the solutions.
A differential function is an equation that contains a function's derivative. A differential equation is defined as an equation involving the derivative (derivatives) of the dependent variable with regard to the independent variable (variables) in calculus. Partially derivatives and regular derivatives can both be found in a differential equation. The differential equation helps us illustrate a relationship between the changing quantity and the change in another quantity, and the derivative represents nothing more than a rate of change.
Now according to the question we have given the term:
⇒cos2xdxdy+y=tanx
Divide both side by cos2x to simplify the term:
⇒cos2xcos2xdxdy+cos2xy=cos2xtanx
⇒dxdy+y⋅cos2x1=cos2xtanx
As we know that cos2x1=sec2x
⇒dxdy+sec2x⋅y=tanx⋅sec2x
Hence it is in the form of dxdy+P⋅y=Q
Where P=sec2x and Q=tanx⋅sec2x
Therefore the integrating factor will be given by:
⇒I.F=e∫Pdx
Now we will find out the value of P and Q
To find the value of P :
⇒I.F=e∫Pdx
⇒I.F=e∫sec2xdx
⇒I.F=etanx
The solution of the equation is given by:
⇒y×I.F=∫Q×(I.F)dx+c
⇒y×etanx=∫tanx⋅sec2x×etanxdx+c
Let us assume that:
tanx=t
On differentiating it on both sides we get
⇒dxdtanx=dxdt
⇒sec2x=dxdt
⇒sec2xdx=dt
Now put the values that we have assumed:
⇒yet=∫t⋅etdt+c
Let I=∫t⋅etdt
To integrate the given term I apply integration by parts that is:
⇒∫f(t)g(t)dt=f(t)∫g(t)dx−∫(dtdf(t)∫g(t)dx)dx
Where f(t)=t and g(t)=et
⇒I=t∫etdt−∫(dtd(t)∫etdt)dt
⇒I=tet−∫(∫etdt)dt
⇒I=tet−∫etdt
⇒I=tet−et
Taking et in common we get:
⇒I=et(t−1)
Therefore the solution will be:
⇒yet=et(t−1)+c
Divide the whole term by et we get:
⇒yetet=etet(t−1)+etc
⇒y=(t−1)+etc
⇒y=(t−1)+ce−t
Hence option (A) is correct as we have got the value y=t−1+ce−1 where t=tanx.
Note: You should know that in real life, ordinary differential equations are used to compute the movement or flow of electricity, the motion of an object to and fro, such as a pendulum, and to illustrate thermodynamics ideas. In medical terminology, they're also used to visualise the progression of diseases in graphical form.