Special functions
Some functions switch rules when the input crosses a boundary. Conditions route each input to exactly one formula; endpoint symbols show where each graph piece begins and ends.
Every allowed input should land in one—and only one—rule.
Decode the definition
Formula + conditionFor \(f(x)=x+2\) when \(x<1\), and \(f(x)=4\) when \(x\ge1\), the conditions divide the number line at \(x=1\).
Evaluate by testing the input
Choose before substitutingFor the same function, \(-3<1\), so \(f(-3)=-3+2=-1\). Since \(2\ge1\), \(f(2)=4\).
Translate inequalities into endpoints
Open versus closedA strict sign \(<\) or \(>\) draws an open circle. An inclusive sign \(\le\) or \(\ge\) draws a closed circle. At \(x=1\), only the constant piece includes the endpoint.
See absolute value as two circuits
Distance from zeroAbsolute value uses opposite linear rules: \(|x|=-x\) for \(x<0\), and \(|x|=x\) for \(x\ge0\). The pieces meet at the origin to form a V.
Read a step function
Constant, then jumpA step function keeps one output across an interval, then jumps. The greatest-integer function \(f(x)=\lfloor x\rfloor\) returns the greatest integer less than or equal to \(x\).
Move down for negative floors
Not ordinary rounding\(\lfloor2.8\rfloor=2\). But \(\lfloor-1.2\rfloor=-2\), not \(-1\), because \(-2\) is the greatest integer that does not exceed \(-1.2\).
Model tiered rules without gaps
Threshold designSuppose shipping costs $5 for packages up to 2 kg, $8 for packages over 2 kg through 5 kg, and $12 above 5 kg. Every weight must activate exactly one tier.
Audit the domain coverage
No gap · no overlapConditions should cover the intended domain completely without assigning two different outputs to the same input.
Complete a three-rule switch
Final evaluationLet \(g(x)=-2\) for \(x<-1\), \(g(x)=x^2\) for \(-1\le x<2\), and \(g(x)=3\) for \(x\ge2\). Route \(-3\), \(-1\), and \(2\).