Find the domain and the range of the function. f(x) = { 1/2x, for x < 0; x + 6, for...

Check the final answer first, then review the worked steps.

Answer

\((-\infty, 0) \cup [6, \infty)\)

Work

Domain: x < 0 \cup x \geq 0 \implies (-\infty, \infty)
Range 1: x < 0 \implies \frac{1}{2}x < 0 \implies (-\infty, 0)
Range 2: x \geq 0 \implies x+6 \geq 6 \implies [6, \infty)
Total Range: (-\infty, 0) \cup [6, \infty)

Step-by-step solution

  1. Identify the domain: The function is defined for $x < 0$ and $x \geq 0$, which covers all real numbers $(-\infty, \infty)$.
  2. Find the range for $x < 0$: Since $f(x) = \frac{1}{2}x$, as $x$ approaches $0$ from the left, $f(x)$ approaches $0$. Since $x$ can be any negative number, $f(x)$ can be any negative number. This gives $(-\infty, 0)$.
  3. Find the range for $x \geq 0$: Since $f(x) = x + 6$, at $x = 0$, $f(0) = 6$. As $x$ increases, $f(x)$ increases towards $\infty$. This gives $[6, \infty)$.
  4. Combine the ranges: The total range is the union of the two pieces: $(-\infty, 0) \cup [6, \infty)$.