Lesson 1 · Introduction to Series and Sigma (Σ) Notation

Values of a Function

Optional MathematicsSubject
8 minEstimated read

A function pairs each input with one output

A function from a set A to a set B is a rule that takes each element of A and pairs it with exactly one element of B. We write this as \( f : A \to B \). The set A is the domain: it holds every input the rule is allowed to take. Once the rule is known, any input can be fed into it and the single output it gives can be worked out. Working out that output is what this topic is about.

It helps to think of a function as a machine. A number goes in, the machine follows its rule, and one number comes out. If the rule is "double the number and add 1", then 3 goes in and 7 comes out. Put 3 in again tomorrow and 7 comes out again. The same input can never give two different outputs, and that is exactly what makes the rule a function.

The value of a function

Definition

Value of a function: Let \( f : A \to B \) be a function that pairs \( x \in A \) with a unique \( y \in B \). Then y is called the value of the function at x, and it is written \( y = f(x) \).

Definition

Image: \( f(x) \) is called the image of x under the function f.

Definition

Pre-image: x is called the pre-image of \( f(x) \), that is, the pre-image of y.

Read \( f(x) \) aloud as "f of x". The number or expression inside the bracket is the input. So \( f(2) \) means "the value of f when the input is 2", and \( f(-1) \) means "the value of f when the input is \( -1 \)". The image is the output; the pre-image is the input that produced it.

Common mistake

\( f(2) \) does not mean f multiplied by 2. The letter f is the name of the rule, and the bracket holds the input you give it.

Finding the value of a function at a number

To find the value of a function at a number, replace every x in the rule by that number and simplify. Put the number in brackets when you substitute it, especially if it is negative.

Example 1: If \( f(x) = x^2 + 4 \), find the values of \( f(-1) \), \( f(1) \), \( f(3) \) and \( f(-3) \).

Step 1: Replacing x by \( -1 \) in the rule:

\[ f(-1) = (-1)^2 + 4 = 1 + 4 = 5 \]

Step 2: Replacing x by 1 in the same way:

\[ f(1) = (1)^2 + 4 = 1 + 4 = 5 \]

Step 3: Replacing x by 3:

\[ f(3) = (3)^2 + 4 = 9 + 4 = 13 \]

Step 4: Replacing x by \( -3 \):

\[ f(-3) = (-3)^2 + 4 = 9 + 4 = 13 \]

So \( f(-1) = 5 \), \( f(1) = 5 \), \( f(3) = 13 \) and \( f(-3) = 13 \). Notice that 1 and \( -1 \) both have the image 5. This is allowed. A function forbids one input from having two outputs, but it does not stop two inputs from sharing one output.

Careful with negative numbers

\( (-3)^2 = 9 \), but \( -3^2 = -9 \). Without the bracket only the 3 is squared, and the answer comes out wrong. Always keep the bracket when you substitute a negative number.

Finding the range from a given domain

Definition

Range: The range of a function is the set of all images obtained by substituting each element of the domain into the rule.

So to find the range, take the elements of the domain one at a time, find the image of each, and collect all the images into one set.

Example 2: If \( f : A \to B \) is defined by \( f(x) = 3x - 2 \) and \( A = \{-1, 0, 1, 2\} \), find the range of f.

Step 1: Substituting \( x = -1 \):

\[ f(-1) = 3(-1) - 2 = -5 \]

Step 2: Substituting \( x = 0 \):

\[ f(0) = 3(0) - 2 = -2 \]

Step 3: Substituting \( x = 1 \):

\[ f(1) = 3(1) - 2 = 1 \]

Step 4: Substituting \( x = 2 \):

\[ f(2) = 3(2) - 2 = 4 \]

Step 5: Collecting all four images into one set:

\[ \text{Range of } f = \{-5, -2, 1, 4\} \]

Common mistake

If two inputs give the same image, write that image only once in the range. For \( g(x) = x^2 \) with domain \( \{-2, 2, 3\} \), the images are 4, 4 and 9, so the range is \( \{4, 9\} \).

Finding the pre-image of a given image

Sometimes the output is known and the input is missing. Then the rule is set equal to the given image, and the equation is solved for x.

Example 3: If \( f(x) = 4x - 3 \) and 9 is one of the images, find the pre-image of 9.

Step 1: Since 9 is an image of f, the value of the function is 9:

\[ f(x) = 9 \]

Step 2: Writing the rule in place of \( f(x) \):

\[ 4x - 3 = 9 \]

Step 3: Adding 3 to both sides:

\[ 4x = 12 \]

Step 4: Dividing both sides by 4:

\[ x = 3 \]

So 3 is the pre-image of 9. A quick check confirms it: \( f(3) = 4(3) - 3 = 9 \).

When the rule contains a square, one image can have two pre-images, because a positive number and its negative give the same square.

Example 4: If \( f(x) = x^2 + 1 \) and 10 is one of the images, find the pre-image of 10.

Step 1: Setting the rule equal to 10:

\[ x^2 + 1 = 10 \]

Step 2: Subtracting 1 from both sides:

\[ x^2 = 9 \]

Step 3: Taking the square root and keeping both signs:

\[ x = \pm 3 \]

Both 3 and \( -3 \) are pre-images of 10, since \( 3^2 + 1 = 10 \) and \( (-3)^2 + 1 = 10 \).

Common mistake

When you take a square root to find a pre-image, do not drop the negative answer. Writing only \( x = 3 \) above loses half the answer.

Working with f(x + 2) and similar expressions

Sometimes the rule is given for a changed input, such as \( f(x + 3) = 2x + 5 \). The bracket on the left now holds \( x + 3 \), not x. To find \( f(x) \), rewrite the right side so that it is written completely in terms of the bracket \( x + 3 \). The rule can then be read off and written for the plain input x.

