The concept of a function is one of the most important in all of mathematics. A function is an abstraction - an idea or a way of seeing a concept rather than the thing itself. That may seem strange, but it's really pretty easy and useful.

Functions are a way of putting many different concepts on a more even playing field. Using functions, you'll see that many kinds of mathematical constructs have a few identical features, and that makes them all easier to understand. Always remember:

More things are similar in mathematics than different.

Much of the time in mathematics we'll think about *functions* rather than *equations*. A function can be thought of as a "machine" or a "black box" into which we put an **independent variable**, say **x**, and out of which we get a **dependent variable**, say **y**. The function itself is just a set of instructions for what do do with **x** in order to get the one (and only one) value of **y** that goes with it.

The two form an ordered pair **(x, y)**, the coordinates of a point on the Cartesian plane that is on the graph of the function.

For example, we could have a function that takes **x** as input, squares it, and gives back the result (the output) as **y**. We might write this function as **y = x ^{2}**.

So if we put a 2 into our squaring "machine", it would give us back a 4. If we put in a 3, it would give us back a 9, and so on. Each **x** we put in is paired with a **y** that results from following the instructions for what to do with **x**.

X
### Cartesian coordinates

Cartesian coordinates are the normal 2-dimensional (2D) or 3-dimensional (3D) coordinate systems we most-frequently use. In two dimensions, we draw x- and y-axes at 90˚ angles to each other, and in 3D we add a third axis, usually the z-axis, perpendicular to the x-y plane.

The location or direction of an point or particle can be described using Cartesian coordinates (x, y) in the 2D plane, or (x, y, z) in 3D.

The value of the **dependent variable** depends on the value of the **independent variable**.

The independent variable is the input to a function (often **x**); the dependent variable is the output (often **y**).

A function, given a value of the independent variable, **x**, generates a point **(x, y)** in the Cartesian plane

We'll need a way to write and refer to functions. For now, let's stick with our squaring function. The usual way to write that function is shown here:

It's important to remember that this is just a special kind of notation for naming functions. It does *not* mean a *variable* f multiplied by the variable **x**. “f of x” is a function that takes in the variable **x** and squares it to give a corresponding **y**. In this context, **f is not a variable**.

Very often, to distinguish different functions we might be working with at the same time, we might write them as **f****(x)**, **g****( x)**,

Sometimes we say that a function provides us with a **mapping** of one set of numbers, the **domain** (the *x*'s) *onto* another set of numbers, the **range** (the *y*'s). The domain and range of a function are sets of numbers, and they can be different.

The function tells us which * y* in the range goes with each

It is useful to think of many different classes of functions in their simplest form, and then learn how to **transform** those functions into more complicated forms. You should become familiar with the forms of these ten "parent functions" below. Don't worry too much if you're unfamiliar with some of them. You'll get to them all eventually.

Click on the graph of each to go directly to the notes for that kind of function. The information to the right of each function is just a little bit to get you familiar; there's much more to know about each one.

The concept of **transforming** a parent function to alter its shape is a key theme in mathematics and in science, where we use functions to model real things. By **transformation**, we mean changing the function to alter the shape of its graph arbitrarily (any way we want). For example, through the appropriate set of transformations, the parent-function parabola, **y = x ^{2}** can be transformed into any other parabola.

There are four important kinds of transformations that you need to know:

**Vertical translation****Horizontal translation****Vertical scaling****Horizontal scaling**

To **translate** something (mathematically) is to move it up or down, left or right. To **scale** means to vertically or horizontally **stretch** or **compress**. As you look through the figures below, note that stretching in one direction is the same as compression in the other, and vice-versa. Let's look at each of these and see how it affects the graph of a function.

To **translate** something means to move it back and forth or up and down, to move it in one dimension.

To **scale** something means to **stretch** or **compress** it along a direction.

Consider the parent function of the parabolas, **f(x)=x ^{2}**, the black curve on the right. It's not too difficult to imagine that if we simply add a constant number (it's 2 in the figure) to every value of the function, we just raise (translate) the curve upward along the y-axis by 2 units.

The opposite is true when we subtract 2 from the function: It moves downward by 2 units.

That's our first transformation: If **f(x)** becomes **f(x) + k**, that means we've just translated the whole graph upward by **k** units, where a *positive* **k** means up and a *negative* **k** means down. (It's common to use the letter * k* for this; I don't know why).

When a number, usually denoted by **h**, is subtracted from the independent variable *inside* of a function, the function is translated by **h** units to the right if **h > 0** and to the left if **h < 0**.

This can be tricky. Remember that the transformation is written **f(x)→f(x - h)**; the **h** is subtracted. When **h** is positive, the translation is in the positive x direction. When **h** is negative, **(x-(-h)) = (x+h)**, and the translation is to the left. For example,

