Resources

Find the general solution to the second-order non-homogeneous linear differential equation y′′−4y′+4y=6e2xy'' - 4y' + 4y = 6e^{2x} by coupling and comparing two techniques: Method A (The Method of Undetermined Coefficients) and Method B (Variation of Parameters). Specify the complementary solution yc(x)y_c(x), determine the particular solution yp(x)y_p(x), and explain why the initial trial choice yp=Ae2xy_p = A e^{2x} fails in Method A.

Answer and steps

Final answer

y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}. The complementary solution is yc(x)=c1e2x+c2xe2xy_c(x) = c_1 e^{2x} + c_2 x e^{2x}. The initial guess yp=Ae2xy_p = A e^{2x} (and yp=Axe2xy_p = Ax e^{2x}) fails in Method A because λ=2\lambda = 2 is a double root of the characteristic equation r2−4r+4=0r^2 - 4r + 4 = 0, forcing the particular trial form to be scaled to Ax2e2xA x^2 e^{2x}, which yields A=3A = 3.

Steps

01

Find the Complementary Solution yc(x)y_c(x)

To find the complementary solution, solve the associated homogeneous equation: y′′−4y′+4y=0y'' - 4y' + 4y = 0

Write the characteristic equation: r2−4r+4=0  ⟹  (r−2)2=0r^2 - 4r + 4 = 0 \implies (r - 2)^2 = 0

This yields a repeated real root, r=2r = 2, with multiplicity 22. Therefore, the two linearly independent solutions are: y1=e2x,y2=xe2xy_1 = e^{2x}, \quad y_2 = x e^{2x}

The complementary solution is: yc(x)=c1e2x+c2xe2xy_c(x) = c_1 e^{2x} + c_2 x e^{2x}


02

Determine yp(x)y_p(x) Using Method A (Undetermined Coefficients)

The non-homogeneous driving term is g(x)=6e2xg(x) = 6e^{2x}.

  1. Why the initial trial form fails: A standard trial choice for an exponential driver e2xe^{2x} is yp=Ae2xy_p = A e^{2x}. However, e2xe^{2x} is already present in yc(x)y_c(x) as a solution to the homogeneous equation, which means plugging Ae2xA e^{2x} into the differential operator yields zero: (Ae2x)′′−4(Ae2x)′+4(Ae2x)=0≠6e2x(A e^{2x})'' - 4(A e^{2x})' + 4(A e^{2x}) = 0 \neq 6e^{2x} Similarly, multiplying by xx gives Axe2xA x e^{2x}, which also lies in the complementary solution space (y2=xe2xy_2 = x e^{2x}) and satisfies the homogeneous equation. Because r=2r = 2 is a root of multiplicity 22, the trial form must be multiplied by x2x^2: yp=Ax2e2xy_p = A x^2 e^{2x}
  2. Differentiating and solving for AA: yp′=A(2xe2x+2x2e2x)=2A(x+x2)e2xy_p' = A(2x e^{2x} + 2x^2 e^{2x}) = 2A(x + x^2)e^{2x} yp′′=2A[(1+2x)e2x+2(x+x2)e2x]=2A(1+4x+2x2)e2xy_p'' = 2A\left[(1 + 2x)e^{2x} + 2(x + x^2)e^{2x}\right] = 2A(1 + 4x + 2x^2)e^{2x}

    Substitute ypy_p, yp′y_p', and yp′′y_p'' into the differential equation: yp′′−4yp′+4yp=e2x[2A(1+4x+2x2)−4⋅2A(x+x2)+4Ax2]y_p'' - 4y_p' + 4y_p = e^{2x}\left[2A(1 + 4x + 2x^2) - 4 \cdot 2A(x + x^2) + 4A x^2\right] =e2x[(2A+8Ax+4Ax2)−(8Ax+8Ax2)+4Ax2]=2Ae2x= e^{2x}\left[(2A + 8Ax + 4Ax^2) - (8Ax + 8Ax^2) + 4Ax^2\right] = 2A e^{2x}

    Set this equal to 6e2x6e^{2x}: 2Ae2x=6e2x  ⟹  2A=6  ⟹  A=32A e^{2x} = 6e^{2x} \implies 2A = 6 \implies A = 3

    Therefore: yp(x)=3x2e2xy_p(x) = 3x^2 e^{2x}


