Function Notation

On this page

What f(3) and f(x) = k mean, how to work out a function's value, how to solve for an input, how to find unknown constants from function values, and how to put an expression in as the input.

Key ideas

f(3) is the output when 3 is the input. It never means f\times3.

Put the input in a bracket in place of every x: f(-3)=(-3)^2-4(-3)=21

In f(x)=11 the output is given. Write the rule equal to 11 and solve for x.

On the graph of y=f(x), f(4) is the height of the curve at x=4. The roots of f(x)=0 are where it crosses the x-axis.

Worked example 1: Substituting a negative input

g(x)=\dfrac{20}{x^2+1}

Find g(-3)

  1. Put (-3) in place of x:
  2. g(-3)=\dfrac{20}{(-3)^2+1}
  3. =\dfrac{20}{9+1}
  4. =2
  5. Keep the bracket: (-3)^2=9, but a calculator works out -3^2 as −9.

Now try this

f(x)=\dfrac{30}{x^2-x}

Find f(-2)

  1. f(-2)=\dfrac{30}{(-2)^2-(-2)}
  2. =\dfrac{30}{4+2}
  3. =5

More like this: practice questions

Worked example 2: A function with an angle

f(x)=6\cos x^\circ

Find f(52)

Give your answer correct to 3 significant figures.

  1. f(52)=6\cos52^\circ
  2. =3.69397\ldots
  3. =3.69 (3 s.f.)
  4. The ^\circ says the input is in degrees: set the calculator to degrees. Only the angle goes inside the cosine; the 6 multiplies the answer.

Now try this

f(x)=5\tan x^\circ

Find f(38)

Give your answer correct to 3 significant figures.

  1. f(38)=5\tan38^\circ
  2. =5\times0.78128\ldots
  3. =3.90642\ldots
  4. =3.91 (3 s.f.)

More like this: practice questions

Worked example 3: The output is given

f(x)=(2x-1)^2

Solve f(x)=49

  1. 49 is the output, so write the rule equal to 49:
  2. (2x-1)^2=49
  3. 2x-1=7 or 2x-1=-7
  4. so 2x=8 or 2x=-6
  5. so x=4 or x=-3
  6. A square root can be positive or negative, so there are two answers. Do not work out f(49): 49 is the output, not the input.

Now try this

g(x)=(x+3)^2-5

Solve g(x)=31

Give every value, separated by commas

  1. (x+3)^2-5=31
  2. so (x+3)^2=36
  3. so x+3=6 or x+3=-6
  4. so x=3 or x=-9

More like this: practice questions

Worked example 4: Finding constants from function values

f(x)=x^2+5

g(x)=ax+b, where a and b are constants.

g(2)=9 and g(5)=f(4)

Find the value of a and the value of b.

  1. Each function value gives an equation. g(2)=2a+b, so
  2. 2a+b=9
  3. f(4)=4^2+5=21
  4. so 5a+b=21
  5. Subtract the first equation from the second:
  6. 3a=12
  7. so a=4
  8. 2\times4+b=9
  9. so b=1
  10. Check: g(5)=4\times5+1=21, which is f(4).

Now try this

f(x)=3x+2

g(x)=ax+b, where a and b are constants.

g(1)=4 and g(3)=f(4)

Find g(x)

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

  1. g(1)=a+b
  2. so a+b=4
  3. f(4)=3\times4+2=14
  4. so 3a+b=14
  5. Subtract: 2a=10
  6. so a=5
  7. so b=4-5=-1
  8. g(x)=5x-1

More like this: practice questions

Worked example 5: An expression as the input

f(x)=2x^2-3x+1

Express f(x+1) in the form ax^2+bx

  1. Put (x+1) in place of every x:
  2. f(x+1)=2(x+1)^2-3(x+1)+1
  3. =2(x^2+2x+1)-3x-3+1
  4. =2x^2+4x+2-3x-3+1
  5. =2x^2+x
  6. f(x+1) is not f(x)+1: the 1 is added to the input, before the rule acts. Composite functions use the same step.

Now try this

f(x)=3x^2+2x-5

Express f(x-1) in the form ax^2+bx+c

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

  1. f(x-1)=3(x-1)^2+2(x-1)-5
  2. =3(x^2-2x+1)+2x-2-5
  3. =3x^2-6x+3+2x-2-5
  4. =3x^2-4x-4

More like this: practice questions

Practice questions