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

The pressure p and the volume v of a gas are connected by the relation pv1.4 = const. Find the percentage error in p corresponding to a decrease of 1/2% in v.
Using matrices, solve the following system of equations:$x + 2y - 3z = 6$
$3x + 2y - 2z =3$
$2x - y + z = 2$
At what points will be tangents to the curve $y = 2x^3 - 15x^2 + 36x - 21$ be parallel to $x-$axis$?$ Also, find the equations of the tangents to the curve at these points.
If $x^x + y^x = 1$, prove that $\frac{\text{dy}}{\text{dx}}=-\frac{\text{y}(\text{y}+\text{x}\log\text{y})}{\text{x}(\text{y}\log\text{x}+\text{x})}$
Draw the rough sketch of $y^2 + 1 = x, x < 2$. Find the area enclosed by the curve and the line $x = 2$.
Find the points on the curve $\frac{\text{x}^2}{4}+\frac{\text{y}^2}{25}=1$ at which the tangent are parallel to the
  1. x-axis
  2. y-axis.
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.
In a culture, the bacteria count is 100000. The number is increased by 10% in 2 hours. In how many hours will the count reach 200000, if the rate of growth of bacteria is proportional to the number present?
For each of the differential equations given in find a particular solution satisfying the given condition:
$(1+\text{x}^2)\frac{\text{dy}}{\text{dx}}+2\text{xy}=\frac{1}{1+\text{x}^2};\text{y}=0\ \text{when x}=1$
A gardener has supply of fertilizer of type I which consists of 10% nitrogen and 6% phosphoric acid and type II fertilizer which consists of 5% nitrogen and 10% phosphoric acid. After testing the soil conditions, he finds that he needs at least 14kg of nitrogen and 14kg of phosphoric acid for his crop. If the type I fertilizer costs 60 paise per kg and type II fertilizer costs 40 paise per kg, determine how many kilograms of each fertilizer should be used so that nutrient requirements are met at a minimum cost. What is the minimum cost?