03

Determine yp(x)y_p(x) Using Method B (Variation of Parameters)

Using fundamental solutions y1=e2xy_1 = e^{2x} and y2=xe2xy_2 = x e^{2x}, calculate the Wronskian W(y1,y2)W(y_1, y_2): W=∣e2xxe2x2e2x(1+2x)e2x∣=e2x⋅(1+2x)e2x−2e2x⋅xe2x=e4x(1+2x−2x)=e4xW = \begin{vmatrix} e^{2x} & x e^{2x} \\ 2e^{2x} & (1 + 2x)e^{2x} \end{vmatrix} = e^{2x} \cdot (1 + 2x)e^{2x} - 2e^{2x} \cdot x e^{2x} = e^{4x}(1 + 2x - 2x) = e^{4x}

The particular solution is given by yp=u1y1+u2y2y_p = u_1 y_1 + u_2 y_2, where: u1′=−y2g(x)W=−(xe2x)(6e2x)e4x=−6xu_1' = -\frac{y_2 g(x)}{W} = -\frac{(x e^{2x})(6e^{2x})}{e^{4x}} = -6x u2′=y1g(x)W=(e2x)(6e2x)e4x=6u_2' = \frac{y_1 g(x)}{W} = \frac{(e^{2x})(6e^{2x})}{e^{4x}} = 6

Integrate each (choosing integration constants to be 00): u1=∫−6x dx=−3x2u_1 = \int -6x \, dx = -3x^2 u2=∫6 dx=6xu_2 = \int 6 \, dx = 6x

Substitute u1u_1 and u2u_2 back into the form for ypy_p: yp(x)=(−3x2)(e2x)+(6x)(xe2x)=−3x2e2x+6x2e2x=3x2e2xy_p(x) = (-3x^2)(e^{2x}) + (6x)(x e^{2x}) = -3x^2 e^{2x} + 6x^2 e^{2x} = 3x^2 e^{2x}

Both methods yield identical particular solutions.


04

Write the General Solution

Combine the complementary and particular solutions: y(x)=yc(x)+yp(x)=c1e2x+c2xe2x+3x2e2xy(x) = y_c(x) + y_p(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}

Typical errors

OverviewACEpath Teacher's Diagnosis

01 The student only multiplies the trial particular solution by x instead of x², overlooking that x e^(2x) is already part of the complementary solution due to the repeated root.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    r2−4r+4=(r−2)2=0  ⟹  yc=c1e2x+c2xe2xr^2 - 4r + 4 = (r-2)^2 = 0 \implies y_c = c_1 e^{2x} + c_2 x e^{2x}

  2. Step 2

    yp=Ae2x is already in yc, so substituting it into the left side yields 0.y_p = A e^{2x} \text{ is already in } y_c, \text{ so substituting it into the left side yields } 0.

  3. Step 3

    yp=Axe2x  ⟹  yp′=Ae2x+2Axe2x  ⟹  yp′′=4Ae2x+4Axe2x  ⟹  yp′′−4yp′+4yp=0  ⟹  0=6e2x  ⟹  No solution exists for ypy_p = A x e^{2x} \implies y_p' = A e^{2x} + 2 A x e^{2x} \implies y_p'' = 4 A e^{2x} + 4 A x e^{2x} \implies y_p'' - 4y_p' + 4y_p = 0 \implies 0 = 6e^{2x} \implies \text{No solution exists for } y_p

    Correct

    yp=Ax2e2x  ⟹  yp′′−4yp′+4yp=2Ae2x=6e2x  ⟹  A=3  ⟹  yp=3x2e2xy_p = A x^2 e^{2x} \implies y_p'' - 4y_p' + 4y_p = 2A e^{2x} = 6e^{2x} \implies A = 3 \implies y_p = 3x^2 e^{2x}

    Because r=2r = 2 has multiplicity 22, both e2xe^{2x} and xe2xx e^{2x} are in ycy_c. Therefore, multiplying by xx once still produces a homogeneous solution. You must multiply by x2x^2, giving yp=Ax2e2xy_p = A x^2 e^{2x}.

  4. Step 4

    y=c1e2x+c2xe2xy = c_1 e^{2x} + c_2 x e^{2x}

    Correct

    y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}, verified with Method B (Variation of Parameters)

    Because ypy_p was not determined, the general solution is missing the particular solution term, and the comparison with Method B was not carried out.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly solved the characteristic equation for the repeated root r=2r = 2.

