Question
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=\cos\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=\cos\text{x}\ \dots(1)$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$
where
$\text{P}=\tan\text{x}$
$\text{Q}=\cos\text{x}$
$\therefore$ I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\tan\text{xdx}}$
$=\text{e}^{\log|\sec\text{x}|}=\sec\text{x}$
Multiplying both sides of (1) by $\sec\text{x},$ we get
$\sec\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}\Big)=\cos\text{x}\times\sec\text{x}$
$\Rightarrow\ \sec\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}\sec\text{x}\tan\text{x}=1$
Integrating both sides with respect to x, we get
$\text{y}\sec\text{x}=\int\text{dx + C}$
$\Rightarrow\ \text{y}\sec\text{x}=\text{x + C}$
Hence, $\text{y}\sec\text{x}=\text{x + C}$ is the required solution.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Find the points of discontinuity, if any of the following function:
$\text{f(x)}=​​\begin{cases}-2,&\text{if }\text{ x}\leq-1\\2\text{x},&\text{if }-1<\text{x}\leq1\\2,&\text{if }\text{ x}>1\end{cases}$
Using definite intergeals, find the area of the circle $x^2+ y^2 = a^2.$
Verify Lagrange's mean value theorem for the following function on the indicated intervals. find a point 'c' in the indicated interval as stated by the Lagrange's mean value theorem.
$f(x) = 2x - x^2$ on $[0, 1]$
Discuss the continuity of the following functions at the indicated point:
$\text{f}\text{(x)}=\begin{cases}\frac{{1}-\text{x}^\text{n}}{1-\text{x}}, & \text{x} \neq1\\\text{n}-1, & \text{ x} = 1\end{cases}\text{ n }\in\ \text{N at x}=1$
Find the area enclosed by the curve $y = |x - 1|$ and $y = -|x - 1 | + 1.$
Find the coordinates of the point where the line $\frac{\text{x}-2}{3}=\frac{\text{y}+1}{4}=\frac{\text{z}-2}{2}$ intersect the plane x - y + z - 5 = 0. Also, find the angle between the line and the plane.
Solve the following differential equation:$\frac{\text{dy}}{\text{dx}}+\text{y}=\text{e}^{-2\text{x}}$
Find the shortest distance between the following pairs of lines whose cartesian equation are:
$\frac{\text{x}-3}{1}=\frac{\text{y}-5}{-2}=\frac{\text{z}-7}{1}$ and $\frac{\text{x}+1}{7}=\frac{\text{y}+1}{-6}=\frac{\text{z}+1}{1}$
Solve the following initial value problems:
$\frac{\text{dy}}{\text{dx}}-\frac{\text{y}}{\text{x}}+\text{cosec}\frac{\text{y}}{\text{x}}=0,\text{y}(1)=0$
Find the equation of a plane which passes through the point (3, 2, 0) and contains the line $\frac{\text{x}-3}{1}=\frac{\text{y}-6}{5}=\frac{\text{z}-4}{4}$