Answer on Question #69647 – Math – Differential Equations
Question
Find a particular solution of
d y d x + 2 y = 2 x 2 + 3. \frac{dy}{dx} + 2y = 2x^2 + 3. d x d y + 2 y = 2 x 2 + 3.
Solution
Method 1
It's a first order linear differential equation, hence it has the following form:
d y d x + P ( x ) y = Q ( x ) \frac{dy}{dx} + P(x)y = Q(x) d x d y + P ( x ) y = Q ( x )
with P ( x ) = 2 P(x) = 2 P ( x ) = 2 and Q ( x ) = 2 x 2 + 3 Q(x) = 2x^2 + 3 Q ( x ) = 2 x 2 + 3 .
The associated homogeneous differential equation is
d y d x + P ( x ) y = 0 \frac{dy}{dx} + P(x)y = 0 d x d y + P ( x ) y = 0 d y d x + 2 y = 0 \frac{dy}{dx} + 2y = 0 d x d y + 2 y = 0
The characteristic equation is
λ + 2 = 0. \lambda + 2 = 0. λ + 2 = 0.
Its root is
λ = − 2. \lambda = -2. λ = − 2.
The solution of the homogeneous equation is
y h = c 1 e − 2 x y_h = c_1 e^{-2x} y h = c 1 e − 2 x
The right-hand side of the differential equation
d y d x + 2 y = 2 x 2 + 3 \frac{dy}{dx} + 2y = 2x^2 + 3 d x d y + 2 y = 2 x 2 + 3
is a second degree polynomial that does not coincide with (1), therefore, a particular solution of (2) can be found in the following way:
y p = a x 2 + b x + c , y_p = a x^2 + b x + c, y p = a x 2 + b x + c , y p ′ = 2 a x + b . y_p' = 2a x + b. y p ′ = 2 a x + b .
Substituting formulae (3), (4) into the differential equation (2) one gets
d y p d x + 2 y p = 2 x 2 + 3 \frac{dy_p}{dx} + 2y_p = 2x^2 + 3 d x d y p + 2 y p = 2 x 2 + 3 2 a x + b + 2 ( a x 2 + b x + c ) = 2 x 2 + 3 2a x + b + 2(a x^2 + b x + c) = 2x^2 + 3 2 a x + b + 2 ( a x 2 + b x + c ) = 2 x 2 + 3 2 a x 2 + ( 2 b + 2 a ) x + ( b + 2 c ) = 2 x 2 + 3 , 2a x^2 + (2b + 2a) x + (b + 2c) = 2x^2 + 3, 2 a x 2 + ( 2 b + 2 a ) x + ( b + 2 c ) = 2 x 2 + 3 ,
Equating coefficients before the like terms one gets the system
{ 2 a = 2 2 b + 2 a = 0 b + 2 c = 3 \left\{ \begin{array}{c} 2a = 2 \\ 2b + 2a = 0 \\ b + 2c = 3 \end{array} \right. ⎩ ⎨ ⎧ 2 a = 2 2 b + 2 a = 0 b + 2 c = 3 { a = 1 b = − a c = 3 − b 2 \left\{ \begin{array}{c} a = 1 \\ b = -a \\ c = \frac{3 - b}{2} \end{array} \right. ⎩ ⎨ ⎧ a = 1 b = − a c = 2 3 − b { a = 1 b = − 1 c = 2 \left\{ \begin{array}{l} a = 1 \\ b = -1 \\ c = 2 \end{array} \right. ⎩ ⎨ ⎧ a = 1 b = − 1 c = 2
Thus, a particular solution of (2) is
y p = a x 2 + b x + c = x 2 − x + 2 y_p = a x^2 + b x + c = x^2 - x + 2 y p = a x 2 + b x + c = x 2 − x + 2 Method 2
A particular solution can be found by means of the general solution of the differential equation.
**The first way**
is application of an auxiliary function.
Let
y = u v , y = u v, y = uv ,
where u = u ( x ) u = u(x) u = u ( x ) and v = v ( x ) v = v(x) v = v ( x ) are the auxiliary functions.
Then
d y d x = d u d x v + u d v d x . \frac{dy}{dx} = \frac{du}{dx} v + u \frac{dv}{dx}. d x d y = d x d u v + u d x d v .
So we have
d u d x v + u d v d x + 2 u v = 2 x 2 + 3 \frac{du}{dx} v + u \frac{dv}{dx} + 2u v = 2x^2 + 3 d x d u v + u d x d v + 2 uv = 2 x 2 + 3
or
d u d x v + u ( d v d x + 2 v ) = 2 x 2 + 3. \frac{du}{dx} v + u \left(\frac{dv}{dx} + 2v\right) = 2x^2 + 3. d x d u v + u ( d x d v + 2 v ) = 2 x 2 + 3.
Since one of the auxiliary functions can be chosen arbitrarily, let's choose a function v v v such that it will satisfy the condition:
d v d x + 2 v = 0. \frac{dv}{dx} + 2v = 0. d x d v + 2 v = 0.
So we have
d v d x + 2 v = 0 \frac{dv}{dx} + 2v = 0 d x d v + 2 v = 0
or
d v d x = − 2 v . \frac{dv}{dx} = -2v. d x d v = − 2 v .
It’s a separable equation which can be easily integrated:
∫ d v v = − 2 ∫ d x \int \frac {dv}{v} = -2 \int dx ∫ v d v = − 2 ∫ d x ln ∣ v ∣ = − 2 x \ln |v| = -2x ln ∣ v ∣ = − 2 x v = e − 2 x . v = e^{-2x}. v = e − 2 x .
Substitute the expression for the function v v v into equation (1):
d u d x e − 2 x = 2 x 2 + 3 \frac {du}{dx} e^{-2x} = 2x^2 + 3 d x d u e − 2 x = 2 x 2 + 3
or
d u d x = ( 2 x 2 + 3 ) e 2 x . \frac {du}{dx} = (2x^2 + 3) e^{2x}. d x d u = ( 2 x 2 + 3 ) e 2 x .
It’s a separable equation so we can integrate it:
∫ d u = ∫ ( 2 x 2 + 3 ) e 2 x d x . \int du = \int (2x^2 + 3) e^{2x} dx. ∫ d u = ∫ ( 2 x 2 + 3 ) e 2 x d x .
To calculate the second integral we shall use the formula for integration by parts:
∫ u d v = u v − ∫ v d u . \int udv = uv - \int v du. ∫ u d v = uv − ∫ v d u .
Let
u = 2 x 2 + 3 and d v = e 2 x d x , u = 2x^2 + 3 \quad \text{and} \quad dv = e^{2x} dx, u = 2 x 2 + 3 and d v = e 2 x d x ,
then
d u = 4 x d x ; v = 1 2 e 2 x . du = 4x dx; \quad v = \frac{1}{2} e^{2x}. d u = 4 x d x ; v = 2 1 e 2 x .
Using the formula for integration by parts, we have
∫ ( 2 x 2 + 3 ) e 2 x d x = ( 2 x 2 + 3 ) 2 e 2 x − 2 ∫ x e 2 x d x . \int (2x^2 + 3) e^{2x} dx = \frac{(2x^2 + 3)}{2} e^{2x} - 2 \int x e^{2x} dx. ∫ ( 2 x 2 + 3 ) e 2 x d x = 2 ( 2 x 2 + 3 ) e 2 x − 2 ∫ x e 2 x d x .
This integral still contains a product of functions. So we shall use the formula for integration by parts again. This time we choose
u = x and d v = e 2 x d x u = x \quad \text{and} \quad dv = e^{2x} dx u = x and d v = e 2 x d x
then
d u = d x ; v = 1 2 e 2 x . du = dx; \quad v = \frac{1}{2} e^{2x}. d u = d x ; v = 2 1 e 2 x .
So
∫ ( 2 x 2 + 3 ) e 2 x d x = ( 2 x 2 + 3 ) 2 e 2 x − 2 ∫ x e 2 x d x = = ( 2 x 2 + 3 ) 2 e 2 x − 2 ( x 2 e 2 x − 1 2 ∫ e 2 x d x ) = ( 2 x 2 + 3 ) 2 e 2 x − x e 2 x + 1 2 e 2 x + C = = ( x 2 − x + 2 ) e 2 x + C , \begin{aligned}
& \int (2x^2 + 3) e^{2x} dx = \frac{(2x^2 + 3)}{2} e^{2x} - 2 \int x e^{2x} dx = \\
& = \frac{(2x^2 + 3)}{2} e^{2x} - 2 \left( \frac{x}{2} e^{2x} - \frac{1}{2} \int e^{2x} dx \right) = \frac{(2x^2 + 3)}{2} e^{2x} - x e^{2x} + \frac{1}{2} e^{2x} + C = \\
& = (x^2 - x + 2) e^{2x} + C,
\end{aligned} ∫ ( 2 x 2 + 3 ) e 2 x d x = 2 ( 2 x 2 + 3 ) e 2 x − 2 ∫ x e 2 x d x = = 2 ( 2 x 2 + 3 ) e 2 x − 2 ( 2 x e 2 x − 2 1 ∫ e 2 x d x ) = 2 ( 2 x 2 + 3 ) e 2 x − x e 2 x + 2 1 e 2 x + C = = ( x 2 − x + 2 ) e 2 x + C ,
where C C C is an integration constant.
So we get the following auxiliary function:
u = ( x 2 − x + 2 ) e 2 x + C . u = (x ^ {2} - x + 2) e ^ {2 x} + C. u = ( x 2 − x + 2 ) e 2 x + C .
After the back substitution we have the general solution of the given equation:
y = x 2 − x + 2 + C e − 2 x , y = x ^ {2} - x + 2 + C e ^ {- 2 x}, y = x 2 − x + 2 + C e − 2 x ,
where C C C is arbitrary real constant.
A particular solution can be obtained if in (2) we set C C C to be equal to a certain number. For example, if C = 0 C = 0 C = 0 , then y p = x 2 − x + 2 y_{p} = x^{2} - x + 2 y p = x 2 − x + 2 will be a particular solution.
The second way
is using an integrating factor
μ ( x ) = e ∫ P ( x ) d x . \mu (x) = e ^ {\int P (x) d x}. μ ( x ) = e ∫ P ( x ) d x .
The solution is then commonly written as
y = 1 μ ( x ) ∫ μ ( x ) Q ( x ) d x . y = \frac {1}{\mu (x)} \int \mu (x) Q (x) d x. y = μ ( x ) 1 ∫ μ ( x ) Q ( x ) d x .
Determine the integrating factor:
μ ( x ) = e 2 ∫ d x = e 2 x . \mu (x) = e ^ {2 \int d x} = e ^ {2 x}. μ ( x ) = e 2 ∫ d x = e 2 x .
Then the solution is
y = e − 2 x ∫ ( 2 x 2 + 3 ) e 2 x d x = e − 2 x ( ( x 2 − x + 2 ) e 2 x + C ) = x 2 − x + 2 + C e − 2 x , y = e ^ {- 2 x} \int (2 x ^ {2} + 3) e ^ {2 x} d x = e ^ {- 2 x} \big ((x ^ {2} - x + 2) e ^ {2 x} + C \big) = x ^ {2} - x + 2 + C e ^ {- 2 x}, y = e − 2 x ∫ ( 2 x 2 + 3 ) e 2 x d x = e − 2 x ( ( x 2 − x + 2 ) e 2 x + C ) = x 2 − x + 2 + C e − 2 x ,
where C C C is an integration constant.
So the general solution of the given equation is
y = x 2 − x + 2 + C e − 2 x . y = x ^ {2} - x + 2 + C e ^ {- 2 x}. y = x 2 − x + 2 + C e − 2 x .
A particular solution can be obtained if in (3) we set C C C to be equal to a certain number. For example, if C = 0 C = 0 C = 0 , then y p = x 2 − x + 2 y_{p} = x^{2} - x + 2 y p = x 2 − x + 2 will be a particular solution.
**Answer**: y p = x 2 − x + 2 y_{p} = x^{2} - x + 2 y p = x 2 − x + 2 .
Answer provided by https://www.AssignmentExpert.com