Advertisements
Advertisements
Question
Find the general solution of the differential equation \[\frac{dy}{dx} - y = \cos x\]
Advertisements
Solution
We have,
\[\frac{dy}{dx} - y = \cos x . . . . . . . . . . \left( 1 \right)\]
Clearly, it is a linear differential equation of the form
\[\frac{dy}{dx} + Py = Q\]
\[\text{ where }P = - 1\text{ and }Q = \cos x\]
\[ \therefore I . F . = e^{\int P\ dx} \]
\[ = e^{- \int dx} \]
\[ = e^{- x} \]
\[\text{ Multiplying both sides of }\left( 1 \right)\text{ by }I . F . = e^{- x} ,\text{ we get }\]
\[ e^{- x} \left( \frac{dy}{dx} - y \right) = e^{- x} \cos x \]
\[ \Rightarrow e^{- x} \frac{dy}{dx} - e^{- x} y = e^{- x} \cos x\]
Integrating both sides with respect to x, we get
\[y e^{- x} = \int e^{- x} \cos x dx + C\]
\[ \Rightarrow y e^{- x} = I + C . . . . . . . . \left( 2 \right)\]
Here,
\[I = \int e^{- x} \cos x dx . . . . . . . . . . \left( 3 \right)\]
\[ \Rightarrow I = e^{- x} \sin x - \int\left( - e^{- x} \sin x \right) dx\]
\[ \Rightarrow I = e^{- x} \sin x + \int e^{- x} \sin x dx\]
\[ \Rightarrow I = e^{- x} \sin x - e^{- x} \cos x - \int\left[ \left( - e^{- x} \right) \times \left( - \cos x \right) \right] dx\]
\[ \Rightarrow I = e^{- x} \sin x - e^{- x} \cos x - \int e^{- x} \cos x dx\]
\[ \Rightarrow I = e^{- x} \sin x - e^{- x} \cos x - I .............\left[\text{From (3)} \right]\]
\[ \Rightarrow 2I = e^{- x} \left( \sin x - \cos x \right)\]
\[ \Rightarrow I = \frac{e^{- x}}{2}\left( \sin x - \cos x \right) . . . . . . . . . . . \left( 4 \right)\]
\[\text{ From }\left( 2 \right)\text{ and }\left( 4 \right)\text{ we get }\]
\[ \Rightarrow y e^{- x} = \frac{e^{- x}}{2}\left( \sin x - \cos x \right) + C\]
\[ \Rightarrow y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^x \]
\[\text{ Hence, }y = \frac{1}{2}\left( \sin x - \cos x \right) + C e^x \text{ is the required solution.} \]
APPEARS IN
RELATED QUESTIONS
For the differential equation, find the general solution:
`dy/dx + 3y = e^(-2x)`
For the differential equation, find the general solution:
`dy/dx + (sec x) y = tan x (0 <= x < pi/2)`
For the differential equation, find the general solution:
(1 + x2) dy + 2xy dx = cot x dx (x ≠ 0)
For the differential equation, find the general solution:
`(x + y) dy/dx = 1`
For the differential equation, find the general solution:
y dx + (x – y2) dy = 0
The Integrating Factor of the differential equation `dy/dx - y = 2x^2` is ______.
Solve the differential equation `x dy/dx + y = x cos x + sin x`, given that y = 1 when `x = pi/2`
(x + tan y) dy = sin 2y dx
dx + xdy = e−y sec2 y dy
\[\frac{dy}{dx}\] = y tan x − 2 sin x
Find the general solution of the differential equation \[x\frac{dy}{dx} + 2y = x^2\]
Solve the following differential equation: \[\left( \cot^{- 1} y + x \right) dy = \left( 1 + y^2 \right) dx\] .
Solve the following differential equation:-
\[\left( 1 + x^2 \right)\frac{dy}{dx} - 2xy = \left( x^2 + 2 \right)\left( x^2 + 1 \right)\]
Find the integerating factor of the differential equation `x(dy)/(dx) - 2y = 2x^2`
Solve the differential equation: (1 +x2 ) dy + 2xy dx = cot x dx
Solve the differential equation: `(1 + x^2) dy/dx + 2xy - 4x^2 = 0,` subject to the initial condition y(0) = 0.
Solve the following differential equation:
`cos^2 "x" * "dy"/"dx" + "y" = tan "x"`
Solve the following differential equation:
`("x" + 2"y"^3) "dy"/"dx" = "y"`
Solve the following differential equation:
`"dy"/"dx" + "y" * sec "x" = tan "x"`
Solve the following differential equation:
`("x + a")"dy"/"dx" - 3"y" = ("x + a")^5`
Solve the following differential equation:
dr + (2r cotθ + sin2θ)dθ = 0
Solve the following differential equation:
`(1 - "x"^2) "dy"/"dx" + "2xy" = "x"(1 - "x"^2)^(1/2)`
The curve passes through the point (0, 2). The sum of the coordinates of any point on the curve exceeds the slope of the tangent to the curve at any point by 5. Find the equation of the curve.
Form the differential equation of all circles which pass through the origin and whose centers lie on X-axis.
Let y = y(x), x > 1, be the solution of the differential equation `(x - 1)(dy)/(dx) + 2xy = 1/(x - 1)`, with y(2) = `(1 + e^4)/(2e^4)`. If y(3) = `(e^α + 1)/(βe^α)`, then the value of α + β is equal to ______.
Let y = y(x) be the solution curve of the differential equation `(dy)/(dx) + ((2x^2 + 11x + 13)/(x^3 + 6x^2 + 11x + 6)) y = ((x + 3))/(x + 1), x > - 1`, which passes through the point (0, 1). Then y(1) is equal to ______.
The solution of the differential equation `dx/dt = (xlogx)/t` is ______.
Solve the differential equation `dy/dx+2xy=x` by completing the following activity.
Solution: `dy/dx+2xy=x` ...(1)
This is the linear differential equation of the form `dy/dx +Py =Q,"where"`
`P=square` and Q = x
∴ `I.F. = e^(intPdx)=square`
The solution of (1) is given by
`y.(I.F.)=intQ(I.F.)dx+c=intsquare dx+c`
∴ `ye^(x^2) = square`
This is the general solution.
If sec x + tan x is the integrating factor of `dy/dx + Py` = Q, then value of P is ______.
Solve:
`xsinx dy/dx + (xcosx + sinx)y` = sin x
