Question
Solve: $\frac{d y}{d x}+\frac{y}{x}=\cos x +\frac{\sin x}{x}$

Answer

We have,
$\frac{d y}{d x}+\left(\frac{1}{x}\right) y=\cos x+\frac{\sin x}{x} \ldots$
This is a linear differential equation of the form
$\frac{d y}{d x}+ Py = Q$, where $P =\frac{1}{x}$ and $Q =\cos x +\frac{\sin x}{x}$
$\therefore$ I. $F=e^{\int P d x}=e^{\int \frac{1}{x} d x}=e^{\log x}=x$
Multiplying both sides of $(i)$ by $I.F. = x,$ we get
$x \frac{d y}{d x}+y=x \cos x+\sin x$
Integrating both sides with respect to $x,$ we get
$y x=\int(x \cos x+\sin x) d x+C\left[\right.$ Using: $y=( I.F. )=\int Q( I.F. \left.) d x+C\right]$
$\Rightarrow xy =\int \underset{I}{x} \cos xdx +\int \sin x dx + C$
$\Rightarrow x y=x \sin x-\int \sin x d x+\int \sin x d x+C\ [$Integrating $1^{st}$ integral by parts$]$
$\Rightarrow x y=x \sin x+C$
$\Rightarrow y=\sin x+\frac{C}{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

From a deck of cards, three cards are drawn on by one without replacement. Find the probability that each time it is a card of spade.
Evaluate $\triangle=\begin{vmatrix}0&\sin\alpha&-\cos\alpha\\-\sin\alpha&0&\sin\beta\\\cos\alpha&-\sin\beta&0 \end{vmatrix}$
Evaluate the following integrals:
$\int\Big(\frac{1}{\log\text{x}}-\frac{1}{(\log\text{x})^2}\Big)\text{dx}$
Evaluate the following integrals:  $\int\limits^{\frac{\pi}{2}}_{-\frac{\pi}{2}}\frac{-\frac{\pi}{2}}{\sqrt{\cos\text{x}\sin^2\text{x}}}\text{ dx}$
Let R be relation defined on the set of natural number N as follows: $\text{R}=\{(\text{x},\text{y}):\text{x}\in\text{N},\ \text{y}\in\text{N},\ 2\text{x}+\text{y}=41\}.$ Find the domain and range of the relation R. Also verify whether R is reflexive, symmetric and transitive.
Evaluate: $\int \cos \text{4 x} \cos 3\text{x dx}$
Two systems of rectangular axis have the same origin. If a plane cuts them at distances a, b, c and a′, b′, c′, respectively, from the origin, prove that $\frac{1}{\text{a}^2}+\frac{1}{\text{b}^2}+\frac{1}{\text{c}^2}=\frac{1}{\text{a}'^2}+\frac{1}{\text{b}'^2}+\frac{1}{\text{c}'^2}.$
Evaluate the following integrals:
$\int\frac{\sin(2+3\log\text{x})}{\text{x}}\text{ dx}$
Evaluate the following integrals:$\int\frac{\text{x}+\sin\text{x}}{1+\cos\text{x}}\text{dx}$
Find the matrix A such that
$\begin{bmatrix}2&1&3\end{bmatrix}\begin{bmatrix}-1&0&-1\\-1&1&0\\0&1&1\end{bmatrix}\begin{bmatrix}1\\0\\-1\end{bmatrix}=\text{A}$