Let \(f(x) = \begin{cases} 2x, & 0 \le x \le 1 \\ x^2 + 1, & 1 \lt x \le 3 \end{cases}\)
Then \(\displaystyle\int_{0}^{3} f(x)\,dx\) is equal to
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{35}{3}\)
The rule for f changes at x = 1, so the interval is split at x = 1 using the property
\( \displaystyle \int_{0}^{3} f(x)\,dx = \int_{0}^{1} f(x)\,dx + \int_{1}^{3} f(x)\,dx \)
On [0, 1], f(x) = 2x:
\( \displaystyle \int_{0}^{1} 2x\,dx = \left[x^2\right]_{0}^{1} = 1 \)
On [1, 3], f(x) = x2 + 1:
\( \displaystyle \int_{1}^{3} (x^2 + 1)\,dx = \left[\frac{x^3}{3} + x\right]_{1}^{3} \)
\( \displaystyle = (9 + 3) - \left(\frac{1}{3} + 1\right) = \frac{32}{3} \)
Adding the two parts:
\( \displaystyle \int_{0}^{3} f(x)\,dx = 1 + \frac{32}{3} = \frac{35}{3} \)
Why the other options are incorrect
Option (1) \(\displaystyle\frac{32}{3}\) — Incorrect. This is only the part from 1 to 3; the part from 0 to 1, which is 1, is missing.
Option (3) 12 — Incorrect. This uses \(x^2 + 1\) on the whole interval [0, 3].
Option (4) 9 — Incorrect. This uses 2x on the whole interval [0, 3].