∫Calc Practice

Making a piecewise function continuous

Problem 1.200 · medium

Find the value of \( \displaystyle k \) that makes \( \displaystyle f(x) = \begin{cases} k x - 5 & x < 1 \\ 2 x - 1 & x \ge 1 \end{cases} \) continuous for all \( \displaystyle x \).
  1. Each piece is a polynomial, so f is continuous everywhere except possibly at x = 1. There the left-hand limit, the right-hand limit and f(c) must agree.
  2. \[ \lim_{x \to 1^-}\left(k x - 5\right) = k - 5 \]
    The left-hand limit, in terms of k.✓ Proved
  3. \[ \lim_{x \to 1^+}\left(2 x - 1\right) = 1 \]
    The right-hand limit, which is also f(c).✓ Proved
  4. \[ 1 \]
    Setting them equal gives k = 6.✓ Proved
Answer \( k = 6 \)

Lines: 3 proved, 1 not checked. The answer was also checked a second way, without looking at the solution. A reviewer's objection to the explanation stands; see the receipt.

The full receipt
LineStatusChecked byDetail
1Not checked—a sentence; read, not computed
2✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
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.0with that k the two pieces agree at c ± 1e-10

Reviewers

  • gpt-oss:20b: fail (error) — The solution incorrectly sets the left- and right-hand limits equal. It writes "1 = 1" instead of the correct equation k‑5 = 1, which leads to the correct value k = 6. The conclusion is not justified by the preceding equations.
  • qwen3.6:27b-mlx: fail (error) — The solution claims that setting the limits equal gives k = 6, but the equation shown is 1 = 1, which is independent of k. The correct step requires equating k - 5 to 1.
Every verdict on record (4)
  • qwen3.6:27b-mlx: fail (error) 2026-10-04 — The solution claims that setting the limits equal gives k = 6, but the equation shown is 1 = 1, which is independent of k. The correct step requires equating k - 5 to 1.
  • gpt-oss:20b: fail (error) 2026-10-04 — The solution incorrectly sets the left- and right-hand limits equal. It writes "1 = 1" instead of the correct equation k‑5 = 1, which leads to the correct value k = 6. The conclusion is not justified by the preceding equations.
  • qwen3.6:27b-mlx: fail (error) 2026-10-04 — The solution sets the right-hand limit (1) equal to itself (1) instead of equating the left-hand limit (k-5) to the right-hand limit. This logical error fails to solve for k, despite the stated answer being correct.
  • gpt-oss:20b: fail (misleading) 2026-10-04 — Step 4 incorrectly states "1 = 1" instead of equating the left‑hand limit k‑5 to the right‑hand limit 1. The conclusion that k = 6 is correct, but the sentence misleads the reader about how the equality is obtained.

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/continuity_parameter, checked 2026-10-04 with SymPy 1.14.0.