Question
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$

Answer

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

Evaluate the following integrals:
$\int\frac{\text{x}^2-1}{\text{x}^4+1}\ \text{dx}$
Evaluate the following integrals as limit of sum:
$\int\limits^{3}_{1}\big(2\text{x}^2+5\text{x}\big)\text{dx}$
Find the intervals in which the following functions are increasing or decreasing. $f(x) = x^4 - 4x^3 - 4x^2 + 15$
There are three urns $A, B$, and $C.$ Urn A contains $4$ red balls and $3$ black balls. urn $B$ contains $5$ red balls and $4$ black balls. Urn $C$ contains $4$ red and $4$ black balls. One ball is drawn from each of these urns. What is the probability that $3$ balls drawn consists of $2$ red balls and a black ball?
Integrate the function: $\frac{1}{\sqrt{(x-a)(x-b)}}$
Evaluate the following intregals:
$\int\frac{\sin2\text{x}}{(1+\sin\text{x})(2+\sin\text{x})}\text{ dx}$
Find the general solution of $\text{y}^2\text{dx}+(\text{x}^2-\text{xy}+\text{y}^2)\text{dy}=0.$
A dietician mixes together two kinds of food in such a way that the mixture contains at least $6$ units of vitamin $A, 7$ units of vitamin $B, 11$ units of vitamin $C$ and $9$ units of vitamin $D.$ The vitamin contents of $1\ kg$ of food $X$ and $1\ kg$ of food $Y$ are given below:
 
Vitamin
$A$
Vitamin
$B$
Vitamin
$C$
Vitamin
$D$
Food $X$
$1$ $1$ $1$ $2$
Food $Y$
$2$ $1$ $3$ $1$
One kg food $X$ costs $Rs. 5,$ whereas one $kg$ of food $Y$ costs $Rs. 8.$
Find the least cost of the mixture which will produce the desired diet.
Let f: N $\rightarrow$ N be defined by
$ \text{f(n)} = \begin{cases} \frac{\text{n + 1}}{2}, & \text{if n is odd}\\ \frac{\text{n}}{2},& \text{if n is even}\\ \end{cases}$for all n $\in$ N.
Find whether the function f is bijective.
A furniture trader deals in only two items – chairs and tables. He has ₹ 50,000 to invest and a space to store at most 35 items. A chair costs him ₹ 1000 and a table costs him ₹ 2000 The trader earns a profit of ₹ 150 and ₹ 250 on a chair and table, respectively. Formulate the above problem as an LPP to maximise the profit and solve it graphically.