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
Solve the differential equation cos(x +y) dy = dx hence find the particular solution for x = 0 and y = 0.
The solution of the differential equation dy/dx = sec x – y tan x is:
(A) y sec x = tan x + c
(B) y sec x + tan x = c
(C) sec x = y tan x + c
(D) sec x + y tan x = c
Find the particular solution of the differential equation `e^xsqrt(1-y^2)dx+y/xdy=0` , given that y=1 when x=0
Find the particular solution of the differential equation x (1 + y2) dx – y (1 + x2) dy = 0, given that y = 1 when x = 0.
Verify that the given function (explicit or implicit) is a solution of the corresponding differential equation:
`y sqrt(1 + x^2) : y' = (xy)/(1+x^2)`
Verify that the given function (explicit or implicit) is a solution of the corresponding differential equation:
y = x sin x : xy' = `y + x sqrt (x^2 - y^2)` (x ≠ 0 and x > y or x < -y)
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)`
Show that the general solution of the differential equation `dy/dx + (y^2 + y +1)/(x^2 + x + 1) = 0` is given by (x + y + 1) = A (1 - x - y - 2xy), where A is parameter.
Find the particular solution of the differential equation
`tan x * (dy)/(dx) = 2x tan x + x^2 - y`; `(tan x != 0)` given that y = 0 when `x = pi/2`
The solution of the differential equation \[\frac{dy}{dx} = 1 + x + y^2 + x y^2 , y\left( 0 \right) = 0\] is
The solution of the differential equation \[x\frac{dy}{dx} = y + x \tan\frac{y}{x}\], is
If m and n are the order and degree of the differential equation \[\left( y_2 \right)^5 + \frac{4 \left( y_2 \right)^3}{y_3} + y_3 = x^2 - 1\], then
The solution of the differential equation \[\frac{dy}{dx} - ky = 0, y\left( 0 \right) = 1\] approaches to zero when x → ∞, if
The number of arbitrary constants in the particular solution of a differential equation of third order is
The general solution of the differential equation ex dy + (y ex + 2x) dx = 0 is
(x + y − 1) dy = (x + y) dx
\[\frac{dy}{dx} + y = 4x\]
\[\cos^2 x\frac{dy}{dx} + y = \tan x\]
`x cos x(dy)/(dx)+y(x sin x + cos x)=1`
`(dy)/(dx)+ y tan x = x^n cos x, n ne− 1`
For the following differential equation, find a particular solution satisfying the given condition:- \[\cos\left( \frac{dy}{dx} \right) = a, y = 1\text{ when }x = 0\]
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 (−2, 3), given that the slope of the tangent to the curve at any point (x, y) is `(2x)/y^2.`
Find the equation of a curve passing through the point (0, 1). If the slope of the tangent to the curve at any point (x, y) is equal to the sum of the x-coordinate and the product of the x-coordinate and y-coordinate of that point.
Solution of the differential equation `"dx"/x + "dy"/y` = 0 is ______.
x + y = tan–1y is a solution of the differential equation `y^2 "dy"/"dx" + y^2 + 1` = 0.
Find the general solution of `"dy"/"dx" + "a"y` = emx
If y(t) is a solution of `(1 + "t")"dy"/"dt" - "t"y` = 1 and y(0) = – 1, then show that y(1) = `-1/2`.
Form the differential equation having y = (sin–1x)2 + Acos–1x + B, where A and B are arbitrary constants, as its general solution.
Find the general solution of `("d"y)/("d"x) -3y = sin2x`
Solution of differential equation xdy – ydx = 0 represents : ______.
The solution of `("d"y)/("d"x) + y = "e"^-x`, y(0) = 0 is ______.
The general solution of the differential equation `("d"y)/("d"x) = "e"^(x^2/2) + xy` is ______.
The differential equation for which y = acosx + bsinx is a solution, is ______.
The solution of the differential equation `("d"y)/("d"x) = "e"^(x - y) + x^2 "e"^-y` is ______.
The solution of the differential equation ydx + (x + xy)dy = 0 is ______.
Find the general solution of the differential equation `x (dy)/(dx) = y(logy - logx + 1)`.
Find the general solution of the differential equation:
`(dy)/(dx) = (3e^(2x) + 3e^(4x))/(e^x + e^-x)`
