Advertisements
Advertisements
Question
Solve the following initial value problem:
\[x\frac{dy}{dx} + y = x \cos x + \sin x, y\left( \frac{\pi}{2} \right) = 1\]
Advertisements
Solution
We have,
\[x\frac{dy}{dx} + y = x \cos x + \sin x\]
\[ \Rightarrow \frac{dy}{dx} + \frac{1}{x}y = \cos x + \frac{\sin x}{x} . . . . . \left( 1 \right)\]
Clearly, it is a linear differential equation of the form
\[\frac{dy}{dx} + Py = Q\]
\[\text{ where }P = \tan x\text{ and }Q = x^2 \cot x + 2x\]
\[ \therefore I . F . = e^{\int P\ dx} \]
\[ = e^{\int\frac{1}{x}dx} \]
\[ = e^{log x} = x\]
\[\text{ Multiplying both sides of (1) by I . F . }= x,\text{ we get }\]
\[x\left( \frac{dy}{dx} + \frac{1}{x}y \right) = x\left( \cos x + \frac{\sin x}{x} \right)\]
\[ \Rightarrow x\left( \frac{dy}{dx} + \frac{1}{x}y \right) = x \cos x + \sin x\]
Integrating both sides with respect to x, we get
\[xy = \int x \cos x dx + \int\sin x dx + C\]
\[ \Rightarrow xy = \left[ x \sin x - \int1\left( \sin x \right)dx \right] - \cos x + C\]
\[ \Rightarrow xy = x \sin x + \cos x - \cos x + C\]
\[ \Rightarrow xy = x \sin x + C . . . . . \left( 2 \right)\]
Now,
\[y\left( \frac{\pi}{2} \right) = 1\]
\[ \therefore 1 \times \frac{\pi}{2} = \frac{\pi}{2}\sin\frac{\pi}{2} + C\]
\[ \Rightarrow C = 0\]
\[\text{ Putting the value of C in }\left( 2 \right),\text{ we get }\]
\[xy = x \sin x\]
\[ \Rightarrow y = \sin x\]
\[\text{ Hence, }y = \sin x\text{ is the required solution .}\]
APPEARS IN
RELATED QUESTIONS
Show that the function y = A cos x + B sin x is a solution of the differential equation \[\frac{d^2 y}{d x^2} + y = 0\]
Hence, the given function is the solution to the given differential equation. \[\frac{c - x}{1 + cx}\] is a solution of the differential equation \[(1+x^2)\frac{dy}{dx}+(1+y^2)=0\].
Verify that \[y = e^{m \cos^{- 1} x}\] satisfies the differential equation \[\left( 1 - x^2 \right)\frac{d^2 y}{d x^2} - x\frac{dy}{dx} - m^2 y = 0\]
Verify that y = log \[\left( x + \sqrt{x^2 + a^2} \right)^2\] satisfies the differential equation \[\left( a^2 + x^2 \right)\frac{d^2 y}{d x^2} + x\frac{dy}{dx} = 0\]
\[x^2 \frac{dy}{dx} = x^2 + xy + y^2 \]
3x2 dy = (3xy + y2) dx
Solve the following initial value problem:-
\[\frac{dy}{dx} + y \tan x = 2x + x^2 \tan x, y\left( 0 \right) = 1\]
At every point on a curve the slope is the sum of the abscissa and the product of the ordinate and the abscissa, and the curve passes through (0, 1). Find the equation of the curve.
The x-intercept of the tangent line to a curve is equal to the ordinate of the point of contact. Find the particular curve through the point (1, 1).
The equation of the curve whose slope is given by \[\frac{dy}{dx} = \frac{2y}{x}; x > 0, y > 0\] and which passes through the point (1, 1) is
The solution of the differential equation \[\frac{dy}{dx} - \frac{y\left( x + 1 \right)}{x} = 0\] is given by
y2 dx + (x2 − xy + y2) dy = 0
Verify that the function y = e−3x is a solution of the differential equation \[\frac{d^2 y}{d x^2} + \frac{dy}{dx} - 6y = 0.\]
In the following verify that the given functions (explicit or implicit) is a solution of the corresponding differential equation:-
y = ex + 1 y'' − y' = 0
Solve the differential equation:
`"x"("dy")/("dx")+"y"=3"x"^2-2`
Find the particular solution of the differential equation `"dy"/"dx" = "xy"/("x"^2+"y"^2),`given that y = 1 when x = 0
Form the differential equation from the relation x2 + 4y2 = 4b2
Solve the following differential equation.
`y^3 - dy/dx = x dy/dx`
Solve the following differential equation.
`(x + y) dy/dx = 1`
Choose the correct alternative.
The differential equation of y = `k_1 + k_2/x` is
A solution of a differential equation which can be obtained from the general solution by giving particular values to the arbitrary constants is called ___________ solution.
Solve the differential equation `("d"y)/("d"x) + y` = e−x
Solve the following differential equation
`yx ("d"y)/("d"x)` = x2 + 2y2
Solve the following differential equation y log y = `(log y - x) ("d"y)/("d"x)`
State whether the following statement is True or False:
The integrating factor of the differential equation `("d"y)/("d"x) - y` = x is e–x
Solve the following differential equation `("d"y)/("d"x)` = cos(x + y)
Solution: `("d"y)/("d"x)` = cos(x + y) ......(1)
Put `square`
∴ `1 + ("d"y)/("d"x) = "dv"/("d"x)`
∴ `("d"y)/("d"x) = "dv"/("d"x) - 1`
∴ (1) becomes `"dv"/("d"x) - 1` = cos v
∴ `"dv"/("d"x)` = 1 + cos v
∴ `square` dv = dx
Integrating, we get
`int 1/(1 + cos "v") "d"v = int "d"x`
∴ `int 1/(2cos^2 ("v"/2)) "dv" = int "d"x`
∴ `1/2 int square "dv" = int "d"x`
∴ `1/2* (tan("v"/2))/(1/2)` = x + c
∴ `square` = x + c
lf the straight lines `ax + by + p` = 0 and `x cos alpha + y sin alpha = p` are inclined at an angle π/4 and concurrent with the straight line `x sin alpha - y cos alpha` = 0, then the value of `a^2 + b^2` is