You wrote the correct complementary solution yc(x)=c1e2x+c2xe2xy_c(x) = c_1 e^{2x} + c_2 x e^{2x}.

You clearly explained why yp=Ae2xy_p = A e^{2x} produces zero when substituted into the differential operator.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Insufficient scaling power for repeated root in Method of Undetermined Coefficients

no

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

You checked that e2xe^{2x} was in the complementary solution and multiplied by xx, but you did not notice that xe2xx e^{2x} was also already present in ycy_c due to the multiplicity-2 root. Whenever a driving term shares an exponent with a root of multiplicity mm, the trial form must be multiplied by xmx^m.

REASONING PATH
Your ACEpath teacher’s suggested approach
Match Multiplicity with Powers of x
  • If the driving term is erxe^{rx} and rr is a root of multiplicity mm of the characteristic polynomial, the trial particular solution must take the form AxmerxA x^m e^{rx}.

  • Always compare your proposed trial term against every individual term in ycy_c. If your trial term is linearly dependent on any term in ycy_c, multiply by xx again until it is completely independent of ycy_c.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Since r=2r = 2 has multiplicity m=2m = 2, set yp=Ax2e2xy_p = A x^2 e^{2x}.

  2. Compute the derivatives: yp′=2A(x+x2)e2xy_p' = 2A(x + x^2)e^{2x} and yp′′=2A(1+4x+2x2)e2xy_p'' = 2A(1 + 4x + 2x^2)e^{2x}.

  3. Substitute into the ODE: yp′′−4yp′+4yp=2Ae2xy_p'' - 4y_p' + 4y_p = 2A e^{2x}.

  4. Equate to the driving term: 2Ae2x=6e2x  ⟹  2A=6  ⟹  A=32A e^{2x} = 6e^{2x} \implies 2A = 6 \implies A = 3, giving yp(x)=3x2e2xy_p(x) = 3x^2 e^{2x}.

  5. Verify with Variation of Parameters: with y1=e2xy_1 = e^{2x}, y2=xe2xy_2 = x e^{2x}, the Wronskian is W=e4xW = e^{4x}. Then u1′=−6x  ⟹  u1=−3x2u_1' = -6x \implies u_1 = -3x^2, and u2′=6  ⟹  u2=6xu_2' = 6 \implies u_2 = 6x, so yp=u1y1+u2y2=−3x2e2x+6x2e2x=3x2e2xy_p = u_1 y_1 + u_2 y_2 = -3x^2 e^{2x} + 6x^2 e^{2x} = 3x^2 e^{2x}.

Final answer

y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}

NEXT STEPS
Final Takeaways from Your Teacher
  • Review the multiplication rule for undetermined coefficients: always multiply by xmx^m, where mm is the multiplicity of the root in the characteristic equation.

  • Practice computing the Wronskian and integrating for Variation of Parameters so you have a reliable alternative method when roots repeat.

OverviewACEpath Teacher's Diagnosis

