∫Calc Practice

Undetermined coefficients

Problem 6.244 · hard

Solve \( \displaystyle y'' + 3y' - 4y = - \sin{\left(2 x \right)} \) with \( \displaystyle y(0) = 2 \), \( \displaystyle y'(0) = -1 \).
  1. \[ r^{2} + 3 r - 4 = \left(r - 1\right) \left(r + 4\right) \]
    The characteristic equation has roots 1 and -4.✓ Proved
  2. So y_h = C₁e^(1x) + C₂e^(-4x). Guess y_p = A*cos(2*x) + B*sin(2*x).
    Reviewed
  3. \[ - \frac{8 \sin{\left(2 x \right)}}{25} - \frac{6 \cos{\left(2 x \right)}}{25} + 3 \frac{d}{d x} \left(\frac{2 \sin{\left(2 x \right)}}{25} + \frac{3 \cos{\left(2 x \right)}}{50}\right) + \frac{d^{2}}{d x^{2}} \left(\frac{2 \sin{\left(2 x \right)}}{25} + \frac{3 \cos{\left(2 x \right)}}{50}\right) = - \sin{\left(2 x \right)} \]
    Matching coefficients gives y_p = 2*sin(2*x)/25 + 3*cos(2*x)/50; it satisfies the equation.✓ Proved
  4. \[ \left[\begin{matrix}\left. \frac{33 e^{x}}{25} + \frac{2 \sin{\left(2 x \right)}}{25} + \frac{3 \cos{\left(2 x \right)}}{50} + \frac{31 e^{- 4 x}}{50} \right|_{\substack{ x=0 }}\\\left. \frac{d}{d x} \left(\frac{33 e^{x}}{25} + \frac{2 \sin{\left(2 x \right)}}{25} + \frac{3 \cos{\left(2 x \right)}}{50} + \frac{31 e^{- 4 x}}{50}\right) \right|_{\substack{ x=0 }}\end{matrix}\right] = \left[\begin{matrix}2\\-1\end{matrix}\right] \]
    The initial conditions fix C₁ = 33/25 and C₂ = 31/50.✓ Proved
Answer \( y = \frac{33 e^{x}}{25} + \frac{2 \sin{\left(2 x \right)}}{25} + \frac{3 \cos{\left(2 x \right)}}{50} + \frac{31 e^{- 4 x}}{50} \)

✓ Nihil obstat Lines: 3 proved, 1 reviewed. The answer was also checked a second way, without looking at the solution. Reviewers found nothing wrong with the explanation.

The full receipt
LineStatusChecked byDetail
1✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
2Reviewedreviewers: gpt-oss:20b, qwen3.6:27b-mlxa sentence; read, not computed
3✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
4✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
answer, a second way✓ Checked independentlysympy 1.14.0 + mpmath 1.3.0SymPy's dsolve with the same initial conditions agrees

Reviewers

  • gpt-oss:20b: pass
  • qwen3.6:27b-mlx: pass
Every verdict on record (4)
  • qwen3.6:27b-mlx: pass 2026-10-05
  • gpt-oss:20b: pass 2026-10-05
  • qwen3.6:27b-mlx: pass 2026-10-05
  • gpt-oss:20b: pass 2026-10-05

Proved: SymPy reduced the difference between the two sides to zero. Checked independently: a separate method, named above, confirmed it. Checked numerically: the two sides agree at every sampled point, which is evidence, not proof. Reviewed: a model or a person read it; that is all a sentence can have. Solution by generator:structured/undetermined_coefficients, checked 2026-10-05 with SymPy 1.14.0.