**f(x) = (x - 2) ^{2}** is a parabola translated to the right by two units.

**f(x) = (x + 2) ^{2}** is a parabola translated to the left by two units.

Any set of translations can be combined in a single function. Here, the two translations shown above have been applied to the same function.

Combined translations: **f(x) = (x - h) ^{2} + k**

They say to take the parent function **f(x)**, and move it **h** units to the right, and **k** units upward. These transformations work in *any* function at all, as you will see as you build up your own function library.

f(x) = x^{2}g(x) = (x - 4) ^{2} - 2 |
The quadratic function f(x) = x |

f(x) = x^{3}g(x) = (x + 1) ^{3} + 5 |
The cubic function moved left by 1 unit and upward by 5 |

f(x) = 2^{x}g(x) = 2 ^{(x - 3)} - 7 |
The exponential function y = 2 |

When a function is multiplied by a constant, usually denoted by **A**, the result is vertical scaling of the graph. In this case, **f(x)** becomes **A·f(x)**

When **A > 1**, the graph is stretched vertically. Compare the **orange** graph, **f(x) = 2x ^{2}**, to the parent function in

When **0 < A < 1**, the graph is compressed vertically (**purple** compared to **black**), and

when **A < 0**, the graph is flipped or reflected across the x-axis (shown further down the page).

When the independent variable is divided by a constant, usually denoted by **c**, the result is scaling of the graph along the x-axis.

When **c > 1**, the graph is stretched horizontally (made wider).

When **0 < c < 1**, the graph is compressed (made smaller) horizontally, and

when **c < 0**, the graph is reflected across the y-axis (and stretched or compressed depending on the absolute value of **c**).

Notice that horizontal scaling can accomplish the same thing as vertical scaling: H-compression = V-stretching. However, because the parameter c is acted upon by the function (squared in the cases in the graph), the result is slightly different: The graphs of **f(x) = 4x ^{2}** and

The figure above shows a generic function **f(x)** with all four transformations present. These transformations can take a basic function and stretch and bend it into a form that could model something real.

For example, we might want to model the hanging cables on the Golden Gate Bridge using an upside-down parabola. To do that we could take the parent function, flip it upside-down and stretch it using the **A** parameter, stretch it horizontally using the **c** parameter, and move it into place, perhaps setting up the origin at the center of the bridge, using the translation parameters, **h** and **k**.

The most important thing about these transformations is that they do the same things no mater what the function, whether it's a linear function or a trigonometric one (you'll learn about those later if you don't know them now.

The beauty of these transformations is that they work the same on any function.

The simple shape of the absolute-value function (the black V in the graphs below) makes it a good model function for studying transformations of all kinds. Here are a few:

In the top plot, the constant 2 has been added and subtracted to the independent variable *before* the function is evaluated. **f(x) = |x - 2| **is the parent function shifted two units to the right (**orange**), and **f(x) = |x + 2| **is a shift of two units to the left (**purple**).

In the bottom graph, the parent function of absolute value functions, **f(x) = |x|** (**black**) is compared to

**f(x) = |x| - 2** and **f(x) = |x| + 2**

in **orange** and **purple**, respectively. Notice that adding or subtracting a constant to a function just raises or lowers the value it returns by that amount. This is vertical translation.

The horizontal translation seems backward, so be carefuly = |x - h|is a shift ofhunits to the right whenhis positive. Whenhis negative, the function would be written asy = |x + h|and the shift would be to the left.

In the top figure, we multiply the absolute value parent function **f(x) = |x|** by 2 to stretch it vertically (**orange**), and by ½ to compress it vertically (**purple**). The function **g(x) = |x/0.5| **would be equivalent to the first – a two-fold horizontal compression being equivalent to a two-fold vertical stretch. Likewise, **g(x) = |x/2|** would yield the **purple** curve.

When the scaling factor is negative (lower graph), the function is reflected across the x-axis, but also scaled by the absolute value of the scaling factor.

The **orange** plot shows **f(x) = |x|** reflected across the x-axis, and the **purple** plot is the same function reflected across the x-axis and scaled (stretched) vertically by a factor of 2.

You've just begun to know all there is to know about functions. Now you need to figure out how to determine the domain and range of a function, how to put functions together in compositions that will allow you to solve a huge number of problems, and how to find inverses of functions – functions that undo the action of other functions. Use the buttons below or the menu at the top of this page to navigate onward. Have fun!

Sketch a graph of each of the absolute value functions. Approach the problems by doing one transformation at a time, starting with the parent function, **f(x) = |x|**.

This site is a one-person operation. If you can manage it, I'd appreciate anything you could give to help defray the cost of keeping up the domain name, server, search service and my time.

**xaktly.com** by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.