02 The student calculates the Wronskian incorrectly by treating y2' as 2e^(2x) instead of applying the product rule to x e^(2x), leading to an erroneous particular solution.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    r2−4r+4=0  ⟹  r=2 (repeated)  ⟹  yc=c1e2x+c2xe2xr^2 - 4r + 4 = 0 \implies r = 2 \text{ (repeated)} \implies y_c = c_1 e^{2x} + c_2 x e^{2x}

  2. Step 2

    e2x satisfies the homogeneous equation, so y′′−4y′+4y=0.e^{2x} \text{ satisfies the homogeneous equation, so } y'' - 4y' + 4y = 0.

  3. Step 3

    y1=e2x,  y2=xe2x  ⟹  W=e2x(2e2x)−2e2x(xe2x)=2e4x−2xe4xy_1 = e^{2x}, \; y_2 = x e^{2x} \implies W = e^{2x}(2e^{2x}) - 2e^{2x}(x e^{2x}) = 2e^{4x} - 2x e^{4x}

    Correct

    W(y1,y2)=∣e2xxe2x2e2x(1+2x)e2x∣=e2x(1+2x)e2x−2e2x(xe2x)=e4xW(y_1, y_2) = \begin{vmatrix} e^{2x} & x e^{2x} \\ 2e^{2x} & (1 + 2x)e^{2x} \end{vmatrix} = e^{2x}(1 + 2x)e^{2x} - 2e^{2x}(x e^{2x}) = e^{4x}

    You differentiated y2=xe2xy_2 = x e^{2x} as 2e2x2e^{2x} instead of using the product rule: y2′=(1)e2x+x(2e2x)=(1+2x)e2xy_2' = (1)e^{2x} + x(2e^{2x}) = (1 + 2x)e^{2x}. This made your Wronskian incorrect.

  4. Step 4

    u1′=−xe2x6e2x2e4x=−3x  ⟹  u1=−32x2u_1' = -x e^{2x} \frac{6e^{2x}}{2e^{4x}} = -3x \implies u_1 = -\frac{3}{2}x^2 \newline u2′=e2x6e2x2e4x=3  ⟹  u2=3xu_2' = e^{2x} \frac{6e^{2x}}{2e^{4x}} = 3 \implies u_2 = 3x

    Correct

    u1′=−(xe2x)(6e2x)e4x=−6x  ⟹  u1=−3x2u_1' = -\frac{(x e^{2x})(6e^{2x})}{e^{4x}} = -6x \implies u_1 = -3x^2 \newline u2′=(e2x)(6e2x)e4x=6  ⟹  u2=6xu_2' = \frac{(e^{2x})(6e^{2x})}{e^{4x}} = 6 \implies u_2 = 6x

    Because the Wronskian was incorrect, your values for u1′u_1' and u2′u_2' were off by a factor of 2, leading to incorrect functions u1u_1 and u2u_2.

  5. Step 5

    yp=u1y1+u2y2=−32x2e2x+3x2e2x=32x2e2xy_p = u_1 y_1 + u_2 y_2 = -\frac{3}{2}x^2 e^{2x} + 3x^2 e^{2x} = \frac{3}{2}x^2 e^{2x} \newline y=c1e2x+c2xe2x+32x2e2xy = c_1 e^{2x} + c_2 x e^{2x} + \frac{3}{2}x^2 e^{2x}

    Correct

    yp=(−3x2)(e2x)+(6x)(xe2x)=3x2e2xy_p = (-3x^2)(e^{2x}) + (6x)(x e^{2x}) = 3x^2 e^{2x} \newline y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}

    Your final assembly followed your computed u1u_1 and u2u_2 consistently, but inherited the earlier differentiation error.

WHAT YOU DID WELL
Compliments from Your Teacher

You solved the characteristic equation and identified the repeated root r=2r = 2 correctly.

You correctly formed the complementary solution yc(x)=c1e2x+c2xe2xy_c(x) = c_1 e^{2x} + c_2 x e^{2x}.

You correctly explained why e2xe^{2x} cannot serve as the particular solution.

