Question
Find the general solution of the differential equation $\frac{\text{dy}}{\text{dx}}-{\text{y}}=\cos\text{x}$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}-{\text{y}}=\cos\text{x}$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{P}\text{y}=\text{Q}$
Where P = -1 and $\text{Q}=\cos\text{x}$
$\therefore\text{ I}.\text{F}.=\text{e}^{\int{\text{P}\text{dx}}}$
$=\text{e}^{-\int\text{dx}}$
$=\text{e}^{-\text{x}}$
Multiplying both sides of (1) by $\text{I.F.}=\text{e}^{-\text{x}},$ we get
$\text{e}^{-\text{x}}\Big(\frac{\text{dy}}{\text{dx}}-\text{y}\Big)=\text{e}^{-\text{x}}\cos\text{x}$
$\Rightarrow\text{e}^{-\text{x}}\frac{\text{dy}}{\text{dx}}-\text{e}^{-\text{x}}\text{y}=\text{e}^{-\text{x}}\cos\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\text{e}^{-\text{x}}=\int \ \text{e}^{-\text{x}} \cos\text{x}\text{ dx} \ + \ \text{C}$
$\Rightarrow\text{ye}^{-\text{x}}=\text{I}+\text{C} \ ....(2)$
Here,
$\text{I}=\int\text{e}^{-\text{x}}\cos\text{x}\text{ dx}\ ..(3)$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin{\text{x}}-\int\big(-\text{e}^{-\text{x}}\sin\text{x}\big)\text{dx}$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin\text{x}+\int {\text{e}^{-\text{x}}}\sin\text{x}\text{ dx}$
$\Rightarrow\text{I}= \text{e}^{-\text{x}}\sin \text{x}-\text{e}^{-\text{x}}\cos\text{x}-\int[(-\text{e}^{-\text{x}})\times(-\cos\text{x})]\text{dx}$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin\text{x}-\text{e}^{-\text{x}}\cos\text{x}-\int\text{e}^{-\text{x}}\cos\text{x}\text{ dx}$
$\Rightarrow\text{I}=\text{e}^{-\text{x}}\sin\text{x} - \text{e}^{-\text{x}}\cos\text{x} - \text{I}$ [From (3)]
$ \Rightarrow2\text{I}=\text{e}^{-\text{x}}(\sin\text{x}-\cos\text{x})$
$\Rightarrow\text{I}=\frac{\text{e}^{-\text{x}}}{2}(\sin\text{x}-\cos{\text{x}})\ ...(4)$
From (2) and (4) we get
$\Rightarrow\text{y}\text{e}^{-\text{x}}=\frac{\text{e}^{-\text{x}}}{2}(\sin\text{x} - \cos\text{x})+\text{C}$
$\Rightarrow\text{y}=\frac{1}{2}(\sin\text{x} - \cos\text{x}) +\text{C}\text{e}^{\text{x}}$
Hence, $\text{y}=\frac{1}{2}(\sin\text{x} - \cos\text{x}) +\text{C}\text{e}^{\text{x}}$ is the requires solution.

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

A given quantity of metal is to be cast into a half cylinder with a rectangular base and semicircular ends. Show that in order that the total surface area may be minimum the ratio of the length of the cylinder to the diameter of its semi-circular ends is $\pi:(\pi+2)$.
Solve the following differential equation:
$(\text{x}^2+\text{y}^2)\frac{\text{dy}}{\text{dx}}=8\text{x}^2-3\text{xy}+2\text{y}^2$
Solve the following initial value problems:
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=2\text{x}+\text{x}^2\tan\text{x},\text{ y}(0)=1$
Prove that the points having position vectors $\hat{\text{i}}+2\hat{\text{j}}+3\hat{\text{k}},\ 3\hat{\text{i}}+4\hat{\text{j}}+7\hat{\text{k}}$ and $-3\hat{\text{i}}-2\hat{\text{j}}-5\hat{\text{k}}$ are collinear.
If $\text{x}=\sin\text{t},\text{y}=\sin\text{pt}$ prove that $(1-\text{x}^2)\frac{\text{d}^2\text{y}}{\text{dx}^2}-\text{x}\frac{\text{dy}}{\text{dx}}+\text{p}^2\text{y}=0$
The probability of a shooter hitting a target is $\frac{3}{4}.$ How many minimum number of times must he/she fire so that the probability of hitting the target at least once is more than 0.99?
An insurance company insured $3000$ scooters, $4000$ cars and $5000$ trucks. The probabilities of the accident involving a scooter, a car and a truck are $0.02, 0.03$ and $0.04$ respectively. One of the insured vehicles meet with an accident. Find the probability that it is a,
  1. Scooter.
  2. Car.
  3. Truck.
Evaluate the follwing intregals:
$\int\frac{1}{\text{x}(\text{x}^4-1)}\ \text{dx}$
Find $\frac{\text{dy}}{\text{dx}}$ in the following cases:
$\text{x}^{\frac{2}{3}}+\text{y}^{\frac{2}{3}}=\text{a}^{\frac{2}{3}}$
A small manufacturing firm produces two types of gadgets A and B, which are first processed in the foundry, then sent to the machine shop for finishing. The number of man-hours of labour required in each shop for the production of each unit of A and B, and the number of man-hours the firm has available per week are as follows:
Gadget
Fondry
Machine-shop
A
B
10
6
5
4
Firm's capacity per week
1000
600
The profit on the sale of A is Rs. 30 per unit as compared with Rs. 20 per unit of B. The problem is to determine the weekly production of gadgets A and B, so that the total profit is maximized. Formulate this problem as a LPP.