How to find the rule of a step function from its graph
To find the rule of a step function from its graph, read the closed dots for the sign of , the length of a step for , the jump between steps for , and take any closed dot as . The sign of comes last: it matches the sign of when the staircase climbs and is the opposite when it falls, and evaluating your rule at the ends of one step checks the answer.
Read the graph in this order
Each feature of the picture fixes one parameter, and the order matters: comes first, because the sign of depends on it.
- Which end of each step is closed? Closed at the left end: . Closed at the right end: .
- How long is a step? Measure from one closed dot to the next. If that length is , then
- How far apart are two neighbouring steps? That vertical distance is .
- Does the staircase climb or fall from left to right? If it climbs, has the same sign as . If it falls, has the opposite sign.
- Pick any closed dot and call it .
- Check. Evaluate your rule at the closed dot, at a point inside the same step, and at the step's open end, where the value must already belong to the next step.
Why a closed dot, and never an open one? Put into the rule: the bracket becomes , so . The point is on the graph, and since passes the integer 0 there, it sits at the end of a step. A point of the graph at the end of a step is exactly what a closed dot is. An open dot is not on the graph at all, so it can never be .
Example 1: a staircase that climbs
- Closed ends. Every step is closed at its left end, so .
- Step length. The closed dots and are 4 apart horizontally, so and .
- Jump. From height 1 to height 4 is 3, so .
- Sign of . The staircase climbs and is positive, so .
- Closed dot. Take : and . Mind the sign: , a plus inside the bracket.
- Rule.
- Check. , the closed dot. , still the same step. , so at the next step has begun and is rightly an open dot. , the height of the bottom step.
The rule is not unique
Starting from the other labelled closed dot, , gives which looks different but is the same function. For every , is exactly 1 more than , so its greatest integer is exactly 1 more too, and is precisely the difference between the two values of . Any closed dot gives a correct rule, so if your answer differs from someone else's, test both at a few points before deciding that one of them is wrong.
Example 2: a staircase that falls
- Closed ends. This time every step is closed at its right end, so .
- Step length. The closed dots and are 3 apart horizontally, so and .
- Jump. From height 3 down to height 1 is 2, so .
- Sign of . The staircase falls, so and have opposite signs. Since is negative, , which is positive.
- Closed dot. Take : and .
- Rule.
- Check. , the closed dot. , still the same step. , so belongs to the higher step: the dot is closed and is open, as drawn. , so just past 4 the next step down has begun.
Starting from the closed dot instead gives , the same function again.
A falling staircase does not mean a negative . Whether the steps climb or fall depends on and together, so the sign of can only be chosen once is known. In Example 2 the staircase falls and is positive, because is negative. Taking because the graph falls produces a staircase that climbs, and the check in step 7 catches it at once.
All four cases at a glance
- Closed on the left, climbing: and .
- Closed on the left, falling: and .
- Closed on the right, climbing: and . A price charged per started block has this shape.
- Closed on the right, falling: and , as in Example 2.
Check your understanding
No calculator needed.
- Every step of a staircase is 5 units long, and each one is closed at its left end. Which value of does that give?
- True or false, with a reason: if every step of a graph is closed at its right end, then is negative.
- A graph has three steps. Their closed dots are , and , and their open dots are , and . Find a rule.
- A step function equals on , on and on , and the pattern continues in both directions. Find a rule, then find .
- A step function equals 7 on , 4 on and 1 on . Find a rule.
- A graph has the steps at height 0, at height 2 and at height 4. A student takes and writes . Find the error and correct the rule.
- Do and have the same graph? Explain.
- A staircase climbs by 2 at each jump, its steps are 0.5 units long and closed at their right ends, and is a closed dot. Find a rule, then find .
Show the answers
- . The step length gives , and closed left ends make positive.
- False. Closed right ends only say that . If the staircase falls, has the sign opposite to , so it is positive, as in Example 2, where . The parameter is negative only when such a staircase climbs.
- . Closed on the left, so ; steps 2 long, so ; climbing by 4, so ; closed dot . Check: and . Starting from gives , the same function.
- , and . Closed on the left with steps 4 long, so ; falling by 3 with positive, so ; closed dot . Then : the input lies on the step , one step above .
- . Closed on the right, so ; steps 2 long, so ; falling by 3 with negative, so ; closed dot . Check: and .
- is an open dot, so it is not on the graph: the graph has , while the student's rule gives . Built on a point that is not on the graph, the student's rule comes out 2 too low at every . Use a closed dot instead: gives , and gives the same function written as .
- Yes. is exactly 1 more than , so its greatest integer is exactly 1 more, and . The two rules start from two closed dots of one staircase, and .
- , and . Closed at the right ends, so , and steps 0.5 long give . Climbing with negative, so . Closed dot : , . Then . The input 0 is the closed right end of the step , two steps below the one that ends at .
Practise it
To read parameters in both directions, from a rule to its staircase and back, work through the free Secondary 4 step functions worksheet. The Secondary 5 step functions worksheet opens with a section on finding the rule.
Want one-on-one help with this? I offer Secondary 4 and 5 math tutoring in Montreal, in person or online. Sessions start with a short written diagnostic, and a written recap goes to whoever books after every session.