You applied the Variation of Parameters setup formulas u1′=−y2gWu_1' = -\frac{y_2 g}{W} and u2′=y1gWu_2' = \frac{y_1 g}{W} using the standard structure.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Product rule omission in Wronskian derivative

no

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

When computing the Wronskian W(y1,y2)W(y_1, y_2), you evaluated the derivative of y2=xe2xy_2 = x e^{2x} without applying the product rule ddx[uv]=u′v+uv′\frac{d}{dx}[uv] = u'v + uv', mistakenly taking y2′y_2' as 2e2x2e^{2x} rather than (1+2x)e2x(1 + 2x)e^{2x}.

REASONING PATH
Your ACEpath teacher’s suggested approach
Product Rule for Repeated-Root Solutions
  • For a basis solution of the form y2=xerxy_2 = x e^{rx}, its derivative is y2′=erx+rxerx=(1+rx)erxy_2' = e^{rx} + r x e^{rx} = (1 + rx)e^{rx}.

  • Always write out both terms of the product rule explicitly before substituting into the determinant ∣y1y2y1′y2′∣\begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix}.

Simplifying the Wronskian for Second-Order ODEs
  • For repeated roots rr, the Wronskian of y1=erxy_1 = e^{rx} and y2=xerxy_2 = x e^{rx} always simplifies to W=e2rxW = e^{2rx}.

  • Check that all variable terms containing xx in the expanded Wronskian cancel out: erx(1+rx)erx−rerx(xerx)=e2rx(1+rx−rx)=e2rxe^{rx}(1+rx)e^{rx} - r e^{rx}(x e^{rx}) = e^{2rx}(1 + rx - rx) = e^{2rx}.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Compute the derivative of y2=xe2xy_2 = x e^{2x} using the product rule: y2′=1⋅e2x+x⋅(2e2x)=(1+2x)e2xy_2' = 1 \cdot e^{2x} + x \cdot (2e^{2x}) = (1 + 2x)e^{2x}.

  2. Compute the Wronskian: W=y1y2′−y1′y2=e2x(1+2x)e2x−2e2x(xe2x)=e4x(1+2x−2x)=e4xW = y_1 y_2' - y_1' y_2 = e^{2x}(1 + 2x)e^{2x} - 2e^{2x}(x e^{2x}) = e^{4x}(1 + 2x - 2x) = e^{4x}.

  3. Substitute W=e4xW = e^{4x} into the formulas for u1′u_1' and u2′u_2': u1′=−(xe2x)(6e2x)e4x=−6xu_1' = -\frac{(x e^{2x})(6e^{2x})}{e^{4x}} = -6x, and u2′=(e2x)(6e2x)e4x=6u_2' = \frac{(e^{2x})(6e^{2x})}{e^{4x}} = 6.

  4. Integrate to find u1=∫−6x dx=−3x2u_1 = \int -6x \, dx = -3x^2 and u2=∫6 dx=6xu_2 = \int 6 \, dx = 6x.

  5. Combine to find yp=u1y1+u2y2=(−3x2)(e2x)+(6x)(xe2x)=3x2e2xy_p = u_1 y_1 + u_2 y_2 = (-3x^2)(e^{2x}) + (6x)(x e^{2x}) = 3x^2 e^{2x}.

Final answer

y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}

NEXT STEPS
Final Takeaways from Your Teacher
  • Practice taking the derivative of products such as xekxx e^{kx}, xsin⁡(kx)x \sin(kx), and x2ekxx^2 e^{kx} before inserting them into Wronskian determinants.

  • Remember that for any constant-coefficient linear ODE y′′+ay′+by=0y'' + ay' + by = 0, Abel's theorem guarantees W(x)=Ce−axW(x) = C e^{-ax}, so WW cannot contain standalone polynomial terms in xx.

OverviewACEpath Teacher's Diagnosis

