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.
If `y=sqrt(sinx+sqrt(sinx+sqrt(sinx+..... oo))),` then show that `dy/dx=cosx/(2y-1)`
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 differential equation representing the curve y = cx + c2.
Find the particular solution of the differential equation x (1 + y2) dx – y (1 + x2) dy = 0, given that y = 1 when x = 0.
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 = cos x + C : y′ + sin x = 0
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)`
The number of arbitrary constants in the particular solution of a differential equation of third order are ______.
Find the general solution of the differential equation `dy/dx + sqrt((1-y^2)/(1-x^2)) = 0.`
Find the differential equation of the family of concentric circles `x^2 + y^2 = a^2`
How many arbitrary constants are there in the general solution of the differential equation of order 3.
The general solution of the differential equation \[\frac{dy}{dx} = \frac{y}{x}\] is
The solution of the differential equation \[\frac{dy}{dx} + \frac{2y}{x} = 0\] with y(1) = 1 is given by
Solution of the differential equation \[\frac{dy}{dx} + \frac{y}{x}=\sin x\] is
The solution of x2 + y2 \[\frac{dy}{dx}\]= 4, is
The solution of the differential equation \[\left( 1 + x^2 \right)\frac{dy}{dx} + 1 + y^2 = 0\], is
\[\frac{dy}{dx} + \frac{y}{x} = \frac{y^2}{x^2}\]
\[\frac{dy}{dx} + 5y = \cos 4x\]
\[\cos^2 x\frac{dy}{dx} + y = \tan x\]
Solve the differential equation:
(1 + y2) dx = (tan−1 y − x) dy
Solve the following differential equation:- \[x \cos\left( \frac{y}{x} \right)\frac{dy}{dx} = y \cos\left( \frac{y}{x} \right) + x\]
Solve the following differential equation:-
\[x\frac{dy}{dx} + 2y = x^2 \log x\]
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.
Find the differential equation of all non-horizontal lines in a plane.
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.
Solve:
`2(y + 3) - xy (dy)/(dx)` = 0, given that y(1) = – 2.
tan–1x + tan–1y = c is the general solution of the differential equation ______.
The integrating factor of the differential equation `("d"y)/("d"x) + y = (1 + y)/x` is ______.
The general solution of `("d"y)/("d"x) = 2x"e"^(x^2 - y)` is ______.
The solution of the differential equation `("d"y)/("d"x) + (2xy)/(1 + x^2) = 1/(1 + x^2)^2` is ______.
Number of arbitrary constants in the particular solution of a differential equation of order two is two.
The solution of the differential equation `("d"y)/("d"x) = (x + 2y)/x` is x + y = kx2.
Find the particular solution of the following differential equation, given that y = 0 when x = `pi/4`.
`(dy)/(dx) + ycotx = 2/(1 + sinx)`
The curve passing through (0, 1) and satisfying `sin(dy/dx) = 1/2` is ______.
Solve the differential equation:
`(xdy - ydx) ysin(y/x) = (ydx + xdy) xcos(y/x)`.
Find the particular solution satisfying the condition that y = π when x = 1.
