0580

Functions

Algebra and Sequences

Inputs and outputs

  • A function is a rule that takes a number in and gives exactly one number back
  • The number going in is the input and the number coming back is the output
  • Writing f(x) = 4x − 7 names the rule f and says what it does to whatever is put in
  • Any letter can name a function, and a question that needs a second rule simply uses a second letter such as g or h
  • Every x in the rule is replaced by whatever sits inside the brackets, whether that is a number, a letter or a whole expression
    • f(3) = 4 × 3 − 7 = 5
    • f(−2) = 4 × (−2) − 7 = −15
    • f(a) = 4a − 7, which cannot be tidied any further
  • Bracket a negative input as you substitute it, otherwise the sign is easily dropped

Reading the question the right way round

  • f(6) means put 6 in and see what comes out
  • f(x) = 6 means the output is 6 and the input is unknown, so it is an equation to solve
  • These two look almost identical on the page and mean opposite things, so read which side the number is on
  • To solve f(x) = 21 for f(x) = 4x − 7, replace f(x) by the rule: 4x − 7 = 21, so 4x = 28 and x = 7
  • A mapping diagram shows the same idea as two columns joined by arrows, inputs on the left and outputs on the right, with one arrow leaving each input
    • For f(x) = x + 3 the arrows run 3 → 6, 4 → 7 and, in general, xx + 3
Worked example

Substituting into a function, and solving one

f(x) = 3x − 5. Find f(4), and solve f(x) = 16.

Solution:

  • f(4) means substitute 4 wherever x appears
  • f(4) = 3 × 4 − 5 = 12 − 5 = 7
  • f(x) = 16 is a different demand: it is an equation to solve, not a substitution
  • 3x − 5 = 16
  • Add 5 to both sides: 3x = 21
  • Divide by 3: x = 7
  • The two answers are both 7 here by coincidence, which is exactly why the difference has to be read carefully: f(4) asks for an output, f(x) = 16 asks for an input