Question
Solve the differential equation $x\frac{\text{dy}}{\text{d}x} + \text{y} = x \cos x + \sin x,$ given that y = 1 when $x = \frac{\pi}{2}.$

Answer

The given equation can be written as
$\frac{\text{dy}}{\text{dx}} + \frac{\text{y}}{\text{x}} = \cos \text{x} + \frac{\sin \text{x}}{\text{x}}$
$\text{I.F.} = \text{e}^{\int \frac{1}{\text{x}} \text{dx}} = \text{e}^{\log \text{x}} = \text{x}$
$\therefore$ Solution is
$\text{y. x} = \int \text{(x} \cos \text{x} + \sin \text{x}) \text{dx + c}$
$\Rightarrow \text{x . y} = \text{x } \sin \text{x + c}$
$\text{or} \text{ y} = \sin \text{x} + \frac{\text{c}}{\text{x}}$
$\text{when x} = \frac{\pi}{2}, \text{y} = 1, \text{we get c = 0}$
Required solution is $\text{y} = \sin \text{x}$

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

Solve the following differential equations:$\cos\text{x}\cos\text{y}\frac{\text{dy}}{\text{dx}}=-\sin\text{x}\sin\text{y}$
$\text{If A} = \begin{bmatrix} 2 & 0 & 1 \\ 2 & 1 & 3 \\ 1 & -1 & 0 \end{bmatrix} \text{find A}^{2} - \text{5 A + 4I} $ and hence find a matrix X such that $\text{A}^{2} - \text{5A + 4I + X = 0}$
If $\text{y}\sqrt{\text{x}^2+1}=\log\Big(\sqrt{\text{x}^2+1}-\text{x}\Big),$ prove that $\big(\text{x}^2+1\big)\frac{\text{dx}}{\text{dx}}+\text{xy}+1=0$
Three schools A, B and C organised a mela for collecting funds for helping the rehabilitation of flood victims. They sold hand made fans, mats and plates from recycled material at a cost of ₹ 25, 100 and ₹ 50 each. The number of articles sold are given below:
School A B C
Article
Hand - fans 40 25 35
Mats 50 40 50
Plates 20 30 40
Find the funds collected by each school separately by selling the above articles. Also find the total funds collected for the purpose.
Write one value generated by the above situation.
Find the angle between the lines $\vec{\text{r}}=3\hat{\text{i}}-2{\hat{\text{j}}}+6\hat{\text{k}}+\lambda(2\hat{\text{i}}+{\hat{\text{j}}}+2\hat{\text{k}})$ and $\vec{\text{r}}=(2\hat{\text{i}}-5\hat{\text{k}})+\mu(6\hat{\text{i}}+3{\hat{\text{j}}}+2\hat{\text{k}}).$
Find the angle between the follwing pairs of lines$: \vec{\text{r}}=\big(4\hat{\text{i}}-\hat{\text{j}}\big)+\lambda\big(\hat{\text{i}}+2\hat{\text{j}}-2\hat{\text{k}}\big)$ and $\vec{\text{r}}=\hat{\text{i}}-\hat{\text{j}}+2\hat{\text{k}}-\mu\big(2\hat{\text{i}}+4\hat{\text{j}}-4\hat{\text{k}}\big)$
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$
Differentiate the following functions with respect to x:
$\frac{\text{x}^2(1-\text{x}^2)}{\cos2\text{x}}$
A diet for a sick person must contain at least $4000$ units of vitamins, $50$ units of minerals and $1400$ of calories. Two foods $A$ and $B,$ are available at a cost of $Rs. 4$ and $Rs. 3$ per unit respectively. If one unit of $A$contains $200$ units of vitamin, $1$ unit of mineral and $40$ calories and one unit of food $B$ contains $100$ units of vitamin, $2$ units of minerals and $40$ calories, find what combination of foods should be used to have the least cost?
Solve the following initial value problems:
$\text{x}\frac{\text{dy}}{\text{dx}}+\text{y}=\text{x}\cos\text{x}+\sin\text{x},\text{ y}\Big(\frac{\pi}{2}\Big)=1$