Example 5: If \( f(x + 3) = 2x + 5 \), find \( f(x) \) and \( f(4) \).

Step 1: The given statement is:

\[ f(x + 3) = 2x + 5 \]

Step 2: Making \( 2(x + 3) \) appear on the right. Since \( 2(x + 3) = 2x + 6 \), we must subtract 1 to get back to \( 2x + 5 \):

\[ f(x + 3) = 2(x + 3) - 1 \]

Step 3: The rule now reads "double the input and subtract 1". Writing it for the input x:

\[ f(x) = 2x - 1 \]

Step 4: Substituting 4 for x:

\[ f(4) = 2(4) - 1 = 7 \]

There is a quick check for a single value. \( f(4) \) means the bracket \( x + 3 \) equals 4, so \( x = 1 \). Putting \( x = 1 \) into \( 2x + 5 \) gives 7, the same answer.

The same idea works when the bracket holds a multiple of x. Example 6: If \( f(2x + 1) = 6x + 7 \), find \( f(x) \).

Step 1: The given statement is:

\[ f(2x + 1) = 6x + 7 \]

Step 2: Making \( 3(2x + 1) \) appear on the right. Since \( 3(2x + 1) = 6x + 3 \), we must add 4:

\[ f(2x + 1) = 3(2x + 1) + 4 \]

Step 3: Writing the rule "three times the input, plus 4" for the input x:

\[ f(x) = 3x + 4 \]

Expressions such as f(x + h)

The input does not have to be a number. It can be a letter such as h, or an expression such as \( x + h \). The method does not change: replace every x in the rule by whatever is inside the bracket, and keep it in brackets.

Example 7: If \( f(x) = 2x + 3 \), find \( f(h) \), \( f(x + h) \) and \( \frac{f(x + h) - f(x)}{h} \), where \( h \neq 0 \).

Step 1: Replacing x by h:

\[ f(h) = 2h + 3 \]

Step 2: Replacing x by \( x + h \) and opening the bracket:

\[ f(x + h) = 2(x + h) + 3 = 2x + 2h + 3 \]

Step 3: Subtracting \( f(x) \) from \( f(x + h) \):

\[ f(x + h) - f(x) = (2x + 2h + 3) - (2x + 3) \]

Step 4: Removing the brackets, the 2x terms and the 3s cancel:

\[ f(x + h) - f(x) = 2h \]

Step 5: Dividing by h, which is allowed because \( h \neq 0 \):

\[ \frac{f(x + h) - f(x)}{h} = \frac{2h}{h} = 2 \]

Why h is not zero

The condition \( h \neq 0 \) is written because division by zero has no meaning. Without it, the last step could not be carried out.

Functions defined in pieces

Some functions use a different rule on different parts of the domain. A condition is written beside each rule. To find a value, first decide which condition the input satisfies, and then use only the rule that goes with it.

Example 8: A function is defined as follows. Find \( f(-3) \), \( f(1) \) and \( f(3) \).

\[ f(x) = \begin{cases} x + 2, & x < 1 \\ x^2, & x \ge 1 \end{cases} \]

Step 1: Since \( -3 < 1 \), the first rule is used:

\[ f(-3) = -3 + 2 = -1 \]

Step 2: 1 is not less than 1, but \( 1 \ge 1 \) is true, so the second rule is used:

\[ f(1) = 1^2 = 1 \]

Step 3: Since \( 3 \ge 1 \), the second rule is used again:

\[ f(3) = 3^2 = 9 \]

If an input satisfies none of the conditions, the function has no value there. For example, if a function is given only for \( x > 0 \) and for \( x < 0 \), then \( f(0) \) is not defined, because 0 is neither greater than 0 nor less than 0.

Watch the inequality signs

The sign \( \le \) includes the end number and \( < \) does not. At \( x = 1 \) in Example 8, only the condition \( x \ge 1 \) is true, so using the first rule there would be wrong.

A function whose value never changes

In a constant function, every input has the same image. If \( h(x) = 4 \), there is no x in the rule to replace, so \( h(-2) = 4 \), \( h(0) = 4 \) and \( h(10) = 4 \). Whatever the domain is, the range has only one element, here \( \{4\} \).

The graph of a constant function y = h(x) is a horizontal line, because every input x has the same value.
The graph of a constant function y = h(x) is a horizontal line, because every input x has the same value.

Every point on this line is at the same height above the x-axis. Moving along the line changes x, but y stays the same. That height is the one value the function ever takes.

Values of a function in daily life

Functions are everywhere a quantity depends on another. Suppose one notebook costs Rs 15. The cost of n notebooks is \( C(n) = 15n \). Finding a value answers "how much for 4 notebooks?": \( C(4) = 15(4) = 60 \), so Rs 60. Finding a pre-image answers "how many notebooks can I get for Rs 90?": \( 15n = 90 \), so \( n = 6 \). Bus fares by distance, mobile bills by data used and a person's height by age all work the same way.

The kinds of question at a glance

QuestionWhat is givenWhat you do
Find a valueThe rule and an inputReplace x by the input and simplify
Find the rangeThe rule and the domainFind the image of every element and collect them
Find a pre-imageThe rule and an imageSet the rule equal to the image and solve for x
Find f(x) from f(x + a)A rule for a changed inputRewrite the right side in terms of the bracket
Piecewise valueSeveral rules with conditionsChoose the rule whose condition the input satisfies
🔐

The full lesson is waiting for you

The notes are free to read in full. A free account opens the rest of the practice, and tracks your progress and confidence score for every subject. Presentations and videos need approval from Learn Yeti.