# Functions

## Introduction

Functions are the main tool used in modeling applications. Functions are a way to associate one element from the domain to one element of the range. For example, associating a video game with its cost at a local video game score. Each game has a unique price. The distinguishing factor for functions is being able to associate each element in the domain, in our example the domain is the collection of products, with an element of the range, the prices of games.

## When Equations are Functions

An equation involving x and y is a function if there is a unique value of y for each value of x.

Example: y + 5x = 3

Non-example: This is a non-example since we can solve for y and find that . So for each value of x, we do not know which value of y to select, the positive or negative one.

## Difference Quotient

Given a function f(x), the difference quotient of a function at x is defined by, .

Example: Find the difference quotient for By definition the difference quotient is This expression simplifies to .

## Domain of a Function

The domain of the function can be thought of as the set of x-values such that the expression makes sense for those values of x. An expression makes sense if the value of x does not lead to division by zero or taking the square root of a negative number. An equivalent way of thinking of the domain is to start by assuming the domain is all real numbers, and remove any x-values that lead to division by zero or square rooting a negative number.

Example: Find the domain of the following: a)

b)

Solution:

a) Here we only have a fraction and no square root. So we only need to make sure we do not divide by zero. So we want to make sure That is .

b) Here we have to make sure we do not divide by zero or take the square root of a negative number. So This means

## Properties of functions

Now we discuss a few properties of functions.

If f and g are functions: a)

b)

c)

d)