# Functions

The concept and notation of functions is used throughout the fields of algebra, calculus, and statistics. Make sure your understanding of the subject is solid.

A *function* is formally defined as a correspondence between a first set, called the *domain* and a second set, called the *range*, such that each member of the domain corresponds to exactly one member of the range.

The *domain* is the set of all inputs for which the function returns a real number value. By convention, the domain is graphed on the horizontal axis.

What does all this mean, exactly? It is helpful to think of a function as being graphed on paper. If you were to draw a vertical line through the graph, it would hit the graph of the function at only one point. Thus, the relation ** f(x) = x^{2}** is a function because it passes the vertical line test.

In standard functional notation, a function is denoted by the name of the function followed by a list of independent variables in parentheses. Make sure that you do not confuse the parentheses in the function with multiplication. A couple examples of functions are:

** f(x) = cos(x^{2})** is an example defining a function

*f*of variable x.

** P(F,i,n) = F / (1 + i^{n})** is the present value of a cash flow, a function of the variables for the future value, the interest rate, and the number of payments.

Besides its use in math, functional notation is used in computer spreadsheets and forms the basis for all modern computer programming languages.

## Algebra and Composition of Functions

Think of functions as a self-contained “black box”. You put values in, and get values out. The self-contained nature of functions allows us to perform many algebraic operations on whole functions.

**If f and g are functions of x, and x is in the domain of both f and g, then:**

**( f + g)(x) = f(x) + g(x)**

**( f – g)(x) = f(x) – g(x)**

**( f · g)(x) = f(x) · g(x)**

**( f / g)(x) = f(x) / g(x)**, so long as

*g*(x) ≠ 0A function can also be embedded in another function. This situation is denoted by the **○** operator:

**Let f(x) and g(x) be functions where x is in the domain of g and g(x) is in the domain of f. Then:**

**( f ○ g)(x) = f(g(x))**

So where is the algebra and composition of functions useful? Lost of places, but the obvious application is in calculus. Using the composition rules, you can often break a composite function into simpler functions for which you know the differentiation or integration rules. In fact, the chain rule allows you to differentiate any composite function as long as you can differentiate the component functions.

## Transformations of Functions

Very often, we need to either graph a function, or interpret a graph of a function. It can be quite useful to know how constants in the function change the position and shape of the graph.

### Translation

**Let b > 0 then**

**y = f(x) + b** is the graph of

**y =**shifted

*f*(x)*up*by

**b**units.

**y = f(x) – b** is the graph of

**y =**shifted

*f*(x)*down*by

**b**units.

**Let d > 0 then**

**y = f(x – d)** is the graph of

**y =**shifted

*f*(x)*right*by

**d**units.

**y = f(x + d)** is the graph of

**y =**shifted

*f*(x)*left*by

**d**units.

### Reflection

The graph of **y = – f(x)** is the reflection of

**y =**across the

*f*(x)**x**axis.

The graph of **y = f(-x)** is the reflection of

**y =**across the

*f*(x)**y**axis.

### Stretching/Shrinking

**Let a be a constant, then**

The graph of **y = a· f(x)** is

*stretched* vertically if **|a| > 1**

*shrunk* vertically if **|a| < 1**

**Let c be a constant, then**

The graph of **y = f(c·x)** is

*stretched* horizontally if **|c| < 1**

*shrunk* horizontally if **|c| > 1**

## Sources

Beecher, J., Penna, J., & Bittenger, M. (2008). *College Algebra* [3rd Ed.]. Boston, MA: Pearson.

## Leave a comment

## Comments 0