Question #69647

Find the particular solution of dy/dx+2y=2x2+3

Expert's answer

Answer on Question #69647 – Math – Differential Equations

Question

Find a particular solution of


dydx+2y=2x2+3.\frac{dy}{dx} + 2y = 2x^2 + 3.


Solution

Method 1

It's a first order linear differential equation, hence it has the following form:


dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)


with P(x)=2P(x) = 2 and Q(x)=2x2+3Q(x) = 2x^2 + 3.

The associated homogeneous differential equation is


dydx+P(x)y=0\frac{dy}{dx} + P(x)y = 0dydx+2y=0\frac{dy}{dx} + 2y = 0


The characteristic equation is


λ+2=0.\lambda + 2 = 0.


Its root is


λ=2.\lambda = -2.


The solution of the homogeneous equation is


yh=c1e2xy_h = c_1 e^{-2x}


The right-hand side of the differential equation


dydx+2y=2x2+3\frac{dy}{dx} + 2y = 2x^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:


yp=ax2+bx+c,y_p = a x^2 + b x + c,yp=2ax+b.y_p' = 2a x + b.


Substituting formulae (3), (4) into the differential equation (2) one gets


dypdx+2yp=2x2+3\frac{dy_p}{dx} + 2y_p = 2x^2 + 32ax+b+2(ax2+bx+c)=2x2+32a x + b + 2(a x^2 + b x + c) = 2x^2 + 32ax2+(2b+2a)x+(b+2c)=2x2+3,2a x^2 + (2b + 2a) x + (b + 2c) = 2x^2 + 3,


Equating coefficients before the like terms one gets the system


{2a=22b+2a=0b+2c=3\left\{ \begin{array}{c} 2a = 2 \\ 2b + 2a = 0 \\ b + 2c = 3 \end{array} \right.{a=1b=ac=3b2\left\{ \begin{array}{c} a = 1 \\ b = -a \\ c = \frac{3 - b}{2} \end{array} \right.{a=1b=1c=2\left\{ \begin{array}{l} a = 1 \\ b = -1 \\ c = 2 \end{array} \right.


Thus, a particular solution of (2) is


yp=ax2+bx+c=x2x+2y_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=uv,y = u v,


where u=u(x)u = u(x) and v=v(x)v = v(x) are the auxiliary functions.

Then


dydx=dudxv+udvdx.\frac{dy}{dx} = \frac{du}{dx} v + u \frac{dv}{dx}.


So we have


dudxv+udvdx+2uv=2x2+3\frac{du}{dx} v + u \frac{dv}{dx} + 2u v = 2x^2 + 3


or


dudxv+u(dvdx+2v)=2x2+3.\frac{du}{dx} v + u \left(\frac{dv}{dx} + 2v\right) = 2x^2 + 3.


Since one of the auxiliary functions can be chosen arbitrarily, let's choose a function vv such that it will satisfy the condition:


dvdx+2v=0.\frac{dv}{dx} + 2v = 0.


So we have


dvdx+2v=0\frac{dv}{dx} + 2v = 0


or


dvdx=2v.\frac{dv}{dx} = -2v.


It’s a separable equation which can be easily integrated:


dvv=2dx\int \frac {dv}{v} = -2 \int dxlnv=2x\ln |v| = -2xv=e2x.v = e^{-2x}.


Substitute the expression for the function vv into equation (1):


dudxe2x=2x2+3\frac {du}{dx} e^{-2x} = 2x^2 + 3


or


dudx=(2x2+3)e2x.\frac {du}{dx} = (2x^2 + 3) e^{2x}.


It’s a separable equation so we can integrate it:


du=(2x2+3)e2xdx.\int du = \int (2x^2 + 3) e^{2x} dx.


To calculate the second integral we shall use the formula for integration by parts:


udv=uvvdu.\int udv = uv - \int v du.


Let


u=2x2+3anddv=e2xdx,u = 2x^2 + 3 \quad \text{and} \quad dv = e^{2x} dx,


then


du=4xdx;v=12e2x.du = 4x dx; \quad v = \frac{1}{2} e^{2x}.


Using the formula for integration by parts, we have


(2x2+3)e2xdx=(2x2+3)2e2x2xe2xdx.\int (2x^2 + 3) e^{2x} dx = \frac{(2x^2 + 3)}{2} e^{2x} - 2 \int x e^{2x} dx.


This integral still contains a product of functions. So we shall use the formula for integration by parts again. This time we choose


u=xanddv=e2xdxu = x \quad \text{and} \quad dv = e^{2x} dx


then


du=dx;v=12e2x.du = dx; \quad v = \frac{1}{2} e^{2x}.


So


(2x2+3)e2xdx=(2x2+3)2e2x2xe2xdx==(2x2+3)2e2x2(x2e2x12e2xdx)=(2x2+3)2e2xxe2x+12e2x+C==(x2x+2)e2x+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}


where CC is an integration constant.

So we get the following auxiliary function:


u=(x2x+2)e2x+C.u = (x ^ {2} - x + 2) e ^ {2 x} + C.


After the back substitution we have the general solution of the given equation:


y=x2x+2+Ce2x,y = x ^ {2} - x + 2 + C e ^ {- 2 x},


where CC is arbitrary real constant.

A particular solution can be obtained if in (2) we set CC to be equal to a certain number. For example, if C=0C = 0, then yp=x2x+2y_{p} = x^{2} - x + 2 will be a particular solution.

The second way

is using an integrating factor


μ(x)=eP(x)dx.\mu (x) = e ^ {\int P (x) d x}.


The solution is then commonly written as


y=1μ(x)μ(x)Q(x)dx.y = \frac {1}{\mu (x)} \int \mu (x) Q (x) d x.


Determine the integrating factor:


μ(x)=e2dx=e2x.\mu (x) = e ^ {2 \int d x} = e ^ {2 x}.


Then the solution is


y=e2x(2x2+3)e2xdx=e2x((x2x+2)e2x+C)=x2x+2+Ce2x,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},


where CC is an integration constant.

So the general solution of the given equation is


y=x2x+2+Ce2x.y = x ^ {2} - x + 2 + C e ^ {- 2 x}.


A particular solution can be obtained if in (3) we set CC to be equal to a certain number. For example, if C=0C = 0, then yp=x2x+2y_{p} = x^{2} - x + 2 will be a particular solution.

**Answer**: yp=x2x+2y_{p} = x^{2} - x + 2.

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS