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 shortest distance between the lines
$\vec{\text{r}}=\hat{\text{i}}+2\hat{\text{j}}+3\hat{\text{k}}+\lambda\big(\hat{\text{i}}-3\hat{\text{j}}+2\hat{\text{k}}\big)$ and $\vec{\text{r}}=4\hat{\text{i}}+5\hat{\text{j}}+6\hat{\text{k}}+\mu\big(2\hat{\text{i}}+3\hat{\text{j}}+\hat{\text{k}}\big)$
Find the equation of the plane passing through the point (2, 3, 1), given that the direction ratios of the normal to the plane are proportional to 5, 3, 2.
Suppose a girl throw a die. If she gets 1 or 2, she tosses a coin three times and notes the number of tails. If she gets 3, 4, 5 or 6, she tosses a coin once and notes whether a 'head' or 'tail' is obtained exactly one 'tail', what is the probability that she threw 3, 4, 5 or 6 with the die?
Solve the following system of equations by matrix method:$\frac{2}{\text{x}}+\frac{3}{\text{y}}+\frac{10}{\text{z}}=4,\frac{4}{\text{x}}-\frac{6}{\text{y}}+\frac{5}{\text{z}}=1,\frac{6}{\text{x}}+\frac{9}{\text{y}}-\frac{20}{\text{z}}=2:\text{x},\text{y},\text{z}\neq0$
Evaluate the following:
$\sin\Big(\sec^{-1}\frac{17}{8}\Big)$
A hospital dietician wishes to find the cheapest combination of two foods, $A$ and $B,$ that contains at least $0.5$ milligram of thiamin and at least $600$ calories. Each unit of $A$ contains $0.12$ milligram of thiamin and $100$ calories, while each unit of $B$ contains $0.10$ milligram of thiamin and $150$ calories. If each food costs $10$ paise per unit, how many units of each should be combined at a minimum cost?
Using integration, find the area of the triangular region whose sides have the equations y = 2x + 1, y = 3x + 1 and x = 4.
Without using the concept of inverse of a matrix, find the matrix $\begin{bmatrix}\text{x}&\text{y}\\\text{z}&\text{u}\end{bmatrix}$ such that $\begin{bmatrix}5&-7\\-2&3\end{bmatrix}\begin{bmatrix}\text{x}&\text{y}\\\text{z}&\text{u}\end{bmatrix}=\begin{bmatrix}-16&-6\\7&2\end{bmatrix}$
Evaluate the following definite integral as limit of sum:
$\int\limits^{\text{b}}_{\text{a}}\text{x dx}$
Find $\frac{\text{dy}}{\text{dx}},$ when
$\text{x}=\frac{\text{e}^\text{t}+\text{e}^{-\text{t}}}{2}\text{ and y}=\frac{\text{e}^\text{t}-\text{e}^\text{-t}}{2}$