This topic covers grade 8 Functions: what a function is (each input has exactly one output), comparing functions shown as equations, tables, graphs and descriptions, telling linear from nonlinear functions, building linear models from a rate of change and an initial value, and describing and sketching qualitative graphs; together these are about 20% of the grade 8 MCAS. Function notation such as f(x) is not required in grade 8, so rules are written as equations like y = 3x − 4 or in words. The real grade 8 MCAS Mathematics test is given on a computer in two untimed sessions (DESE recommends about 1½ hours each) with 40 scored items, including 4 constructed-response questions; Session 1 allows no calculator, and Session 2 allows a scientific calculator, a TI graphing calculator or the Desmos graphing calculator. You get the grade 8 reference sheet (unit conversions, area and volume formulas, volume of a cylinder, cone and sphere, and the Pythagorean theorem). On the real test some of these skills appear as hand-scored constructed-response questions worth 4 points, where you must show your work and explain; the multi-step items here lay out their solutions as Part A, Part B and Part C to build that habit. The real test has no time limit; aim for about 3 minutes per question as a practice target.
What Is a Function?
A function is a rule that assigns to each input exactly one output. A relation can be shown as a set of ordered pairs (input, output), a table, a mapping, an equation, a graph or a sentence. To test a relation, look at the inputs: if any input is paired with two different outputs, it is not a function. Outputs may repeat; two inputs can share the same output. On a graph, this means no vertical line meets the graph in more than one point. Grade 8 does not require function notation; you will see rules written as y = 3x − 4 or in words. Traps: checking the outputs instead of the inputs, and thinking a function must be linear.
Key formulas| Definition | each input x ⟶ exactly one output y |
| Not a function | (a,p) and (a,q) with p=q |
| Repeated outputs are allowed | (1,5) and (2,5) can both belong to a function |
| Vertical line test | a line x=a meets the graph at most once |
Identifying a function from ordered pairs (8.F.A.1)
Method. List the inputs; a repeated input with a different output means the relation is not a function.
Worked example. Which set of ordered pairs represents a function?
- (A) {(−2, 3), (0, 3), (2, 3), (4, 3)}
- (B) {(1, 4), (2, 5), (1, 6), (3, 7)}
- (C) {(5, 0), (5, 1), (5, 2), (5, 3)}
- (D) {(0, 1), (3, 2), (0, 2), (6, 3)}
AnswerA — {(−2, 3), (0, 3), (2, 3), (4, 3)}
Step-by-step- A function gives each input exactly one output, so check whether any input repeats with a different output.
- In {(−2, 3), (0, 3), (2, 3), (4, 3)} the inputs −2, 0, 2, 4 are all different, so each input has one output. The output 3 repeating is allowed.
- Each of the other sets has an input with two outputs: 1 → 4 and 6; 5 → 0, 1, 2, 3; 0 → 1 and 2.
Fast methodScan the first numbers only: if no input repeats, it is a function.
Quick checkCheck: a vertical line x = a passes through at most one of the points (−2, 3), (0, 3), (2, 3), (4, 3) ✓.
Why the other choices are wrong- B ({(1, 4), (2, 5), (1, 6), (3, 7)}): checked that the outputs 4, 5, 6, 7 are all different instead of checking the inputs (input 1 has two outputs)
- C ({(5, 0), (5, 1), (5, 2), (5, 3)}): thought a function only needs each output to appear once (input 5 has four outputs)
- D ({(0, 1), (3, 2), (0, 2), (6, 3)}): saw the outputs increase and called it a function, missing that input 0 has outputs 1 and 2
Explaining why a relation is not a function (8.F.A.1)
Method. The only reason a relation fails to be a function is an input with two or more different outputs.
Worked example. A relation is the set {(3, 1), (5, 2), (3, 4), (7, 6)}. Which statement correctly explains why this relation is NOT a function?
- (A) The outputs 1, 2, 4, 6 do not increase by the same amount.
- (B) The inputs 3, 5, 7 are all odd numbers.
- (C) The input 3 is paired with two different outputs, 1 and 4.
- (D) The output 4 is greater than the input 3.
AnswerC — The input 3 is paired with two different outputs, 1 and 4.
Step-by-step- A relation fails to be a function when one input has more than one output.
- The input 3 appears in (3, 1) and in (3, 4), so 3 has two outputs.
- So the relation is not a function. The other statements are true or false facts about the numbers, but none of them is the reason.
Fast methodFind a repeated input with different outputs; that pair is the reason.
Quick checkCheck: the vertical line x = 3 would pass through both (3, 1) and (3, 4) ✓.
Why the other choices are wrong- A (The outputs 1, 2, 4, 6 do not increase by the same amount.): confused "function" with "linear function"
- B (The inputs 3, 5, 7 are all odd numbers.): picked a pattern in the numbers that has nothing to do with the definition
- D (The output 4 is greater than the input 3.): thought an output must be less than its input
Functions in real-world relationships (8.F.A.1)
Method. Test a context by trying to find one input that could give two different outputs.
Worked example. Which relationship is a function?
- (A) Input: a student's age, in years. Output: that student's height, in centimeters.
- (B) Input: the side length of a square, in inches. Output: the perimeter of the square, in inches.
- (C) Input: a positive number. Output: a number whose square is the input.
- (D) Input: the price of a meal on a menu. Output: the name of a meal with that price.
AnswerB — Input: the side length of a square, in inches. Output: the perimeter of the square, in inches.
Step-by-step- Ask: can one input ever have two different outputs?
- Side length → perimeter: a square with side s always has perimeter 4s, so each side length gives exactly one perimeter. This is a function.
- Age → height: two 13-year-olds can have different heights. Number → number whose square is the input: 9 → 3 and 9 → −3. Price → meal: two meals can both cost $8. None of these is a function.
Fast methodLook for one input that could lead to two outputs; if you cannot find one, it is a function.
Quick checkCheck: s = 5 gives perimeter 4 × 5 = 20, and no other perimeter is possible ✓.
Why the other choices are wrong- A (Input: a student's age, in years. Output: that student's height, in centimeters.): thought one age gives one height, but many students of the same age have different heights
- C (Input: a positive number. Output: a number whose square is the input.): forgot that a positive number has two numbers that square to it, for example 9 → 3 and 9 → −3
- D (Input: the price of a meal on a menu. Output: the name of a meal with that price.): assumed every price belongs to one meal, but two different meals can have the same price
Linear and Nonlinear Functions
A linear function has a constant rate of change, so its graph is a straight line and its equation can be written y = mx + b. The rate of change (slope) m is the change in y divided by the change in x; b is the initial value, the y-value when x = 0. In a table, check the rate between every pair of rows: if the x-values go up by different amounts, divide each change in y by its change in x. Functions such as A = s² (area of a square), A = πr² and y = 3/x are nonlinear: their rate of change is not constant and their graphs are curves. Traps: looking only at the y-values when the x-steps are uneven, calling any increasing table linear, and missing a hidden x² in an equation.
Key formulas| Linear function | y=mx+b |
| Rate of change (slope) | m=change in xchange in y=x2−x1y2−y1 |
| Initial value | b=y when x=0 |
| Some nonlinear functions | A=s2,A=πr2,V=s3,y=x3 |
| Linear table test | ΔxΔy is the same for every pair of rows |
Recognizing a linear equation (8.F.A.3)
Method. Write the equation in the form y = mx + b; if that is impossible, the function is nonlinear.
Worked example. Which equation represents a linear function?
- (A) y = x² + 1
- (B) y = 3/x
- (C) y = x³ − 2
- (D) y = 4x − 7
AnswerD — y = 4x − 7
Step-by-step- A linear function can be written y = mx + b, with x to the first power only.
- y = 4x − 7 has the form y = mx + b with m = 4 and b = −7, so it is linear.
- y = x² + 1 and y = x³ − 2 have powers of x greater than 1, and y = 3/x divides by x; their graphs are curves.
Fast methodLinear means x appears only to the first power, not squared, cubed or in a denominator.
Quick checkCheck: for y = 4x − 7, x = 0, 1, 2 give −7, −3, 1, which go up by 4 each time ✓.
Why the other choices are wrong- A (y = x² + 1): thought any equation with x and a constant is linear, missing the exponent 2
- B (y = 3/x): thought dividing by x still gives a straight line
- C (y = x³ − 2): read x³ as 3x
Deciding linear or nonlinear from a table (8.F.A.3)
Method. Compute the rate of change between consecutive rows; linear means every rate is the same.
Worked example. A table shows a function. When x = 0, y = 1. When x = 1, y = 3. When x = 2, y = 7. When x = 3, y = 13. Which statement is true?
- (A) The function is linear, because the y-values increase every time.
- (B) The function is nonlinear, because the y-values increase by 2, then 4, then 6.
- (C) The function is linear, because the x-values increase by 1 each time.
- (D) The function is nonlinear, because its graph does not pass through (0, 0).
AnswerB — The function is nonlinear, because the y-values increase by 2, then 4, then 6.
Step-by-step- Each x-step is 1, so compare the changes in y.
- Changes in y: 3 − 1 = 2, 7 − 3 = 4, 13 − 7 = 6.
- The rate of change is not constant, so the function is nonlinear.
Fast methodEqual x-steps: the y-changes must all be equal for a linear function.
Quick checkCheck: the points (0, 1), (1, 3), (2, 7) are not on one line, because the slopes 2 and 4 differ ✓.
Why the other choices are wrong- A (The function is linear, because the y-values increase every time.): thought every increasing function is linear
- C (The function is linear, because the x-values increase by 1 each time.): checked the x-values instead of the rate of change
- D (The function is nonlinear, because its graph does not pass through (0, 0).): gave a wrong reason; a linear graph does not have to pass through the origin
Linear test with uneven x-steps (8.F.A.3)
Method. When the x-steps are uneven, compare Δy ÷ Δx, not the raw changes in y.
Worked example. A table shows a function. When x = 1, y = 5. When x = 3, y = 11. When x = 4, y = 14. When x = 7, y = 23. Which statement is true?
- (A) The function is linear with a rate of change of 3.
- (B) The function is nonlinear, because the y-values increase by 6, then 3, then 9.
- (C) The function is linear with a rate of change of 6.
- (D) The function is linear with a rate of change of 1/3.
AnswerA — The function is linear with a rate of change of 3.
Step-by-step- The x-values go up by different amounts (2, 1, 3), so divide each change in y by its change in x.
- (11 − 5) ÷ (3 − 1) = 6 ÷ 2 = 3; (14 − 11) ÷ (4 − 3) = 3 ÷ 1 = 3; (23 − 14) ÷ (7 − 4) = 9 ÷ 3 = 3.
- Every rate is 3, so the function is linear with rate of change 3 (its equation is y = 3x + 2).
Fast methodUneven x-steps: always divide Δy by Δx before deciding.
Quick checkCheck: y = 3x + 2 gives 5, 11, 14, 23 for x = 1, 3, 4, 7 ✓.
Why the other choices are wrong- B (The function is nonlinear, because the y-values increase by 6, then 3, then 9.): looked only at the changes in y and ignored that the x-steps are 2, 1 and 3
- C (The function is linear with a rate of change of 6.): used the first change in y, 11 − 5 = 6, without dividing by the change in x, 2
- D (The function is linear with a rate of change of 1/3.): divided the change in x by the change in y: 2 ÷ 6 = 1/3
Building and Comparing Linear Models
To model a linear situation, find two numbers. The rate of change m is how much y changes for each 1-unit increase in x (a cost per hour, a speed, a drop per minute). The initial value b is the starting amount, the value of y when x = 0 (a sign-up fee, a starting height). Read them from a description, from two points, from a table or from a graph, then write y = mx + b. When the data start at an x other than 0, work backward to x = 0 to find b. To compare two functions shown in different ways (an equation, a table, a description), find m and b for each and compare like with like. Traps: swapping m and b, using the first y-value in a table as the initial value when x is not 0, forgetting to divide by the change in x, and dropping a negative sign.
Key formulas| Linear model | y=mx+b |
| Rate from two points | m=x2−x1y2−y1 |
| Initial value from a point | b=y1−mx1 |
| Meaning in context | m=change per unit,b=starting amount |
| Decreasing model | m<0 ⇒ y goes down as x goes up |
Writing a model from a description (8.F.B.4)
Method. Rate of change = amount per unit (multiplies x); initial value = one-time or starting amount.
Worked example. A plumber charges a $45 fee for each visit plus $30 for each hour of work. Which equation gives the total cost y, in dollars, for a visit of x hours?
- (A) y = 45x + 30
- (B) y = 75x
- (C) y = 30x − 45
- (D) y = 30x + 45
AnswerD — y = 30x + 45
Step-by-step- The amount that changes with each hour is $30, so the rate of change is m = 30.
- The $45 is charged once no matter how long the job takes, so the initial value is b = 45.
- The model is y = 30x + 45.
Fast methodPer-unit charge goes with x; the one-time charge stands alone.
Quick checkCheck: a 2-hour visit costs 30 × 2 + 45 = $105, which is $45 + $30 + $30 ✓.
Why the other choices are wrong- A (y = 45x + 30): swapped the rate (per hour) and the initial value (one-time fee)
- B (y = 75x): added the fee and the hourly charge into one rate: 45 + 30 = 75
- C (y = 30x − 45): subtracted the fee instead of adding it
Initial value from two data points (8.F.B.4)
Method. Find m from two points, then b = y₁ − m·x₁ (work back to x = 0).
Worked example. A candle burns at a constant rate. It is 18 centimeters tall after it has burned for 2 hours and 12 centimeters tall after it has burned for 5 hours. How tall was the candle before it was lit?
- (A) 18 centimeters
- (B) 20 centimeters
- (C) 22 centimeters
- (D) 14 centimeters
AnswerC — 22 centimeters
Step-by-step- Rate of change: (12 − 18) ÷ (5 − 2) = −6 ÷ 3 = −2 centimeters per hour.
- Go back 2 hours from the first data point: the candle was 2 × 2 = 4 centimeters taller.
- Initial height: 18 + 4 = 22 centimeters. The model is y = −2x + 22.
Fast methodFind the rate, then undo it for the hours already burned.
Quick checkCheck: y = −2(5) + 22 = 12 ✓ and y = −2(2) + 22 = 18 ✓.
Why the other choices are wrong- A (18 centimeters): used the first height given as the initial value, but that was after 2 hours
- B (20 centimeters): added back only one hour of burning: 18 + 2 = 20
- D (14 centimeters): moved the wrong way from x = 2 to x = 0: 18 − 2 × 2 = 14
Comparing an equation with a table (8.F.A.2)
Method. To compare functions in different forms, find the rate and the initial value of each and compare them directly.
Worked example. Function A is given by the equation y = 4x + 3. Function B is given by a table: when x = 2, y = 5; when x = 4, y = 13; when x = 6, y = 21. Both functions are linear. Which statement is true?
- (A) Function B has the greater rate of change, because its y-values go up by 8.
- (B) The functions have the same rate of change, but Function A has the greater initial value.
- (C) The functions have the same rate of change and the same initial value.
- (D) Function B has the greater initial value, because its first y-value, 5, is greater than 3.
AnswerB — The functions have the same rate of change, but Function A has the greater initial value.
Step-by-step- Function A: m = 4, b = 3.
- Function B: m = (13 − 5) ÷ (4 − 2) = 8 ÷ 2 = 4. Work back from (2, 5): b = 5 − 4 × 2 = −3.
- Both rates are 4. Initial values: 3 > −3, so Function A has the greater initial value.
Fast methodPut both functions in y = mx + b form, then compare m with m and b with b.
Quick checkCheck: y = 4x − 3 gives 5, 13, 21 for x = 2, 4, 6 ✓.
Why the other choices are wrong- A (Function B has the greater rate of change, because its y-values go up by 8.): used the change in y, 8, without dividing by the change in x, 2
- C (The functions have the same rate of change and the same initial value.): assumed equal rates mean the lines are the same, without finding B's initial value
- D (Function B has the greater initial value, because its first y-value, 5, is greater than 3.): used the first table value as the initial value, but it is the value at x = 2, not x = 0
Describing and Sketching Graphs
A qualitative graph shows how one quantity changes with another without exact numbers. Read it piece by piece: a rising piece means increasing, a falling piece means decreasing, a horizontal piece means no change (for example, stopped or holding steady). A straight piece means a constant rate; a steeper piece means a faster rate; a curve means the rate is changing (a curve that flattens out means the change is slowing down). To sketch a graph from a story, list the events in order and decide for each one: up, down or flat; steady or speeding up or slowing down. Traps: reading a distance-time graph as a picture of a path, thinking a horizontal piece means moving at a steady speed, and comparing the total change of two pieces instead of their rates.
Key formulas| Rate on a piece | rate=change in inputchange in output |
| Increasing / decreasing | rate>0 rises,rate<0 falls |
| Constant | rate=0 ⇒ horizontal piece |
| Speed on a distance-time graph | speed=timedistance |
Story to graph (8.F.B.5)
Method. Match each event in the story, in order, with up, down or flat and with steady or changing steepness.
Worked example. Maria walks from home to school at a steady pace. On the way she stops at a store for 5 minutes, then keeps walking to school at the same steady pace. A graph shows her distance from home (output) against time (input). Which description fits the graph?
- (A) A straight piece rising, then a horizontal piece, then a straight piece falling
- (B) A straight piece rising, then a straight piece falling to zero, then a straight piece rising
- (C) One curved piece that rises faster and faster
- (D) A straight piece rising, then a horizontal piece, then a straight piece rising with the same steepness as the first
AnswerD — A straight piece rising, then a horizontal piece, then a straight piece rising with the same steepness as the first
Step-by-step- Steady walking away from home: distance increases at a constant rate, a rising straight piece.
- Stopped at the store: distance from home does not change, a horizontal piece.
- Walking on at the same pace: a rising straight piece with the same steepness as the first.
Fast methodMoving away = up, stopped = flat, same pace = same steepness.
Quick checkCheck: the graph never falls, because Maria never walks toward home ✓.
Why the other choices are wrong- A (A straight piece rising, then a horizontal piece, then a straight piece falling): thought walking on after the stop takes her back toward home
- B (A straight piece rising, then a straight piece falling to zero, then a straight piece rising): thought stopping makes the distance from home go back to zero
- C (One curved piece that rises faster and faster): ignored the stop and the steady pace
Graph to story (8.F.B.5)
Method. Read a graph from left to right and translate each piece into what is happening.
Worked example. A graph shows the height of the water in a bathtub (output) against time (input). The graph rises in a straight line, then stays horizontal, then falls in a straight line until the height is 0. Which story matches the graph?
- (A) The tub drains, sits empty, and then is filled from the faucet.
- (B) The tub is filled, the faucet is turned up to fill it faster, and then the tub drains.
- (C) The tub is filled from the faucet at a steady rate, the water is turned off and the tub sits, and then the plug is pulled and the tub drains completely.
- (D) The tub is filled, the plug is pulled, and the tub drains completely while the faucet stays on.
AnswerC — The tub is filled from the faucet at a steady rate, the water is turned off and the tub sits, and then the plug is pulled and the tub drains completely.
Step-by-step- Rising straight piece: the height increases at a steady rate, so water is flowing in.
- Horizontal piece: the height does not change, so no water flows in or out.
- Falling to 0: the height decreases until the tub is empty, so it drains completely.
Fast methodRead left to right: up, flat, down to zero.
Quick checkCheck: the story has exactly three stages, in the same order as the three pieces ✓.
Why the other choices are wrong- A (The tub drains, sits empty, and then is filled from the faucet.): read the graph from right to left
- B (The tub is filled, the faucet is turned up to fill it faster, and then the tub drains.): thought a horizontal piece means the water is still rising
- D (The tub is filled, the plug is pulled, and the tub drains completely while the faucet stays on.): ignored the horizontal piece in the middle
Comparing rates on a piecewise graph (8.F.B.5)
Method. Compute the rate on each piece; compare rates, not total changes.
Worked example. The graph of a function is made of three straight pieces. The first goes from (0, 2) to (3, 8). The second goes from (3, 8) to (6, 8). The third goes from (6, 8) to (10, 0). Which statement is true?
- (A) The function increases at a rate of 2 on the first piece and decreases at a rate of 2 on the third piece.
- (B) The function decreases faster than it increases, because it falls 8 units but rises only 6 units.
- (C) The function is increasing for all x from 0 to 6.
- (D) The function increases at a rate of 6 on the first piece.
AnswerA — The function increases at a rate of 2 on the first piece and decreases at a rate of 2 on the third piece.
Step-by-step- First piece: rate = (8 − 2) ÷ (3 − 0) = 6 ÷ 3 = 2 (increasing).
- Second piece: rate = (8 − 8) ÷ (6 − 3) = 0 (constant).
- Third piece: rate = (0 − 8) ÷ (10 − 6) = −8 ÷ 4 = −2 (decreasing at a rate of 2). The rise and the fall have the same steepness.
Fast methodSteepness is change in y ÷ change in x on each piece, not the size of the change.
Quick checkCheck: the first piece rises 6 over 3 units and the third falls 8 over 4 units; 6/3 = 8/4 = 2 ✓.
Why the other choices are wrong- B (The function decreases faster than it increases, because it falls 8 units but rises only 6 units.): compared the total changes, 8 and 6, instead of the rates, 8 ÷ 4 and 6 ÷ 3
- C (The function is increasing for all x from 0 to 6.): counted the horizontal piece as increasing
- D (The function increases at a rate of 6 on the first piece.): used the change in y, 8 − 2 = 6, without dividing by the change in x, 3