Category: Functions Level: 201
f(x) = (x - 1)2 - 3 on [-1, 3]: domain [-1, 3], range [-3, 1]
Shine a light straight down on a graph and its shadow on the x-axis is the domain. Shine a light from the side and its shadow on the y-axis is the range.
This graph starts at x = −1 and stops at x = 3. The solid dots say both ends belong to the graph.
f(x) = (x - 1)2 - 3, -1 ≤ x ≤ 3
Shine a light straight down. The graph throws a shadow on the x-axis from −1 to 3. That shadow is the domain: every x the graph uses.
domain: -1 ≤ x ≤ 3
Now shine the light from the side. The shadow on the y-axis runs from the lowest point, −3, up to 1. The bottom comes from the turning point, not an end.
range: -3 ≤ y ≤ 1
Square brackets mean the ends count, because the dots are solid. Each shadow is one interval. Both ends of the graph sit at height 1, and neither one sets the bottom.
domain [-1, 3], range [-3, 1]
cd svg-generator python3 -m svgmath render domain-range --out /tmp/domain-range
Source: svgmath/diagrams/function_basics.py