Solveeit Logo

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 cos2xdydx+y=tanx{{\cos }^{2}}x\dfrac{dy}{dx}+y=\tan x
A). y=t1+ce1y=t-1+c{{e}^{-1}} where t=tanxt=\tan x
B). y=t+1+ce1y=t+1+c{{e}^{-1}} where t=tanxt=\tan x
C). y=t1ce1y=t-1-c{{e}^{-1}} where t=tanxt=\tan x
D). None of these

Explanation

Solution

In this question make the equation in the form of a differential equation and then find the value of PP and QQ . 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 yy 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:
cos2xdydx+y=tanx\Rightarrow {{\cos }^{2}}x\dfrac{dy}{dx}+y=\tan x
Divide both side by cos2x{{\cos }^{2}}x to simplify the term:
cos2xcos2xdydx+ycos2x=tanxcos2x\Rightarrow \dfrac{{{\cos }^{2}}x}{{{\cos }^{2}}x}\dfrac{dy}{dx}+\dfrac{y}{{{\cos }^{2}}x}=\dfrac{\tan x}{{{\cos }^{2}}x}
dydx+y1cos2x=tanxcos2x\Rightarrow \dfrac{dy}{dx}+y\cdot \dfrac{1}{{{\cos }^{2}}x}=\dfrac{\tan x}{{{\cos }^{2}}x}
As we know that 1cos2x=sec2x\dfrac{1}{{{\cos }^{2}}x}={{\sec }^{2}}x
dydx+sec2xy=tanxsec2x\Rightarrow \dfrac{dy}{dx}+{{\sec }^{2}}x\cdot y=\tan x\cdot {{\sec }^{2}}x
Hence it is in the form of dydx+Py=Q\dfrac{dy}{dx}+P\cdot y=Q
Where P=sec2xP={{\sec }^{2}}x and Q=tanxsec2xQ=\tan x\cdot {{\sec }^{2}}x
Therefore the integrating factor will be given by:
I.F=ePdx\Rightarrow I.F={{e}^{\int{Pdx}}}
Now we will find out the value of PP and QQ
To find the value of PP :
I.F=ePdx\Rightarrow I.F={{e}^{\int{Pdx}}}
I.F=esec2xdx\Rightarrow I.F={{e}^{\int{{{\sec }^{2}}xdx}}}
I.F=etanx\Rightarrow I.F={{e}^{\tan x}}
The solution of the equation is given by:
y×I.F=Q×(I.F)dx+c\Rightarrow y\times I.F=\int{Q\times \left( I.F \right)dx+c}
y×etanx=tanxsec2x×etanxdx+c\Rightarrow y\times {{e}^{\tan x}}=\int{\tan x\cdot {{\sec }^{2}}x\times {{e}^{\tan x}}dx+c}
Let us assume that:
tanx=t\tan x=t
On differentiating it on both sides we get
ddxtanx=ddxt\Rightarrow \dfrac{d}{dx}\tan x=\dfrac{d}{dx}t
sec2x=dtdx\Rightarrow {{\sec }^{2}}x=\dfrac{dt}{dx}
sec2xdx=dt\Rightarrow {{\sec }^{2}}xdx=dt
Now put the values that we have assumed:
yet=tetdt+c\Rightarrow y{{e}^{\operatorname{t}}}=\int{t\cdot {{e}^{\operatorname{t}}}dt+c}
Let I=tetdtI=\int{t\cdot {{e}^{\operatorname{t}}}dt}
To integrate the given term II apply integration by parts that is:
f(t)g(t)dt=f(t)g(t)dx(ddtf(t)g(t)dx)dx\Rightarrow \int{f(t)g(t)dt=f(t)}\int{g(t)dx-\int{\left( \dfrac{d}{dt}f(t)\int{g(t)dx} \right)}}dx
Where f(t)=tf(t)=t and g(t)=etg(t)={{e}^{\operatorname{t}}}
I=tetdt(ddt(t)etdt)dt\Rightarrow I=t\int{{{e}^{\operatorname{t}}}dt-\int{\left( \dfrac{d}{dt}(t)\int{{{e}^{\operatorname{t}}}dt} \right)dt}}
I=tet(etdt)dt\Rightarrow I=t{{e}^{\operatorname{t}}}-\int{\left( \int{{{e}^{\operatorname{t}}}dt} \right)}dt
I=tetetdt\Rightarrow I=t{{e}^{\operatorname{t}}}-\int{{{e}^{\operatorname{t}}}dt}
I=tetet\Rightarrow I=t{{e}^{\operatorname{t}}}-{{e}^{\operatorname{t}}}
Taking et{{e}^{\operatorname{t}}} in common we get:
I=et(t1)\Rightarrow I={{e}^{t}}(t-1)
Therefore the solution will be:
yet=et(t1)+c\Rightarrow y{{e}^{\operatorname{t}}}={{e}^{\operatorname{t}}}\left( \operatorname{t}-1 \right)+c
Divide the whole term by et{{e}^{t}} we get:
yetet=et(t1)et+cet\Rightarrow y\dfrac{{{e}^{\operatorname{t}}}}{{{e}^{\operatorname{t}}}}=\dfrac{{{e}^{\operatorname{t}}}\left( \operatorname{t}-1 \right)}{{{e}^{\operatorname{t}}}}+\dfrac{c}{{{e}^{\operatorname{t}}}}
y=(t1)+cet\Rightarrow y=\left( \operatorname{t}-1 \right)+\dfrac{c}{{{e}^{\operatorname{t}}}}
y=(t1)+cet\Rightarrow y=\left( \operatorname{t}-1 \right)+c{{e}^{-\operatorname{t}}}
Hence option (A)(A) is correct as we have got the value y=t1+ce1y=t-1+c{{e}^{-1}} where t=tanxt=\tan x.

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.