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

Differential equation $\frac{\text{d}^2\text{y}}{\text{dx}^2}+\text{y}=0,\text{y}(0)=0,\text{y}'(0)=1$Function $\text{y}=\sin\text{x}$
Solve the system of linear equation, using matrix method $5x + 2y = 3; 3x + 2y = 5$
Solve:
$\sin\Big(\sin^{-1}\frac{1}{5}+\cos^{-1}\text{x}\Big)=1$
In the following, determine the values of constants involved in the definition so that the given function is continuous:
$\text{f(x)}=\begin{cases}\frac{\sin2\text{x}}{5\text{x}},&\text{if }\text{ x}\neq0\\3\text{k},&\text{if }\text{ x}=0\end{cases}$ 
Of the students in a college, it is known that $60\%$ reside in hostel and $40\%$ are day scholars $($not residing in hostel$)$. Previous year results report that $30\%$ of all students who reside in hostel attain. $A$ grade and $20\%$ of day scholars attain $A$ grade in their annual examination. At the end of year, one student is chosen at random from the college and he has an $A$ grade, what is the probability that the student is a hostlier?
In the following cases, determine whether the given planes are parallel or perpendicular, and in case they are neither, find the angles between them. $2x + y + 3z - 2$ and $x - 2y + 5 = 0$
Find X and Y, if:
  1. $\text {X + Y} = \begin{bmatrix}7&0\\2&5\end{bmatrix} \text {and}\ \text{X} - \text{Y} = \begin{bmatrix}3&0\\0&3\end{bmatrix}$
  2. $2\text {X }+ 3\text {Y} = \begin{bmatrix}2&3\\4&0\end{bmatrix} \text {and}\ 3\text{X }+\text{ 2Y} = \begin{bmatrix}-2&-2\\-1&5\end{bmatrix}$
Evalute the following integrals: $\int\frac{\text{a}}{\text{b}+\text{ce}^\text{x}}\text{dx}$
Evalute the following integrals:
$\int\frac{\cos\text{x}}{\cos(\text{x}-\text{a})}\text{dx}$
Write the coordinates of the point on the curve $\text{x}=\text{e}^\text{t}\cos\text{t},\text{y}=\text{e}^\text{t}$ where the tangent line makes an angle $\frac{\pi}{4}$ with x-axis.