3.2 - Functions, domain and range

3.2 - Functions, domain and range

Learn to read a function as a rule connecting inputs and outputs. You will use function notation, identify forbidden inputs and find the outputs actually reached from a given domain. This lesson is for Higher students.

Mappings and function notation (Higher)

If two different inputs both produce 55, does the rule stop being a function? Think of a machine that squares a number, then adds 11: both −2-2 and 22 produce 55.

You already know

A set lists each distinct member once. When substituting a negative number into a square, keep brackets: (−2)2=4(-2)^2=4.

The important question is whether each individual input has one definite output. It is fine for different inputs to share an output.

Function

A function maps every allowed input to exactly one output. The notation f:A→Bf:A\to B says that inputs come from set AA, and their outputs lie in set BB. Sending the same input 11 to both 22 and 33 would not define a function.

A function can even send 100100 different inputs to a single output: f(x)=7f(x)=7 does this for every one of them. “Exactly one output per input” does not mean “all outputs must differ”.

The notation f:x↦x2+1f:x\mapsto x^2+1 reads “ff maps xx to x2+1x^2+1”. Equivalently, write f(x)=x2+1f(x)=x^2+1. The expression f(−2)f(-2) means evaluate the rule with input −2-2, replacing every xx by −2-2. It is not multiplication by a letter ff.

Worked example 1: list a finite mapping

Question. Let f:x↦x2+1f:x\mapsto x^2+1, with allowed inputs {−2,0,3}\{-2, 0, 3\}. Find the output for each input and list the distinct outputs.

Plan. Substitute each input into the complete rule.

f(−2)=(−2)2+1=5square the negative inputf(0)=02+1=1substitute zerof(3)=32+1=10substitute three\begin{aligned} f(-2)&=(-2)^2+1=5 &&\text{square the negative input}\\ f(0)&=0^2+1=1 &&\text{substitute zero}\\ f(3)&=3^2+1=10 &&\text{substitute three} \end{aligned}

Why bracket −2-2? The whole input is squared, including its negative sign.

Answer. The mappings are −2↦5-2\mapsto5, 0↦10\mapsto1, 3↦103\mapsto10. The distinct outputs are {1,5,10}\{1, 5, 10\}.

Check. Each of the three allowed inputs has exactly one output, so this is a function.

Change only the input set by adding 22. Its output repeats one already reached, but that creates no ambiguity about what each input does.

Worked example 2: two inputs share an output

Question. Let f:x↦x2+1f:x\mapsto x^2+1, now with allowed inputs {−2,0,2,3}\{-2, 0, 2, 3\}. Find the outputs and say whether this is a function.

Plan. Keep the old mappings and evaluate the new input.

f(−2)=5unchanged mappingf(0)=1unchanged mappingf(3)=10unchanged mappingf(2)=22+1=5evaluate the added input\begin{aligned} f(-2)&=5 &&\text{unchanged mapping}\\ f(0)&=1 &&\text{unchanged mapping}\\ f(3)&=10 &&\text{unchanged mapping}\\ f(2)&=2^2+1=5 &&\text{evaluate the added input} \end{aligned}

Why is the repeated 55 allowed? Neither input −2-2 nor input 22 has two different outputs.

Answer. The outputs are 5,1,5,105, 1, 5, 10 for inputs −2,0,2,3-2, 0, 2, 3 respectively. This is a function; its distinct outputs are {1,5,10}\{1, 5, 10\}.

Check. There are four input arrows, one from each input, although only three distinct outputs are reached.

The diagram includes an unused member 1212 in the output set BB. That is allowed: saying outputs lie in BB does not promise that every member of BB is reached.

[DIAGRAM: asset_slug: m045_finite_mapping; caption: Two inputs share an output, while one member of the output set is unused; description: Function f maps minus 2 and 2 to 5, 0 to 1, and 3 to 10; the output set B also contains 12, which no arrow reaches; file: m045_finite_mapping.png; recommended_method: matplotlib]
Two inputs share an output, while one member of the output set is unused

Read the notation as an instruction to substitute.

Watch out

The wrong line f(3)=3ff(3)=3f treats the notation as multiplication. For f(x)=x2+1f(x)=x^2+1, the correct calculation is f(3)=32+1=10f(3)=3^2+1=10.

The Higher formulae sheet does not supply function-notation rules. Use the definition and the rule stated in the question.

Domain and excluded inputs (Higher)

A formula can look perfectly reasonable while failing at a particular input. For 1/(x−2)1/(x-2), input 22 would require division by zero. You must remove it before treating the rule as a real-valued function.

Domain

The domain is the set of allowed inputs. It may be given explicitly, or restricted by the calculation or setting. For example, a number of tickets must be a nonnegative whole number even if an algebraic rule accepts fractions.

Two common arithmetic restrictions are worth checking. A denominator must be nonzero. An expression under a real square root must be nonnegative, including zero because 0=0\sqrt{0}=0. These restrictions are not listed on the Higher formulae sheet: learn them.

Worked example 3: exclude a zero denominator

Question. Find the largest real domain of h(x)=3x+4h(x)=\frac{3}{x+4}.

Plan. Find the input that makes the denominator zero and exclude only that input.

x+4=0find the forbidden denominatorx=−4solve\begin{aligned} x+4&=0 &&\text{find the forbidden denominator}\\ x&=-4 &&\text{solve} \end{aligned}

Why exclude −4-4? Substituting it would require 3/03/0, which is undefined. Every other real input gives a nonzero denominator.

Answer. All real xx such that x≠−4x\ne-4.

Check. A nearby allowed input −3-3 gives h(−3)=3h(-3)=3, whereas −4-4 makes the denominator zero.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account