Question
Solve the following differential equation:
$\frac{\text{dy}}{\text{dx}}=\text{y}\tan\text{x}-2\sin\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}=\text{y}\tan\text{x}-2\sin\text{x}$
$\frac{\text{dy}}{\text{dx}}-\text{y}\tan\text{x}=-2\sin\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}=-2\sin\text{x}$
$\therefore$ I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{-\int\tan\text{xdx}}$
$=\text{e}^{-\log|\sec\text{x}|}=\cos\text{x}$
Multiplying both sides of (1) by $\cos\text{x},$ we get
$\cos\text{x}\Big(\frac{\text{dy}}{\text{dx}}-\text{y}\tan\text{x}\Big)=-2\sin\text{x}\times\cos\text{x}$
$\Rightarrow\ \cos\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}\sin\text{x}=-\sin2\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\cos\text{x}=-\int\sin2\text{x dx + C}$
$\Rightarrow\ \text{y}\cos\text{x}=\frac{\cos2\text{x}}{2}+\text{C}$
$\Rightarrow\ \text{y}\cos\text{x}=\frac{1-2\sin^2\text{x}}{2}+\text{C}$
$\Rightarrow\ \text{y}\cos\text{x}=-\sin^2\text{x}+\frac{1}{2}+\text{C}$
$\Rightarrow\ \text{y}\cos\text{x}=-\sin^2\text{x}+\text{K}$ $\Big($where $\text{K}=\frac{1}2+\text{c}\Big)$
$\Rightarrow\ \text{y}=\sec\text{x}\big(-\sin^2\text{x}+\text{K}\big)$
Hence, $\text{y}=\sec\text{x}\big(-\sin^2\text{x}+\text{K}\big)$ 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

Evaluate the following integrals:
$\int\frac{\text{x}^2\sin^{-1}\text{x}}{(1-\text{x}^2)^{\frac{3}{2}}}\text{dx}$
Find the values of a so that the function
$\text{f}\text{(x)}=\begin{cases}\text{ax}+5, &\text{if}\text{ x}\leq2\\\text{x}-1, &\text{if}\text{ x}>2\end{cases}$ is continuous at x = 2.
$\text{Evaluate} \int\limits^{3}_{1} (e^{2} - 3x + x^{2} + 1)\text{dx as a limit of a sum.} $
A manufacturer makes two types of toys A and B. Three machines are needed for this purpose and the time (in minutes) required for each toy on the machines is given below:
Type of Toys
Machine
 
I
II
III
A
12
18
6
B
6
0
9
Each machine is available for a maximum of 6 hours per day. If the profit on each toy of type A is Rs. 7.50 and that on each toy of type B is Rs. 5, show that 15 toys of type A and 30 toys of type B should be manufactured in a day to get maximum profit.
If $\text{A} = \begin{bmatrix} 1 & 2 & 5 \\ 1 & -1 & -1 \\ 2 & 3 & -1 \end{bmatrix}$ find $A^{–1}$ and hence solve the system of equations $x + 2y + 5z = 10, x – y – z = – 2$ and $2x + 3y – z = – 11.$
If $\text{x}-\text{e}^{\frac{\text{x}}{\text{y}}},$ prove that $\frac{\text{dy}}{\text{dx}}=\frac{\text{x}-\text{y}}{\text{x}\log\text{x}}$
Find a point on the parabola $y = (x - 4)^2,$ where the tangent is parallel to the chord joining $(4, 0)$ and $(5, 1).$
Given $\text{A}=\begin{bmatrix}2&2&-4\\-4&2&-4\\2&-1&5\end{bmatrix},\text{B}=\begin{bmatrix}1&-1&0\\2&3&4\\0&1&2\end{bmatrix}$ , find $BA$ and use this to solve the system of equations $y + 2z = 7, x - y = 3, 2x + 3y + 4z = 17$
The pressure $p$ and the volume $v$ of a gas are connected by the relation $pv^{1.4} =$ const. Find the percentage error in $p$ corresponding to a decrease of $1/2\%$ in $v.$
An experiment succeeds twice as often as it fails. Find the probability that in the next 6 trials there will be at least 4 successes.