∫Calc Practice

Integral of \( \displaystyle \left(x - 1\right) e^{1 - x} \)

Problem 4.159 · medium

Find \( \displaystyle \int \left(x - 1\right) e^{1 - x} \, dx \). (Omit the constant of integration.)
  1. \[ \int \left(x - 1\right) e^{1 - x}\, dx \]
    integralStart with the integral of the function.✓ Proved
  2. \[ = \int \left(x e^{1 - x} - e^{1 - x}\right)\, dx \]
    linearityDistribute the exponential term.✓ Proved
  3. \[ = \int x e^{1 - x}\, dx - \int e^{1 - x}\, dx \]
    linearitySplit the integral into two parts.✓ Proved
  4. \[ = e^{1 - x} + \int x e^{1 - x}\, dx \]
    antiderivative algebraIntegrate the second term. Simplify the signs.✓ Proved
  5. \[ = \operatorname{parts}{\left(x e^{1 - x},x,1,e^{1 - x},- e^{1 - x},0 \right)} \]
    partsUse integration by parts on the first integral.Not checked
  6. \[ = - x e^{1 - x} + e^{1 - x} + \int e^{1 - x}\, dx \]
    partsApply the integration by parts formula.Not checked
  7. \[ = - x e^{1 - x} \]
    antiderivative simplifyIntegrate the remaining exponential term. Combine the remaining terms.✓ Proved
Answer \( - x e^{1 - x} + C \)

Lines: 8 proved, 2 not checked. 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.0line 1 is the problem as stated
2✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
3✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
4✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
5✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
6Not checked—simplify left (-x - parts(x*exp(1 - x), x, 1, exp(1 - x), -exp(1 - x), 0)*exp(x - 1))*exp(1 - x); no point in the sample was defined on both lines
7Not checked—simplify left (x + parts(x*exp(1 - x), x, 1, exp(1 - x), -exp(1 - x), 0)*exp(x - 1))*exp(1 - x); no point in the sample was defined on both lines
8✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
9✓ Provedsympy 1.14.0simplify(a - b) reduced to 0
answer✓ Provedsympy 1.14.0final line against the stated answer: simplify(a - b) reduced to 0
answer, a second way✓ Provedsympy 1.14.0SymPy differentiated the stated antiderivative back to the integrand

Reviewers

  • gpt-oss:20b: fail (error) — Step 6 incorrectly applies integration by parts: it sets u=1 and dv=exp(1‑x) dx, but then assigns v=0, which is inconsistent with the rule. The correct choice should be u=x, dv=exp(1‑x) dx, yielding du=dx and v=−exp(1‑x).
  • qwen3.6:27b-mlx: pass
Every verdict on record (4)
  • qwen3.6:27b-mlx: pass 2026-09-29
  • gpt-oss:20b: fail (error) 2026-09-29 — Step 6 incorrectly applies integration by parts: it sets u=1 and dv=exp(1‑x) dx, but then assigns v=0, which is inconsistent with the rule. The correct choice should be u=x, dv=exp(1‑x) dx, yielding du=dx and v=−exp(1‑x).
  • qwen3.6:27b-mlx: pass 2026-09-29
  • gpt-oss:20b: fail (error) 2026-09-29 — Step 6 attempts to invoke the integration‑by‑parts rule but does not actually apply it to the integral; it merely writes a function call with incorrect arguments, violating the rule‑application granularity requirement.

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 gemma4:26b, checked 2026-09-29 with SymPy 1.14.0.