∫Calc Practice

Probability density functions

Problem 5.703 · medium

Find \( \displaystyle k \) so that \( \displaystyle f(x) = k\left(e^{- 2 x}\right) \) for \( \displaystyle x \ge 0 \) (and 0 elsewhere) is a probability density. Then find \( \displaystyle P(0 \le X \le \frac{1}{2}) \) and the mean of \( \displaystyle X \).
  1. A density integrates to 1 over its whole range.
    Reviewed
  2. \[ \int\limits_{0}^{\infty} e^{- 2 x}\, dx = \frac{1}{2} \]
    The integral without k.✓ Proved
  3. \[ 2 \cdot 1 \cdot \frac{1}{2} = 1 \]
    So k = 2: k times that integral is 1.✓ Proved
  4. \[ \int\limits_{0}^{\frac{1}{2}} 2 e^{- 2 x}\, dx = 1 - e^{-1} \]
    The probability is the area over the interval.✓ Proved
  5. \[ \int\limits_{0}^{\infty} 2 x e^{- 2 x}\, dx = \frac{1}{2} \]
    The mean, ∫ x f(x) dx.✓ Proved
Answer \( k = 2,\ P = 1 - e^{-1},\ \mu = \frac{1}{2} \)

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

The full receipt
LineStatusChecked byDetail
1Reviewedreviewers: gpt-oss:20b, qwen3.6:27b-mlxa 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
5✓ Provedsympy 1.14.0simplify(lhs - rhs) reduced to 0
answer, a second way✓ Checked independentlysympy 1.14.0 + mpmath 1.3.0mpmath quadrature for the normalizing constant, the probability and the mean

Reviewers

  • gpt-oss:20b: pass
  • qwen3.6:27b-mlx: pass
Every verdict on record (6)
  • qwen3.6:27b-mlx: pass 2026-10-20
  • gpt-oss:20b: pass 2026-10-20
  • qwen3.6:27b-mlx: pass 2026-10-19 — The solution correctly identifies the normalization condition, calculates k, computes the probability over the specified interval, and calculates the mean. All steps are logically sound and algebraically correct.
  • gpt-oss:20b: pass 2026-10-19
  • qwen3.6:27b-mlx: pass 2026-10-19 — The solution correctly identifies the normalization condition, calculates k, computes the probability over the specified interval, and calculates the mean. All steps are logically sound and mathematically correct.
  • gpt-oss:20b: pass 2026-10-19

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