Advertisements
Advertisements
Question
Solve the following differential equation:-
\[\frac{dy}{dx} - y = \cos x\]
Advertisements
Solution
We have,
\[\frac{dy}{dx} - y = \cos x\]
\[\text{Comparing with }\frac{dy}{dx} + Py = Q,\text{ we get}\]
\[P = - 1 \]
\[Q = \cos x\]
Now,
\[ I . F . = e^{- 1\int dx} = e^{- x} \]
Solution is given by,
\[y \times I . F . = \int\cos x \times I . F . dx + C\]
\[ \Rightarrow y e^{- x} = \int e^{- x} \cos x dx + C\]
\[ \Rightarrow y e^{- x} = I + C . . . . . \left( 1 \right)\]
Where,

\[ \Rightarrow I = \cos x\int e^{- x} dx - \int\left[ \frac{d}{dx}\left( \cos x \right)\int e^{- x} dx \right]dx\]
\[ \Rightarrow I = - \cos x e^{- x} - \int\sin x e^{- x} dx\]

\[ \Rightarrow I = - \cos x e^{- x} - \sin x\int e^{- x} dx + \int\left[ \frac{d}{dx}\left( \sin x \right)\int e^{- x} dx \right]dx\]
\[ \Rightarrow I = - \cos x e^{- x} + \sin x e^{- x} - \int\left[ \cos x e^{- x} \right]dx\]
\[ \Rightarrow I = - \cos x e^{- x} + \sin x e^{- x} - I ..........\left[\text{Using (2)} \right]\]
\[ \Rightarrow 2I = - \cos x e^{- x} + \sin x e^{- x} \]
\[ \Rightarrow I = \frac{1}{2}\left( - \cos x + \sin x \right) e^{- x} . . . . . . . . \left( 3 \right)\]
From (1) and (3), we get
\[ \therefore y e^{- x} = \left( \sin x - \cos x \right) e^{- x} + C\]
\[ \Rightarrow y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^x\]
APPEARS IN
RELATED QUESTIONS
The differential equation of `y=c/x+c^2` is :
(a)`x^4(dy/dx)^2-xdy/dx=y`
(b)`(d^2y)/dx^2+xdy/dx+y=0`
(c)`x^3(dy/dx)^2+xdy/dx=y`
(d)`(d^2y)/dx^2+dy/dx-y=0`
Find the particular solution of differential equation:
`dy/dx=-(x+ycosx)/(1+sinx) " given that " y= 1 " when "x = 0`
Find the particular solution of differential equation:
`dy/dx=-(x+ycosx)/(1+sinx) " given that " y= 1 " when "x = 0`
If y = P eax + Q ebx, show that
`(d^y)/(dx^2)=(a+b)dy/dx+aby=0`
Find the particular solution of the differential equation dy/dx=1 + x + y + xy, given that y = 0 when x = 1.
Solve the differential equation `dy/dx -y =e^x`
Verify that the given function (explicit or implicit) is a solution of the corresponding differential equation:
y = Ax : xy′ = y (x ≠ 0)
Verify that the given function (explicit or implicit) is a solution of the corresponding differential equation:
xy = log y + C : `y' = (y^2)/(1 - xy) (xy != 1)`
Verify that the given function (explicit or implicit) is a solution of the corresponding differential equation:
x + y = tan–1y : y2 y′ + y2 + 1 = 0
The number of arbitrary constants in the particular solution of a differential equation of third order are ______.
The general solution of the differential equation ex dy + (y ex + 2x) dx = 0 is
Write the solution of the differential equation \[\frac{dy}{dx} = 2^{- y}\] .
Find the particular solution of the differential equation \[\frac{dy}{dx} = \frac{x\left( 2 \log x + 1 \right)}{\sin y + y \cos y}\] given that
\[\frac{dy}{dx} = \frac{\sin x + x \cos x}{y\left( 2 \log y + 1 \right)}\]
\[\frac{dy}{dx} = \left( x + y \right)^2\]
(x + y − 1) dy = (x + y) dx
\[\frac{dy}{dx} - y \tan x = e^x \sec x\]
`y sec^2 x + (y + 7) tan x(dy)/(dx)=0`
\[y - x\frac{dy}{dx} = b\left( 1 + x^2 \frac{dy}{dx} \right)\]
\[\frac{dy}{dx} + y = 4x\]
\[\left( 1 + y^2 \right) + \left( x - e^{- \tan^{- 1} y} \right)\frac{dy}{dx} = 0\]
Find the general solution of the differential equation \[\frac{dy}{dx} = \frac{x + 1}{2 - y}, y \neq 2\]
Find the particular solution of the differential equation \[\frac{dy}{dx} = - 4x y^2\] given that y = 1, when x = 0.
For the following differential equation, find the general solution:- \[\frac{dy}{dx} = \left( 1 + x^2 \right)\left( 1 + y^2 \right)\]
For the following differential equation, find the general solution:- \[\frac{dy}{dx} = \sin^{- 1} x\]
Solve the following differential equation:- `y dx + x log (y)/(x)dy-2x dy=0`
Solve the following differential equation:-
\[\frac{dy}{dx} + 3y = e^{- 2x}\]
Find a particular solution of the following differential equation:- \[\left( 1 + x^2 \right)\frac{dy}{dx} + 2xy = \frac{1}{1 + x^2}; y = 0,\text{ when }x = 1\]
Find the equation of a curve passing through the point (0, 0) and whose differential equation is \[\frac{dy}{dx} = e^x \sin x.\]
Solve the differential equation: `(d"y")/(d"x") - (2"x")/(1+"x"^2) "y" = "x"^2 + 2`
If y(x) is a solution of `((2 + sinx)/(1 + y))"dy"/"dx"` = – cosx and y (0) = 1, then find the value of `y(pi/2)`.
Form the differential equation having y = (sin–1x)2 + Acos–1x + B, where A and B are arbitrary constants, as its general solution.
Solution of `("d"y)/("d"x) - y` = 1, y(0) = 1 is given by ______.
The number of solutions of `("d"y)/("d"x) = (y + 1)/(x - 1)` when y (1) = 2 is ______.
The general solution of ex cosy dx – ex siny dy = 0 is ______.
y = aemx+ be–mx satisfies which of the following differential equation?
Solution of the differential equation `("d"y)/("d"x) + y/x` = sec x is ______.
The solution of the differential equation `("d"y)/("d"x) = "e"^(x - y) + x^2 "e"^-y` is ______.
If the solution curve of the differential equation `(dy)/(dx) = (x + y - 2)/(x - y)` passes through the point (2, 1) and (k + 1, 2), k > 0, then ______.
