Esta lección aún no está traducida. Por ahora se muestra en inglés; la versión en español está en camino.
A step function is a piecewise function whose pieces are all flat. Its graph looks like a staircase. Prices often work this way: parking charged by the started hour, shipping charged by weight bands, postage by the ounce.
The basic example is the floor function $\lfloor x \rfloor$, the greatest integer less than or equal to $x$. So $\lfloor 2.7 \rfloor = 2$, $\lfloor 5 \rfloor = 5$, and $\lfloor -1.3 \rfloor = -2$ (on the number line, move left to the first integer).
💡 Por qué funciona
On each interval from one integer up to (but not including) the next, the floor function has one constant value. For $2 \le x < 3$, $\lfloor x \rfloor = 2$. At $x = 3$ it jumps to $3$. Each step includes its left end (a filled dot) and leaves out its right end (an open dot), so every input still has exactly one output. Drawing vertical lines between the steps would put many outputs above a single input, which a function cannot have.
$f(x) = \lfloor x \rfloor$. Drag the input: inside a step the output stays the same, and at each whole number it jumps up by $1$.
🔑 Idea clave
A step function is constant on each interval and jumps between intervals. Use the endpoint symbols (filled or open dots, $\le$ or $<$) to decide which step a boundary input belongs to.
Worked examples
✏️ Ejemplo resuelto: Floor of a negative number
Find $\lfloor -3.4 \rfloor$ and $\lfloor 3.4 \rfloor$.
A garage charges $\$3$ for each hour or part of an hour. What does $2$ hours $15$ minutes cost? Graph the cost for up to $5$ hours.
Any started hour counts in full, so $2$ h $15$ min is charged as $3$ hours.
Cost: $3 \cdot 3 = \$9$.
On the graph, each hour is a step: the open dot at the left end and the filled dot at the right end, because exactly $2$ hours still costs $\$6$.
Respuesta: $\$9$
Parking cost $C(t)$ for $t$ hours: here each step includes its right end, the opposite of the floor function.
⚠️ Error común
Joining the steps with vertical lines. A vertical segment would give one input many outputs, so it is not part of a function's graph. Check a boundary input, like $t = 2$ hours: it should land on exactly one step.
Práctica
Apruebas con 3 respuestas correctas, las 2 últimas seguidas. Cada respuesta correcta da 2 XP.