IB Analysis and Approaches HL · Functions · Section 1 of 15

Function, domain and range

3 worked examples · By Álvaro López

Key idea

A function is a rule that turns each input value into a single output value . The allowed input values form the domain, and the output values that are actually obtained form the range. The whole of topic 9 rests on these two ideas, and the IB exam asks for the domain or the range in almost every function problem.

Function, notation and image

A relation is any set of ordered pairs . It becomes a function when each value of is paired with only one value of : the same input never produces two different outputs.

It is read " of ", and it means "the value that the function gives when the input is ". To calculate an image, substitute the input into the formula. If , then and . The letter used for the variable does not matter: is the same function.

Be careful with the notation: means that the input is , not that is added to the result. With the function above, .

Domain and range

Think of a machine: the domain is the inputs it accepts, and the range is the outputs it produces. When the question does not state the domain, the largest possible one is taken, the natural domain: all the for which the formula makes sense.

Usual restrictions on the domain

In the functions of this course, only three things can go wrong when you substitute a number.

If several of these situations occur at the same time, all of the conditions must be met. A root inside a denominator, for example , requires and also , that is, .

Interval notation

The domain and the range are written with intervals. In this course we use square brackets that point outwards for the endpoints that are not included:

  • : from to , both included ().
  • : from to , neither included ().
  • and : one included and the other not.
  • and : half-lines. Infinity is never included.
  • joins separate intervals, for example .
  • means "all real numbers except ".

Worked examples

Example 1 Basic

Image and domain of a fraction

Let .

a) Calculate .

b) Find the natural domain of .

Solution

a) Substitute :

b) The fraction only fails when the denominator is zero: . Therefore the domain is all real numbers except :

Example 2 Medium

Domain with a root and a logarithm, and a range

a) Find the domain of .

b) Find the domain of .

c) Find the range of .

Solution

a) We need , that is, . The parabola is positive outside the roots and , and it is zero at them, so

b) There are two conditions. The logarithm requires , that is, . The denominator requires . Both hold at the same time on

c) The domain of is . At the root is and ; as increases, the root grows without limit. Since a root is never negative, , and every one of these values is attained:

Example 3 Hard

A rectangle with a fixed perimeter

A rectangle has a perimeter of cm. One of its sides measures cm, and is its area in cm.

a) Write as a function of .

b) Find the domain of in this context.

c) Find the range of .

d) Find the values of for which the area is cm.

Solution

a) If one side measures , the two sides together add up to (half the perimeter), so the other side measures . The area is

b) A side of a rectangle must be positive, and so must the other one: and . The domain is not but

c) is a parabola that opens downwards. Its zeros are and , so the vertex lies at , and there . Within the domain the area takes every value greater than up to (the value is not reached, because and do not belong to the domain):

d) Solve : Both values are in the domain and give the same rectangle, rotated.

In the exam: the domain of a context problem is marked separately. Write down the physical conditions (, ) and do not stop at the domain of the formula. And for the range, check whether the endpoint is reached or not, so that you choose the right bracket.

Common mistakes

Summary

  • A function gives each input a single output ; it is written .
  • Domain: the permitted values of . Range: the values of that are obtained.
  • The natural domain excludes zero denominators, negative radicands and logarithm arguments that are not positive.
  • Intervals are written with if the endpoint is not included and if it is; infinity is always open.
  • For the range, a sketch of the graph helps (in Paper 2, with the GDC).
  • In a context problem, the domain includes the physical conditions stated in the question.
Maths classes in Aldaia and online

Want to work on it together?

Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.

Message us on WhatsApp