Math Problem Statement

solve this quiz correctly

Find the general solutions of the following non-homogeneous differential equation y'' - 2y' + y = 4xe^(3x), y(0) = 2, y'(0) = 1 by applying method of undetermined coefficients.

Solution

We are tasked to solve the non-homogeneous differential equation
y2y+y=4xe3xy'' - 2y' + y = 4xe^{3x} using the method of undetermined coefficients with initial conditions y(0)=2y(0) = 2 and y(0)=1y'(0) = 1.


Step 1: Solve the homogeneous part

The homogeneous part of the equation is: y2y+y=0.y'' - 2y' + y = 0.

The corresponding characteristic equation is: r22r+1=0.r^2 - 2r + 1 = 0.

Solving for rr, we factorize: (r1)2=0    r=1 (double root).(r - 1)^2 = 0 \implies r = 1 \ \text{(double root)}.

Thus, the general solution of the homogeneous equation is: yh(x)=C1ex+C2xex,y_h(x) = C_1e^{x} + C_2xe^{x}, where C1C_1 and C2C_2 are constants.


Step 2: Solve the particular solution ypy_p

The non-homogeneous term is 4xe3x4xe^{3x}. Since e3xe^{3x} appears and is not a solution of the homogeneous equation, we choose a particular solution of the form: yp(x)=(Ax2+Bx)e3x.y_p(x) = (Ax^2 + Bx)e^{3x}.

Finding yp(x)y_p'(x) and yp(x)y_p''(x):

  1. First derivative yp(x)y_p'(x): yp(x)=(2Ax+B+3Ax2+3Bx)e3x=(3Ax2+(2A+3B)x+B)e3x.y_p'(x) = \left(2Ax + B + 3Ax^2 + 3Bx\right)e^{3x} = (3Ax^2 + (2A + 3B)x + B)e^{3x}.

  2. Second derivative yp(x)y_p''(x): yp(x)=[6Ax+(2A+3B)+3(3Ax2+(2A+3B)x+B)]e3x.y_p''(x) = \left[ 6Ax + (2A + 3B) + 3(3Ax^2 + (2A + 3B)x + B) \right]e^{3x}. Simplify term by term: yp(x)=(9Ax2+(6A+9B)x+(2A+3B))e3x.y_p''(x) = \left( 9Ax^2 + (6A + 9B)x + (2A + 3B) \right)e^{3x}.

Substituting into the original equation:

Substitute ypy_p, ypy_p', and ypy_p'' into the original equation: yp2yp+yp=4xe3x.y_p'' - 2y_p' + y_p = 4xe^{3x}.

Substitute each expression: (9Ax2+(6A+9B)x+(2A+3B))e3x2(3Ax2+(2A+3B)x+B)e3x+(Ax2+Bx)e3x.\left( 9Ax^2 + (6A + 9B)x + (2A + 3B) \right)e^{3x} - 2\left( 3Ax^2 + (2A + 3B)x + B \right)e^{3x} + \left( Ax^2 + Bx \right)e^{3x}.

Combine like terms:

  • x2x^2-terms: 9A6A+A=4A9A - 6A + A = 4A,
  • xx-terms: (6A+9B)2(2A+3B)+B=6A+9B4A6B+B=2A+4B(6A + 9B) - 2(2A + 3B) + B = 6A + 9B - 4A - 6B + B = 2A + 4B,
  • Constant terms: (2A+3B)2B=2AB(2A + 3B) - 2B = 2A - B.

Equating coefficients of x2x^2, xx, and the constant on the left to those on the right-hand side (4xe3x4xe^{3x}):

  • x2x^2-term: 4A=0    A=04A = 0 \implies A = 0,
  • xx-term: 2A+4B=4    4B=4    B=12A + 4B = 4 \implies 4B = 4 \implies B = 1,
  • Constant term: 2AB=0    B=0(consistent)2A - B = 0 \implies -B = 0 \quad \text{(consistent)}.

Thus, the particular solution is: yp(x)=Bxe3x=xe3x.y_p(x) = Bx e^{3x} = x e^{3x}.


Step 3: General solution

The general solution y(x)y(x) is the sum of the homogeneous and particular solutions: y(x)=yh(x)+yp(x).y(x) = y_h(x) + y_p(x). Substitute: y(x)=C1ex+C2xex+xe3x.y(x) = C_1e^{x} + C_2xe^{x} + xe^{3x}.


Step 4: Apply initial conditions

Condition 1: y(0)=2y(0) = 2

Substitute x=0x = 0 into y(x)y(x): y(0)=C1e0+C2(0)e0+(0)e30=C1.y(0) = C_1e^{0} + C_2(0)e^{0} + (0)e^{3\cdot 0} = C_1. Thus: C1=2.C_1 = 2.

Condition 2: y(0)=1y'(0) = 1

First, compute y(x)y'(x): y(x)=C1ex+C2ex+C2xex+e3x+3xe3x.y'(x) = C_1e^{x} + C_2e^{x} + C_2xe^{x} + e^{3x} + 3xe^{3x}. Simplify: y(x)=C1ex+C2ex+C2xex+e3x+3xe3x.y'(x) = C_1e^{x} + C_2e^{x} + C_2xe^{x} + e^{3x} + 3xe^{3x}. At x=0x = 0: y(0)=C1e0+C2e0+(0)+e30+3(0)=C1+C2+1.y'(0) = C_1e^{0} + C_2e^{0} + (0) + e^{3\cdot 0} + 3(0) = C_1 + C_2 + 1. Substitute C1=2C_1 = 2 and y(0)=1y'(0) = 1: 1=2+C2+1    C2=2.1 = 2 + C_2 + 1 \implies C_2 = -2.


Final Solution:

The solution to the given differential equation is: y(x)=2ex2xex+xe3x.y(x) = 2e^{x} - 2xe^{x} + xe^{3x}.


Conclusion

Do you need further clarification on any steps? Let me know!


Related Questions:

  1. How does the method of undetermined coefficients differ from variation of parameters?
  2. How do repeated roots in the characteristic equation affect the general solution?
  3. Can you solve this equation using the Laplace Transform method?
  4. How do you check if a solution satisfies the initial value problem?
  5. What happens if the non-homogeneous term overlaps with the homogeneous solution?

Tip:

Always simplify derivatives carefully when solving non-homogeneous equations to avoid algebraic errors.

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Differential Equations
Non-Homogeneous Equations
Method of Undetermined Coefficients

Formulas

Characteristic Equation: r^2 - 2r + 1 = 0
General solution: y_h(x) = C1e^x + C2xe^x
Particular solution assumption: y_p(x) = (Ax^2 + Bx)e^(3x)

Theorems

Method of Undetermined Coefficients
Superposition Principle for Differential Equations

Suitable Grade Level

Undergraduate Level