Functions (Basics)

Welcome to what you should know about functions. In this note, you will find:


Functions and Relations

Relations

Relations are when the elements of one set have an association with elements of the other set. This can be represented through a set of ordered pairs, a table of values, or a graph.

Functions

Functions are a special type of relation in which every value of x only corresponds with one value of y. This places x as the independent variable, whilst y is the dependent variable.

In order to test if a relation is a function, you can use the vertical line test. You can do this by placing a function of 𝑥=𝑛 (a vertical line at 𝑛), where 𝑛 is the x-value you want to test.

Function Notation

Since y depends on x (or y is a function of x), we can notate y as 𝑦=𝑓(𝑥). Where there are different values of x, we can find f. For example, the value of 𝑓 at 𝑥=4 can be notated as 𝑓(4).

𝑦=𝑓(𝑥)

Piecewise Functions

Piecewise functions are functions that are formed out of 2 or more functions at different intervals of the function’s domain.

Example

Take 𝑓(𝑥)={𝑥2for𝑥≥12𝑥for𝑥<1. Find 𝑓(1) and 𝑓(−2).

𝑓(𝑥)={𝑥2for𝑥≥12𝑥for𝑥<1

𝑓(1) can be found by determining the function at that interval. The corresponding function for 𝑓(1)=𝑥2. Then, substitute 1 into 𝑓(𝑥)=𝑥2.

𝑓(1)=(1)2=1

Take the same process for 𝑓(−2).

𝑓(−2)=2(−2)=−4

Domain and Range

The domain of a function is all x-values where 𝑓(𝑥) is defined.

The range of a function is all y-values where 𝑓(𝑥) is defined.

To describe the domain and range of a function, you can use the following notations.

Interval Notation

Interval notation utilises “[]” (square brackets) and “()” (brackets) to describe the end values of a function. Square brackets means it includes the end values of that interval, whereas round brackets do not include the end values.

Example

Find the domain of 𝑓(𝑥)=𝑥2.

∴𝐷:(−∞,∞),𝑅:[0,∞)

You can provide proof to this domain by using graphing technology. Try inputting 𝑓(𝑥)=𝑥2 into a graphing technology, like Desmos.

Inequalities and Other Formats

You can describe the domain and range of a function by using inequalities, such as −1<𝑥<−1. You can also describe it by saying all real x, all real y, and 𝑦≥0.

Even and Odd Functions

Even Functions

Even functions are symmetrical by the y-axis (creating a mirror line). This means that the graph does not change when it is reflected by the y-axis. Thus, for 𝑥=𝑎 and 𝑥=−𝑎, the y-value is the same.

This can be proved by following the rule 𝑓(𝑥)=𝑓(−𝑥).

Example

Determine whether 𝑓(𝑥)=𝑥2 is odd or even.

𝑓(𝑥)=𝑥2𝑓(−𝑥)=(−𝑥)2𝑓(−𝑥)=𝑥2∴𝑓(𝑥)=𝑓(−𝑥)

Odd Functions

Odd functions are symmetrical by the x-axis (establishing a mirror line). This means that if the graph is reflected by the x-axis, it does not change. Thus, for 𝑥=𝑎 and 𝑥=−𝑎, the values of y are flipped (e.g. 𝑥=𝑎,𝑦=−𝑏, 𝑥=−𝑎,𝑦=𝑏).

This can be proved through following the rule 𝑓(−𝑥)=−𝑓(𝑥).

Example

Determine whether 𝑓(𝑥)=𝑥3 is odd or even.

𝑓(𝑥)=𝑥2𝑓(−𝑥)=(−𝑥)3𝑓(−𝑥)=(−𝑥)3𝑓(−𝑥)=−𝑥3−𝑓(𝑥)=−[𝑥3]−𝑓(𝑥)=−𝑥3∴𝑓(−𝑥)=−𝑓(𝑥)

Warning

Be careful not to use 𝑓(−𝑥) to create −𝑓(𝑥). Always derive −𝑓(𝑥) from 𝑓(𝑥).