Maths4UBETA

Function machines and plotting straight lines

Run a function forwards or backwards, write a two-variable rule and plot a table of values.

Try the quick check →
Lesson 2 of 3

Section 1 of 3 · Core · about 8 min

Which steps take me from output to input?

A function gives exactly one output for each allowed input. A machine can show its steps. For example, the rule y=3x+2y=3x+2 multiplies the input by 33, then adds 22.

Input, multiply by three, add two, output

To recover the input, start at the output. Subtract 2 first. Then divide by 3.

Worked example

Follow an input through the machine

A machine triples its input and subtracts 44. Find the output when the input is −2-2.

  1. Triple −2-2 first to get −6-6.

  2. Subtract 44 from −6-6 to reach the output −10-10.

  3. The rule y=3x−4y=3x-4 checks this: 3(−2)−4=−103(-2)-4=-10.

Your turn

A machine multiplies the input by 12 and then adds 4. One output is 1616.

Work out the corresponding input.

Enter one number. Fractions and decimals are accepted.

Worked example

Recover an input when brackets change the order

A machine uses y=4(x−2)y=4(x-2). The output is 2828. Find the input.

Try it on paper first.

  1. The machine subtracts 22 first, then multiplies by 44.

  2. Undo the multiplication: 28÷4=728\div4=7. Then undo the subtraction: 7+2=97+2=9.

  3. Check by sending 99 through the machine: 4(9−2)=284(9-2)=28.

Your turn

A machine multiplies the input by 13 and then adds 4. One output is 1717.

Work out the corresponding input.

Enter one number. Fractions and decimals are accepted.

Your turn

A machine gives y=3(x−4)y=3(x-4). The output is 1515. Find the input.

Enter one number. Fractions and decimals are accepted.

Section 2 of 3 · Core · about 8 min

How do I write a changing total in algebra?

Some totals have a starting amount and a fixed change for each step. In y=mx+cy=mx+c, the value of cc is the output at x=0x=0, while mm tells you how much yy changes when xx goes up by 11.

Worked example

Separate the charge from the rate

A repair booking costs 55 credits plus 33 credits for each part used. Write a rule for the cost yy of a booking with xx parts. Find the cost for four parts.

  1. Parts add 3x3x credits. The booking adds 55 credits whatever the part count.

  2. The rule is y=3x+5y=3x+5. With four parts, y=3(4)+5=17y=3(4)+5=17 credits.

Your turn

A transport card costs 6 credits to activate. Each trip costs 6 credits. Let x be trips and y be the total cost.

Write an expression for y in terms of x.

Enter an expression in x; use ^ for powers and / for fractions.

Worked example

Find a hidden starting value from two readings

The table shows a linear rule. Find the change in output per step and write the rule.

Two readings of a linear rule
xxyy
211
520

Try it on paper first.

  1. The output rises by 20−11=920-11=9 when the input rises by 5−2=35-2=3. The rise per step is 9÷3=39\div3=3.

  2. At x=2x=2, two steps give 66. The extra 11−6=511-6=5 is the starting value, so y=3x+5y=3x+5.

  3. Check the other row: 3(5)+5=203(5)+5=20.

Your turn

A transport card costs 6 credits to activate. Each trip costs 7 credits. Let x be trips and y be the total cost.

Write an expression for y in terms of x.

Enter an expression in x; use ^ for powers and / for fractions.

Section 3 of 3 · Core · about 8 min

How do I use a table to draw a line?

A graph of a rule shows its input–output pairs. The order is always (x,y)(x,y): move across to the input, then up or down to the output.

Coordinate axes with a falling line through (-1, 5), (0, 3), (1, 1) and (2, -1)

Four points on y=−2x+3y=-2x+3 from x=−1x=-1 to x=2x=2. The straight segment also includes the points between them.

Worked example

Plot a falling straight line

Plot y=−2x+3y=-2x+3 for xx between −1-1 and 22, inclusive.

  1. Substitute each input. For x=−1x=-1, y=−2(−1)+3=5y=-2(-1)+3=5.

  2. The remaining points are (0,3)(0,3), (1,1)(1,1) and (2,−1)(2,-1). The output drops by 22 for each step to the right.

  3. Plot and join the points with a straight segment.

Your turn

The rule is y=6x−2y=6x-2.

xy
−4-4−26-26
−3-3?
−2-2−14-14

Find y when x = -3.

Enter one number. Fractions and decimals are accepted.

Worked example

Find and fix an incorrect coordinate

A learner claims (−1,1)(-1,1), (0,4)(0,4) and (2,7)(2,7) lie on y=3x+4y=3x+4. Which point needs correcting?

Try it on paper first.

  1. For x=−1x=-1, the rule gives 3(−1)+4=13(-1)+4=1. At 00 the rule gives 44. Both points are correct.

  2. At x=2x=2, the rule gives 3(2)+4=103(2)+4=10. Replace (2,7)(2,7) with (2,10)(2,10).

  3. From x=0x=0 to x=2x=2, the rise is 66. An output of 77 would give a rise of only 33.

Your turn

The rule is y=7x−2y=7x-2.

xy
−4-4−30-30
−3-3?
−2-2−16-16

Find y when x = -3.

Enter one number. Fractions and decimals are accepted.

Your turn

A straight line passes through (2,7)(2,7) and (5,19)(5,19). How much does yy increase when xx rises by 11?

Enter one number. Fractions and decimals are accepted.

Worked examples

Practise the method

Core practice

Question 1 of 12

0 / 12 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

Find the input of a function

1 mark

A machine multiplies the input by 8 and then adds 9. One output is 3333.

Work out the corresponding input.

Enter one number. Fractions and decimals are accepted.

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

A machine multiplies the input by 6 and then adds 6. One output is 1212.

Work out the corresponding input.

Enter one number. Fractions and decimals are accepted.

A machine multiplies the input by 7 and then adds 6. One output is 1313.

Work out the corresponding input.

Enter one number. Fractions and decimals are accepted.

A transport card costs 7 credits to activate. Each trip costs 10 credits. Let x be trips and y be the total cost.

Write an expression for y in terms of x.

Enter an expression in x; use ^ for powers and / for fractions.

A transport card costs 7 credits to activate. Each trip costs 11 credits. Let x be trips and y be the total cost.

Write an expression for y in terms of x.

Enter an expression in x; use ^ for powers and / for fractions.

The rule is y=8xy=8x.

xy
−4-4−32-32
−3-3?
−2-2−16-16

Find y when x = -3.

Enter one number. Fractions and decimals are accepted.

The rule is y=9xy=9x.

xy
−4-4−36-36
−3-3?
−2-2−18-18

Find y when x = -3.

Enter one number. Fractions and decimals are accepted.

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.