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

Find the value of $\tan^{-1} \Bigg(\frac{\text{x}}{\text{y}}\Bigg)-\tan^{-1}\Bigg(\frac{\text{x - y}}{\text{x + y}}\Bigg)$
Solve the following differential equations:
$\sqrt{1+\text{x}^2}\ \text{dy}+\sqrt{1+\text{y}^2}\ \text{dx}=0$
Write the intercepts made by the plane 2x − 3y + 4z = 12 on the coordinate axes.
An electronic assembly consists of two subsystems, say, A and B. From previous testing procedures, the following probabilities are assumed to be known:
P(A fails) = 0.2
P(B fails alone) = 0.15
P(A and B fail) = 0.15
Evaluate the following probabilities:
  1. P(A fails|B has failed)
  2. P(A fails alone)
Find the value of $\lambda$ so that the following vectors are coplanar:
$\vec{\text{a}}=\hat{\text{i}}+2\hat{\text{j}}-3\hat{\text{k}},\vec{\text{b}}=3\hat{\text{i}}+\lambda\hat{\text{j}}+\hat{\text{k}},\vec{\text{c}}=\hat{\text{i}}+2\hat{\text{j}}+2\hat{\text{k}}$
Evaluate: $\int \frac{x+2}{\sqrt{x^2+2 x-1}} d x$
Discuss the applicability of the Rolle's theorem for the following function on the indicated interval
$\text{f}(\text{x})=\text{x}^{\frac{2}{3}}\text{ on }[-1,1]$
Evaluate the following integrals:
$\int\frac{1}{(\text{x}-1)\sqrt{\text{x}^2+1}}\text{ dx}$
Given A = {2, 3, 4}, B = {2, 5, 6, 7}. Construct an example of each of the following:
  1. An injective mapping from A to B.
  2. A mapping from A to B which is not injective.
  3. A mapping from B to A.
Express the following matrix as the sum of a symmetric and a skew symmetric matrix:$ \begin{bmatrix} 1 & 3 & 5 \\ - 6 & 8 & 3 \\ - 4 & 6 & 5 \end{bmatrix} $