03 The student forgets that the characteristic equation has a repeated root and writes distinct exponential terms for the complementary solution, leading to an incorrect complementary and general solution.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Partially correct
  1. Step 1

    r2−4r+4=0  ⟹  r=2  ⟹  yc=c1e2x+c2e−2xr^2 - 4r + 4 = 0 \implies r = 2 \implies y_c = c_1 e^{2x} + c_2 e^{-2x}

    Correct

    r2−4r+4=0  ⟹  (r−2)2=0  ⟹  r=2 (multiplicity 2)  ⟹  yc=c1e2x+c2xe2xr^2 - 4r + 4 = 0 \implies (r - 2)^2 = 0 \implies r = 2 \text{ (multiplicity } 2) \implies y_c = c_1 e^{2x} + c_2 x e^{2x}

    The characteristic equation has a single repeated real root r=2r = 2 of multiplicity 22. For repeated roots, the two linearly independent homogeneous solutions are erxe^{rx} and xerxx e^{rx}, giving yc=c1e2x+c2xe2xy_c = c_1 e^{2x} + c_2 x e^{2x}, not c1e2x+c2e−2xc_1 e^{2x} + c_2 e^{-2x}.

  2. Step 2

    yp=Ae2x satisfies the homogeneous equation y′′−4y′+4y=0, so it gives 0=6e2x.y_p = A e^{2x} \text{ satisfies the homogeneous equation } y'' - 4y' + 4y = 0, \text{ so it gives } 0 = 6e^{2x}.

  3. Step 3

    yp=Ax2e2x  ⟹  yp′′−4yp′+4yp=2Ae2x=6e2x  ⟹  A=3  ⟹  yp=3x2e2xy_p = A x^2 e^{2x} \implies y_p'' - 4y_p' + 4y_p = 2A e^{2x} = 6e^{2x} \implies A = 3 \implies y_p = 3x^2 e^{2x}

  4. Step 4

    y=c1e2x+c2e−2x+3x2e2xy = c_1 e^{2x} + c_2 e^{-2x} + 3x^2 e^{2x}

    Correct

    y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}

    Your combination of ycy_c and ypy_p follows logically from your earlier work, but the final general solution carries forward the error from yc(x)y_c(x).

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly factored and solved the characteristic equation to identify r=2r = 2.

You clearly explained why the trial guess yp=Ae2xy_p = A e^{2x} yields 0=6e2x0 = 6e^{2x}.

You correctly scaled the trial form to Ax2e2xA x^2 e^{2x} and evaluated A=3A = 3 to find yp(x)y_p(x).

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Repeated Characteristic Root Rule Misapplied

You wrote e−2xe^{-2x} as the second homogeneous term instead of multiplying by xx to get xe2xx e^{2x}.

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

Confusing the repeated root case (r−a)2=0(r - a)^2 = 0 with the distinct conjugate roots case r2−a2=0r^2 - a^2 = 0 (r=±ar = \pm a), forgetting that a root of multiplicity kk requires basis solutions erx,xerx,…,xk−1erxe^{rx}, x e^{rx}, \dots, x^{k-1} e^{rx}.

REASONING PATH
Your ACEpath teacher’s suggested approach
Repeated Root Basis
  • If the characteristic equation has a repeated real root rr of multiplicity 22, the two independent solutions are y1=erxy_1 = e^{rx} and y2=xerxy_2 = x e^{rx}.

  • Check whether the characteristic polynomial factors as a perfect square (r−a)2=0(r - a)^2 = 0. If so, always multiply the second basis function by xx rather than switching signs in the exponent.

