Function Basics (College Board AP® Precalculus): Revision Note

Roger B

Written by: Roger B

Reviewed by: Mark Curtis

Updated on

Function basics

What is a function?

  • A function is a mathematical relation that maps a set of input values to a set of output values

    • Each input value is mapped to exactly one output value

    • E.g. in the relation  f(x)=x2+1,  f is a function

      • because for any value of x you put in, you get exactly one output value out

  • If a single input value can produce more than one output value, then the relation is not a function

    • E.g. the relation x2+y2=25 is not a function of x

      • because for the input x=3

      • there are two output values: y=4 and y=4

What are the domain and range of a function?

  • The domain of a function is the set of all input values

    • The variable representing input values is called the independent variable

  • The range of a function is the set of all output values

    • The variable representing output values is called the dependent variable

      • It is called the dependent variable because its value depends on the value chosen for the independent variable

  • E.g. consider the function  f given by  f(x)=x2, defined for 3x3

    • The domain is 3x3

    • The range is 0 f(x)9

      • The square of any real number is positive, so  f(x)=x2 cannot take on values less than zero

    • x is the independent variable

      • and  f(x) (or  y, where  y=f(x)) is the dependent variable

    • The function  f takes any value x in its domain

      • and maps it to the value  f(x) in its range

Diagram showing function f mapping element x from Domain to f(x) in Range, represented by two circles connected by an arrow.
Domain and range of a function f

When are two functions equal?

  • Two functions  f and g are equal when both of the following are true

    • they have the same domain

    • for every input value a in that domain, they produce the same output value

      • that is,  f(a)=g(a) for every a in the domain

    • Both conditions are required

  • Two functions with the same rule but different domains are not equal

    • E.g.  f(x)=x2 with domain all real numbers, and g(x)=x2 with domain 0x3, are not equal functions, because their domains are different

  • Two functions that are written differently can still be equal, provided they share the same domain and give the same output for every input in it

    • E.g.  f(x)=(x+1)2 and g(x)=x2+2x+1, both with domain all real numbers, are equal functions

What are the image and preimage?

  • These two terms describe precisely how a function pairs inputs with outputs

  • The image of an input value is the single output value that the function rule produces for that input

    • E.g. for the function  f(x)=x2, the image of the input 3 is the output  f(3)=9

  • The preimage of an output value is the set of all input values for which the function rule produces that output

    • E.g. for the function  f(x)=x2, the preimage of the output 9 is the set {3,3}

      • because  f(3)=9 and  f(3)=9

  • Note the difference between the two terms

    • An input value always has exactly one image

      • because each input maps to exactly one output

    • An output value may have a preimage containing one, several, or no input values

How can a function be represented?

  • The input and output values of a function vary in tandem according to the function rule

  • This rule can be expressed in four ways:

    • Analytically (i.e. as an equation), e.g.  f(x)=3x5

    • Graphically, as a curve or line on a set of axes

    • Numerically, as a table of input-output pairs

    • Verbally, as a description in words, e.g. "the output is five less than three times the input"

  • These are all different ways of representing the same function

    • Being able to move between representations is a key skill in AP® Precalculus

How can you tell if a graph represents a function?

  • Use the vertical line test

    • If any vertical line drawn on the graph crosses the curve at more than one point, then the graph does not represent a function

    • This is because a vertical line represents a single input value, and crossing more than once means that input is mapped to more than one output

Two graphs: left shows a curve passing the vertical test as a function; right shows a circle failing the test, so not a function.
The vertical line test for a function

Worked Example

A store is monitoring the temperature, in degrees Fahrenheit, inside a refrigerator unit after a power outage. The following table records the temperature T, in degrees Fahrenheit, at time t, in hours after the outage.

t (hours)

0

1

2

3

4

T(t) (°F)

35

38

44

53

65

(a) Find T(3). Describe the meaning of this value in the context of the problem.

(b) Describe how the temperature and time are varying in tandem. Is the temperature increasing or decreasing as time increases?

(c) In the context of the problem, identify the independent variable and the dependent variable.

Answer:

(a)

T(3)=53. This means that 3 hours after the power outage, the temperature inside the refrigerator unit is 53°F.

(b)

As the input values (time) increase, the output values (temperature) also increase. The temperature and time are increasing in tandem, i.e. as more time passes since the outage, the temperature inside the refrigerator gets higher.

(c)

The independent variable is t (time in hours), and the dependent variable is T (temperature in °F).

Worked Example

The function  f is defined by  f(x)=x24x+7, with domain {1, 2, 3, 4, 5}.

Find the range of  f.

Answer:

The domain of this function is only the five values given.

Find the output value for each input value in the domain:

 f(1)=(1)24(1)+7=14+7=4

 f(2)=(2)24(2)+7=48+7=3

 f(3)=(3)24(3)+7=912+7=4

 f(4)=(4)24(4)+7=1616+7=7

 f(5)=(5)24(5)+7=2520+7=12

The range is the set of output values

The range is {3, 4, 7, 12}

Examiner Tips and Tricks

In the second Worked Example, note that although  f(1)=f(3)=4, the value 4 is only listed once in the range.

Two different inputs mapping to the same output is allowed for a function.

  • It is only one input mapping to two different outputs that is not allowed

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Roger B

Author: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Mark Curtis

Reviewer: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.