Skip to content

What a function is

What a function is

Function

A function is a rule that gives each number x\displaystyle x exactly one number y\displaystyle y.

  • x\displaystyle x is the number you choose.
    It is called the independent variable.
  • y\displaystyle y is the number the rule gives.
    It is called the dependent variable, because its value depends on x\displaystyle x.
A rule in words

The rule “multiply by 2 and add 1” is a function.
For every x\displaystyle x this rule gives one y\displaystyle y.
For example:

  • When x=3\displaystyle {x}={3}: 3⋅2+1=7\displaystyle {3\cdot2+1}={7}.
    So y=7\displaystyle {y}={7}.
  • When x=0\displaystyle {x}={0}: 0⋅2+1=1\displaystyle {0\cdot2+1}={1}.
    So y=1\displaystyle {y}={1}.
  • When x=−4\displaystyle {x}={-4}: (−4)⋅2+1=−7\displaystyle {(-4)\cdot2+1}={-7}.
    So y=−7\displaystyle {y}={-7}.

We write each x\displaystyle x and the y\displaystyle y the rule matches to it as an ordered pair (x,y)\displaystyle (x,y):
(3,7)\displaystyle (3,7)
(0,1)\displaystyle (0,1)
(−4,−7)\displaystyle (-4,-7)

Example: a taxi

In a taxi we pay 12 ₪ for the start of the ride.
For every kilometre we pay another 3 ₪.

  • x\displaystyle x is the length of the ride in kilometres.
  • y\displaystyle y is the price in ₪.
  • The price of a 5 km ride is 12+3⋅5=27\displaystyle {12+3\cdot5}={27} ₪.
  • Every length of ride has one price, so the price is a function of the length of the ride.
Example: the temperature during a day
This function has no rule in words.
Its values are measured with a thermometer.

At every hour of the day there is one temperature, so the temperature is a function of the hour.

The hour6912151821
The temperature (degrees)141824251815
  • x\displaystyle x is the hour, and y\displaystyle y is the temperature.
  • At 9 and at 18 the temperature was 18 degrees.
    In a function two values of x\displaystyle x may match the same y\displaystyle y: the rule asks only that every x\displaystyle x has one y\displaystyle y.
A matching that is not a function

A matching that matches two values of y\displaystyle y or more to one x\displaystyle x is not a function.
For example:

  • From a temperature to the hour.
    We turn the direction of the table above: to every temperature we match the hour at which it was measured.
    The temperature 18 degrees has two hours: 9 and 18.
  • From a number to the numbers whose square equals it.
    9 has two numbers, 3 and −3\displaystyle -3, because:
    32=9\displaystyle {3^2}={9}
    (−3)2=9\displaystyle {(-3)^2}={9}
Exercise 1-1

Here is the rule: “multiply x\displaystyle x by 3, and subtract 4 from the result.”
Find y\displaystyle y for each of the values of x\displaystyle x.

a

x=5\displaystyle {x}={5}

    / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    x=0\displaystyle {x}={0}

      / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      c

      x=−2\displaystyle {x}={-2}

        / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        Exercise 1-2

        Is each of these matchings a function?

        1. To each pupil in the class – the pupil’s birthday.
        2. To each month – the pupils in the class born in it.
        3. To each number – the number 5 more than it.
        4. To each number – any number greater than it.
        5. To each number – its opposite.

        Write the number of each matching, whether it is a function or not, and explain.

        Exercise 1-3

        In a mobile phone plan we pay 30 ₪ a month.
        For every minute of a call abroad we pay another 0.5 ₪.

        • What is the independent variable, and what is the dependent variable?
        • How much is paid in a month with 40 minutes of calls abroad?
        • One month the bill was 45 ₪.
          How many minutes of calls abroad were there in that month?
          Write an equation, and solve it.

          / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – a new fraction · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power