∫Calc Practice

Undetermined coefficients

Problem 6.407 · hard

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

Lines: 3 proved, 1 reviewed. The answer was also checked a second way, without looking at the solution. The reviewers disagree about how one step is explained; every verdict is in the receipt.

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 — The solution correctly identifies the homogeneous and particular solutions, and the constants are determined correctly from the initial conditions.
Every verdict on record (4)
  • gpt-oss:20b: pass 2026-10-13
  • qwen3.6:27b-mlx: pass 2026-10-13 — The solution correctly identifies the homogeneous and particular solutions, and the constants are determined correctly from the initial conditions.
  • gpt-oss:20b: pass 2026-10-13
  • qwen3.6:27b-mlx: fail (error) 2026-10-13 — The particular solution is incorrect; substituting y_p = cos(3x)/2 into y'' - y yields 5cos(3x), not -5cos(3x). The correct particular solution is -cos(3x)/2.

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-13 with SymPy 1.14.0.