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\tan\text{x}\sec^2\text{x}\sqrt{1-\tan^2\text{x}}\text{ dx}$
Find the points of discontinuity, if any of the following function:
$\text{f(x)}=\begin{cases}2\text{x},&\text{ if}\text{ x}<0\\0,&\text{if }0\leq\text{x}\leq1\\4\text{x},&\text{if }\text{ x}>1\end{cases}$
Find the maximum and the minimum values, if any, without using derivatives of the following functions:
f(x) = 4x- 4x + 4 on R.
Evaluate:

$\int\limits_0^{\frac{\pi}{2}}$ log sin x dx.

If xy + yx = (x + y)x+y, find $\frac{\text{dy}}{\text{dx}}$
Find the largest possible area of a right angled triangle whose hypotenuse is 5cm long.
If $\text{y}=\text{a}\{\text{x}+\sqrt{\text{x}^2+1}\}^\text{n}+\text{b}\{\text{x}-\sqrt{\text{x}^2+1}\}^{-\text{n},}$ prove that $(\text{x}^2-1)\frac{\text{d}^2\text{y}}{\text{dx}^2}+\text{x}\frac{\text{dy}}{\text{dx}}-\text{n}^2\text{y}=0.$
A company manufactures two types of novelty souvenirs made of plywood. Souvenirs of type A require 5 minutes each for cutting and 10 minutes each for assembling. Souvenirs of type B require 8 minutes each for cutting and 8 minutes each for assembling. There are 3 hours 20 minutes available for cutting and 4 hours for assembling. The profit is Rs. 5 each for type A and Rs. 6 each for type B souvenirs. How many souvenirs of each type should be manufactured for maximum profit.
Three cards are cdrawn successively with replacement from a well shffled deck of 52 cards. A random variable X denotes the number of hearts in the three cards drawn. Determine the probability distribution of X.
If $\text{A}=\begin{bmatrix}3&-5\\-4&2\end{bmatrix},$ then find A2 - 5A - 14I. Hence, obtain A3.