Dual-Method Verification
  • When a prompt asks to couple or compare Method A and Method B, solve for ypy_p via both Undetermined Coefficients and Variation of Parameters (yp=u1y1+u2y2y_p = u_1 y_1 + u_2 y_2).

  • Compute the Wronskian W(y1,y2)W(y_1, y_2) and integrate u1′=−y2gWu_1' = -\frac{y_2 g}{W} and u2′=y1gWu_2' = \frac{y_1 g}{W} to confirm your undetermined coefficients result.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Write the correct complementary solution for repeated root r=2r = 2: yc(x)=c1e2x+c2xe2xy_c(x) = c_1 e^{2x} + c_2 x e^{2x}.

  2. Identify y1=e2xy_1 = e^{2x} and y2=xe2xy_2 = x e^{2x}, then compute the Wronskian: W=e2x(1+2x)e2x−(2e2x)(xe2x)=e4xW = e^{2x}(1 + 2x)e^{2x} - (2e^{2x})(x e^{2x}) = e^{4x}.

  3. Set up Variation of Parameters with driving term g(x)=6e2xg(x) = 6e^{2x}: u1′=−(xe2x)(6e2x)e4x=−6x  ⟹  u1=−3x2u_1' = -\frac{(x e^{2x})(6e^{2x})}{e^{4x}} = -6x \implies u_1 = -3x^2, and u2′=(e2x)(6e2x)e4x=6  ⟹  u2=6xu_2' = \frac{(e^{2x})(6e^{2x})}{e^{4x}} = 6 \implies u_2 = 6x.

  4. Form yp=u1y1+u2y2=−3x2e2x+6x2e2x=3x2e2xy_p = u_1 y_1 + u_2 y_2 = -3x^2 e^{2x} + 6x^2 e^{2x} = 3x^2 e^{2x}, verifying Method A.

Final answer

y(x)=c1e2x+c2xe2x+3x2e2xy(x) = c_1 e^{2x} + c_2 x e^{2x} + 3x^2 e^{2x}

NEXT STEPS
Final Takeaways from Your Teacher
  • Review the three standard cases for roots of characteristic equations: distinct real, repeated real, and complex conjugate pairs.

  • Practice computing Wronskians for basis sets involving eaxe^{ax} and xeaxx e^{ax} to reinforce Variation of Parameters.

Lock it in

Similar question

01

Find a particular solution yp(x)y_p(x) to the differential equation y′′−2y′+y=4exy'' - 2y' + y = 4e^x using the Method of Undetermined Coefficients.

Answer

yp(x)=2x2exy_p(x) = 2x^2 e^x. The characteristic equation (r−1)2=0(r-1)^2 = 0 has root r=1r = 1 with multiplicity 22, so yc=c1ex+c2xexy_c = c_1 e^x + c_2 x e^x. The trial form is yp=Ax2exy_p = A x^2 e^x. Differentiating and substituting gives yp′′−2yp′+yp=2Aex=4ex  ⟹  A=2y_p'' - 2y_p' + y_p = 2A e^x = 4e^x \implies A = 2.

02

Find the general solution to y′′+4y′+4y=12e−2xy'' + 4y' + 4y = 12e^{-2x}.

Answer

y(x)=c1e−2x+c2xe−2x+6x2e−2xy(x) = c_1 e^{-2x} + c_2 x e^{-2x} + 6x^2 e^{-2x}. The characteristic equation is (r+2)2=0(r+2)^2 = 0, giving repeated root r=−2r = -2. The trial form is yp=Ax2e−2xy_p = A x^2 e^{-2x}. Substituting yields 2Ae−2x=12e−2x  ⟹  A=62A e^{-2x} = 12e^{-2x} \implies A = 6.

03

For the differential equation y′′−4y′+4y=8xe2xy'' - 4y' + 4y = 8x e^{2x}, determine the correct form of the trial particular solution yp(x)y_p(x) with undetermined coefficients (do not solve for the coefficients).

Answer

yp(x)=x2(Ax+B)e2x=(Ax3+Bx2)e2xy_p(x) = x^2(A x + B)e^{2x} = (A x^3 + B x^2)e^{2x}. The base trial form for a linear polynomial times e2xe^{2x} is (Ax+B)e2x(A x + B)e^{2x}. Since r=2r = 2 is a double root of the characteristic polynomial, both e2xe^{2x} and xe2xx e^{2x} are in ycy_c, requiring multiplication by x2x^2.

Loading workspace…