A function is a relationship between two variables where for every independent variable, there is only one dependent variable. This means that for every *x* value, there is only one *y* value.

A** function** is a special type of relation. It is like a machine where for every INPUT there is only one OUTPUT.

Notice below that there is only one ordered pair for each variable.

The ordered pairs are (A, 1), (B, 1), (C, 4), (D, 3) and (E, 2).

The first variable (INPUT) is called the independent variable and the second (OUTPUT) the dependent variable. The process is a **rule** or pattern.

For example, in , we can use any number for *x* (the independent variable), say *x* = 3.

As this value depends on the number we choose for *x*,*y* is called the dependent variable.

Below is an example of a relationship that is NOT a function. Can you see the difference between this example and the previous one?

In this example the ordered pairs are (A, 1), (A, 2), (B, 1), (C, 4), (D, 3) and (E, 2).

Notice that A has two dependent variables, 1 and 2. This means that it is NOT a function. Instead, a **relation** is a set of ordered points (*x*, *y*) where the variables *x* and *y* are related according to some rule.

## Function Notation

If y depends on what value we give *x* in a function, then we can say that *y* is a function of *x*. We can write this as *y = f(x)*.

For example, if *f(x) = x + 1*, evaluate *f(3)*. This is the same as evaluating the function when *x = 3*.

*f(x) = x + 1*

*f(3) = 3 + 1*

*f(3) = 4*

If *y = f(x)* then *f(a)* is the value of *y* at the point on the function where *x = a*.

### Examples:

1. If , find the value of .

### Show Answer

2. Find the values of *x* for which , given that .

### Show Answer

3. Find the value of if:

### Show Answer

## Domain and Range

You have already seen that the *x-*coordinate is called the independent variable and the *y-*coordinate is the dependent variable.

The set of all real numbers *x* for which a function is define is called the **domain**.

The set of real values for *y* or *f(x)* as *x* varies is called the **range** (or image) of *f*.

For example, we can see the the domain and range of from the graph, which is the parabola .

Notice that the parabola curves outwards gradually, and will take on any real value for *x*. However, it is always on or above the *x-*axis.

Domain: {all real *x*}

Range: {y:y0}

We can also find the domain and range from the equation . Notice that we can substitute any value for *x* and you will find a value of *y*. However, all the *y-*values are positive or zero since squaring any number will give a positive answer (except zero).

## Quadratic Function

### Examples:

1. For the quadratic function

a) Find the *x-* and *y-*intercepts

b) Find the minimum value of the function

c) State the domain and range

d) For what values of *x* is the curve decreasing?

### Show Answer

2. (a) Find the x- and y- intercepts and the maximum value of the quadratic function .

(b) Sketch the function and state the domain and range.

(c) For what values of x is the curve decreasing?

### Show Answer

There are many other functions that you will discover on this website. Click on the Curriculum Menu Links to discover more!