Question
Solve the following initial value problems:
$\frac{\text{dy}}{\text{dx}}+\text{y}\cot\text{x}=2\cos\text{x},\text{ y}\Big(\frac{\pi}{2}\Big)=0$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\cot\text{x}=2\cos\text{x},\text{ y}\Big(\frac{\pi}{2}\Big)=0$
$\frac{\text{dy}}{\text{dx}}+\text{y}\cot\text{x}=2\cos\text{x}\ ...(1)$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$
Where $\text{P}=\cot\text{x}$ and $\text{Q}=2\cos\text{x}$
$\therefore\text{ I.F.}=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\cot\text{x dx}}$
$=\text{e}^{\log\sin\text{x}}$
$=\sin\text{x}$
Multiplying both sides of (1) by $\text{I.F.}=\sin\text{x},$ we get
$\sin\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\cot\text{x}\Big)=2\sin\text{x }\cos\text{x}$
$\Rightarrow\sin\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}\cos\text{x}=\sin2\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\sin\text{x}=\int\sin2\text{x dx}+\text{C}$
$\Rightarrow\text{y}\sin\text{x}=-\frac{\cos2\text{x}}{2}+\text{C}\ ...(2)$
Now,
$\text{y}\Big(\frac{\pi}{2}\Big)=0$
$\therefore\ 0\times\sin\frac{\pi}{2}=-\frac{\cos\pi}{2}+\text{C}$
$\Rightarrow\text{C}=-\frac{1}{2}$
Putting the value of C in (2), we get
$\text{y}\sin\text{x}=-\frac{\cos2\text{x}}{2}-\frac{1}{2}$
$\Rightarrow2\text{y}\sin\text{x}=-(1+\cos2\text{x})$
$\Rightarrow2\text{y}\sin\text{x}=-2\cos^2\text{x}$
$\Rightarrow\text{y}=-\cot\text{x}\cos\text{x}$
Hence, $\text{y}=-\cot\text{x}\cos\text{x}$ 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

A bag contains 4 white and 5 black balls. Another bag contains 9 white and 7 black balls. A ball is transferred from the first bag to the second and then a ball is drawn at random from the second bag. Find the probability that the ball drawn is white.
If $(a x+b) e^{y / x}=x$ then show that :$
x^3 \frac{d^2 y}{d x^2}=\left(x \frac{d y}{d x}-y\right)^2
$
A die is thrown 6 times. If ‘getting an odd number’ is a success, what is the probability of
  1. 5 successes?
  2. at least 5 successes?
  3. at most 5 successes?
Let $\vec a = \hat i + 4\hat j + 2\hat k$, $\vec b = 3\hat i - 2\hat j + 7\hat k$ and $\vec c = 2\hat i - \hat j + 4\hat k$. Find a vector $\vec d$ which is perpendicular to both $\vec a$ and $\vec b$, and $\vec c.\vec d = 15$.
Solve the following differential equation:
$\cos^2(\text{x}-2\text{y}) = 1-2\frac{\text{dy}}{\text{dx}}$
If A + B + C = 0, then prove that $\begin{vmatrix}1&\cos\text{C}&\cos\text{B}\\\cos\text{C}&1&\cos\text{A}\\\cos\text{B}&\cos\text{A}&1\end{vmatrix}=0.$
Show that the function $\text{f(x)}=\begin{cases}|2\text{x}-3||\text{x}|, & \text{x}\geq1\\\sin\Big(\frac{\pi\text{x}}{2}\Big),& \text{x}>1\end{cases}$ is continuous but not differentiable at x = 1.
Evaluate the following integrals:
$\int(4\text{x}+2)\sqrt{\text{x}^2+\text{x}+1}\text{ dx}$
An urn contains 4 red and 3 blue balls. Find the probability distribution of the number of blue balls in a random draw of 3 balls with replacement.
Evaluate the following integrals:
$\int\limits^{\pi}_0\text{x}\sin\text{x}\cos^2\text{x dx}$