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

Find the inverse of the following matrices by using elementry row transformation:$\begin{bmatrix} 3 & 0 & -1 \\ 2 & 3 & 0 \\ 0 & 4 & 1 \end{bmatrix}$
Let $A =\{1,2,3\}$ and $R =\left\{( a , b ): a , b \in A\right\}.$ and $\left|a^2-b^2\right| \leq 5$. Write $R$ as set of ordered pairs. Mention whether $R$ is
$i$. reflexive
$ii$. symmetric
$iii$. transitive
Give reason in each case.
Find the area bounded by the cutve $y = 4 - x^2$ and the line $y = 0, y = 3$.
Solve the following linear programming problem for minimisation by graphical method :
Objective function
$
\begin{aligned}Z = 5 x + y \\
constraints
3 x + 5 y & \geq 1 5 \\
5 x + 2 y & \leq 1 0 \\
x \geq 0 , y & \geq 0
\end{aligned}
$
If a young man drives his scooter at a speed of 25km/hr, he has to spend Rs. 2 per km on petrol. If he drives the scooter at a speed of 40km/hr, it produces air pollution and increases his expenditure on petrol to Rs. 5 per km. He has a maximum of Rs. 100 to spend on petrol and travel a maximum distance in one hour time with less polution. Express this problem as an LPP and solve it graphically. What value do you find here.
Find the particular solution of $\text{e}^{\frac{\text{dy}}{\text{dx}}}=\text{x}+1,$ that $\text{y}=3,$ when $\text{x}=0.$
The function f(x) is befined as follows: $\text{f(x)}=\begin{cases}\text{x}^2+\text{ax}+\text{b},&0\leq\text{x}<2\\3\text{x}+2,&2\leq\text{x}\leq4\\2\text{ax}+5\text{b},&4<\text{x}\leq8\end{cases}$ if is continuous on [0, 8] find the value of a and b.
Using Lagrange's mean value theorem, prove that
$(\text{b}-\text{a})\sec^2\text{a}<\tan\text{b}-\tan\text{a}<(\text{b}-\text{a})\sec^2\text{b}$
where $0<\text{a}<\text{b}<\frac{\pi}{2}.$
If $\text{x}=\text{a}(\cos\text{t}+\log\tan\frac{\text{t}}{2})\ \text{and}\ \text{y}=\text{a}(\sin\text{t}),$evaluate $\frac{\text{d}^2\text{y}}{\text{dx}^2}\ \text{at}\ \text{t}=\frac{\pi}{3}.$
Solve the following system of equations by matrix method:
$3x + 7y = 4$
$x + 2y = -1$