Question
Solve the following differential equation:
$\text{x}\frac{\text{dy}}{\text{dx}}+2\text{y}=\text{x}\cos\text{x}$

Answer

Here, $\frac{\text{dy}}{\text{dx}}+\frac{2\text{y}}{\text{x}}=\cos\text{x}$

It is a linear differential equation. Comparing it with,

$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$

$\text{P}=\frac{2}{\text{x}},\text{Q}=\cos\text{x}$

I.F. $=\text{e}^{\int\text{Pdx}}$

$=\text{e}^{2\int\frac{1}{\text{x}}\text{dx}}$

$=\text{e}^{2\log|\text{x}|}$

$=\text{x}^2$

Solution of the equation is given by,

$\text{y}\times(\text{I.F.}=\int\text{Q}\times(\text{I.F.})\text{dx + C}$

$\text{y}(\text{x}^2)=\int\cos\text{x}(\text{x}^2)\text{dx + C}$

$\text{yx}^2=\int\text{x}^2\cos\text{xdx + C}$

$=\text{x}^2\int\cos\text{x}-\int(2\text{x}\times\int\cos\text{xdx})\text{dx + C}$

Usind integration by parts

$\text{yx}^2=\text{x}^2\sin\text{x}-\int2\text{x}\sin\text{xdx + C}$

$=\text{x}^2\sin\text{x}-2\big[\text{x}\times\int\sin\text{xdx}-\int(1\times\int\sin\text{xdx})\text{dx}\big]+\text{C}$

$=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\int\cos\text{xdx + C}$

$\text{yx}^2=\text{x}^2\sin\text{x}+2\text{x}\cos\text{x}-2\sin\text{x + C}$

$\text{y}=\sin\text{x}+\frac{2}{\text{x}}\cos\text{x}-\frac{2}{\text{x}^2}\sin\text{x}+\frac{\text{C}}{\text{x}^2}$

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

In a culture, the bacteria count is 1,00,000. The number is increased by 10% in 2 hours. In how many hours will the count reach 2,00,000, if the rate of growth of bacteria is proportional to the number present?
Find the inverse of the following matrices and verify that A-1 A = I3.

$\begin{bmatrix}1 & 3 & 3 \\ 1 & 4 & 3 \\ 1 & 3 & 4 \end{bmatrix}$

Find the angle between the following pairs of lines:

$\frac{\text{x}-1}{2}=\frac{\text{y}-2}{3}=\frac{\text{z}-3}{-3}$ and $\frac{\text{x}+3}{-1}=\frac{\text{y}-5}{8}=\frac{\text{z}-1}{4}$

Show that the matrix $\text{A}=\begin{bmatrix}2&3\\1&2\end{bmatrix}$ satisfies the equation A3 - 4A2 + A = 0.
Using integration, find the area of the region in the first quadrant enclosed by the x-axis, the line y = x and the circle x2 + y2 = 32.
Evaluate the following integrals as limit of sum:
$\int\limits^{2}_{0}\big(\text{x}^2+2\big)\text{dx}$
If $|\vec{\text{a}}|=13,\big|\vec{\text{b}}\big|=5$ and $\vec{\text{a}}.\vec{\text{b}}=60,$ then find $\big|\vec{\text{a}}\times\vec{\text{b}}\big|.$
Using vectors, find the area of the triangle ABC with vertices A(1, 2, 3), B(2, –1, 4) and C(4, 5, –1).
Find the area bounded by the parabola x = 8 + 2y - y2, the y-axis and the line y = -1 and y = 3
A firm manufactures two types of products A and B and sells them at a profit of Rs 2 on type A and Rs 3 on type B. Each product is processed on two machines M1 and M2. Type A requires one minute of processing time on M1 and two minutes of M2; type B requires one minute on M1 and one minute on M2. The machine M1 is available for not more than 6 hours 40 minutes while machine M2 is available for 10 hours during any working day. Formulate the problem as a LPP.