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

Answer

Here, $\frac{\text{dy}}{\text{dx}}+\text{y}=\cos\text{x}$
It is a linear differential equation. Comparing the equation by,
$\frac{\text{dy}}{\text{dx}}+\text{Py}=\text{Q}$
$\text{P}=1,\text{Q}=\cos\text{x}$
I.F. $=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\text{dx}}$
$=\text{e}^{\text{x}}$
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{e}^{\text{x}})=\int(\cos\text{x})(\text{e}^{\text{x}})+\text{C}_1\ \dots(\text{i})$
Let $\text{I}=\int\text{e}^{\text{x}}\cos\text{xdx}$
$=\cos\text{x}\times\int\text{e}^{\text{x}}\text{dx}\int(\sin\text{x}\int\text{e}^{\text{x}}\text{dx})\text{dx + C}_2$
Using integration by parts
$\text{I}=\text{e}^{\text{x}}\cos{\text{x}}+\int\sin\text{xe}^{\text{x}}\text{dx + C}$
$=\text{e}^{\text{x}}\cos\text{x}+\big[\sin\text{x}\int\text{e}^{\text{x}}\text{dx}-\int(\cos\text{x}\int\text{e}^{\text{x}}\text{dx})\text{dx}\big]+\text{C}_2$
$\text{I}=\text{e}^{\text{x}}\cos\text{x}+\sin\text{e}^\text{x}-\text{I}+\text{C}_2$
$2\text{I}=\text{e}^{\text{x}}(\cos\text{x}+\sin\text{x})+\text{C}_2$
$\text{I}=\frac{\text{e}^{\text{x}}}{2}(\cos\text{x}+\sin\text{x})+\frac{\text{C}_2}{2}$
$\text{I}=\frac{\text{e}^{\text{x}}}{2}(\cos\text{x}+\sin\text{x})+\text{C}_3$
Putting I in equation (i),
$\text{ye}^{\text{x}}=\frac{\text{e}^{\text{x}}}{2}(\cos\text{x}+\sin{\text{x}})+\text{C}_1+\text{C}_3$
$\text{ye}^{\text{x}}=\frac{\text{e}^{\text{x}}}2(\cos\text{x}+\sin\text{x})+\text{C}$
$\text{y}=\frac{1}2(\cos\text{x}+\sin\text{x})+\text{Ce}^{-\text{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 intervals in which the following functions are increasing or decreasing.
f(x) = 8 + 36x + 3x2 -2x3
If $\text{A}=\begin{bmatrix}0&1&0\\0&0&1\\\text{p}&\text{q}&\text{r}\end{bmatrix},$ and I is the identity matrix of order 3, show that A3 = pI + qA + rA2.
Evaluate the following integrals:
$\int\frac{(\text{x}^2+1)(\text{x}^2+4)}{(\text{x}^2+3)(\text{x}^2-5)}\ \text{dx}$
A producer has 30 and 17 units of labour and capital respectively which he can use to produce two type of goods x and y. To produce one unit of x, 2 units of labour and 3 units of capital are required. Similarly, 3 units of labour and 1 unit of capital is required to produce one unit of y. If x and y are priced at Rs. 100 and Rs. 120 per unit respectively, how should be producer use his resources to maximize the total revenue? Solve the problem graphically.
Show that the minimum of Z occurs at more than two points.
Maximize Z = -x + 2y subject to the constraints: $x \geq 3,x + y \geq 5,x + 2y \geq 6,y \geq 0$.
Let f : N → N be a function as f(x) = 9x2 + 6x - 5. Show that f : N → S, where S is the range of f, is invertible. Find the inverse of f and hence find f-1(43) and f-1(163).
Evaluate the following intergrals:
$\int\text{e}^\text{ax}\cos\text{bx dx}$
Evaluate the following integrals:
$\int_{0}^\limits{{\pi}}\frac{1}{5+3\cos\text{x}}\text{ dx}$
Find the points o local maxima or local minima, if any, of the following functions, using the first derivatives test. Also, find the local maximum or local minimum values, as the case may be: 
$\text{f}(\text{x})=\sin\text{x}-\cos(\text{x}), 0\leq\text{x}\leq2\pi$
$ \text{Find}\ \frac{1}{2}(\text{A}+\text{A}')\ \text{and}\frac{1}{2}(\text{A}-\text{A}'),\ \text{when}\ \text{A}=\begin{bmatrix}0&\text{a}&\text{b}\\-\text{a}&0&\text{c}\\-\text{b}&-\text{c}&0\end{bmatrix}$