You are on page 1of 22

College Algebra Section 2.

1 Functions and Graphs

Let X and Y be two nonempty sets. A function from X into Y is a relation that associates with each element of X exactly one element of Y. In other words, a function is a set of ordered pairs in which no two ordered pairs have the same first coordinate and different second coordinate.

Domain

Range

The following guidelines can help determine whether a relation is a function. 1. Each element in the domain must be matched with exactly one element of the range. 2. Some elements in the range may not be matched with any element in the domain. 3. Two or more elements of the domain may be matched with the same element of the range. So how can we tell if a graph represents a function? Each ____ will correspond with exactly one ____. An easy way to check is to use the Vertical Line Test. Theorem:

In other words, if any vertical line intersects a graph at more than one point, the graph is not the graph of a function. Now we can play a quick game of Function? Not a Function?

Section 2.1 Functions and Graphs

Page 2

Example1 : Use the graph of the function f to answer parts (a)-(n). (a) Find f ( 0 ) and f ( 6 ) .

-4 -6 8

Page 3

Example3: Determine if the equation = x 2 y 2 + 1 defines y as a function of x.

One idea for explaining the mechanics of functions is the idea of a Function Machine.

1. It accepts numbers from the domain of the function. 2. For each input, there is exactly one output (which may be repeated for different inputs). Example4: For the function f defined by f ( x ) = 3 x 2 + 2 x , evaluate: (a) f ( 3)

(b) f ( x ) + f ( 3)

(c) f ( x )

(d) f ( x )

Page 4

(e) f ( x + 3)

(f)

f ( x + h) f ( x) , h 0 ( The difference quotient) h

Summary Important facts about functions. For each x in the domain of f, there is exactly one image f(x) in the range; however, an element in the range can result from more than one x in the domain. f is the symbol that we use to denote the function. It is symbolic of the equation that we use to get from an x in the domain to f(x) in the range. If y = f(x), then x is called the independent variable or argument of f, and y is called the dependent variable or the value of f at x. Unless otherwise stated, the domain of a function f is the largest set of real numbers for which the value f ( x ) is a real number. Sometimes its helpful to ask yourself, What values of the independent variable make sense in the given equation? Example5: Find the domain and range of each of the following functions: (a) f ( x ) =
x+4 x 2x 3
2

(b) g ( x= ) x2 9

(c) h ( x = )

3 2x

Page 5

Page 2

* Youll also see f ( x ) = x

The domain of the greatest integer function is all real numbers and the range is all integers. The y-intercept is 0 and the x-intercept is [ 0,1) . The function is neither even nor odd and has a discontinuity at every integer.

Page 3

x Example: If f ( x ) = int , find f (1.2 ) , f (1.99 ) , f ( 2.2 ) , f ( 1.8 ) 2

Sometimes a function is defined differently on different parts of its domain. When functions are defined by more than one equation, they are called piecewise-defined functions.
3 + x, 3 x < 0 x=0 Example: Graph f ( x ) = 3, x, x > 0 Find the domain, intercepts, and, based on the graph, the range.

Example: An economy car rented in Florida from National Car Rental on a weekly basis costs \$95 per week. Extra days cost \$24 per day until the day rate exceeds the weekly rate, in which case the weekly rate applies. Also, any part of a day used counts as a full day. Find the cost C of renting an economy car as a piecewise-defined function of the number x of days used, where 7 x 14 . Graph this function.

College Algebra Section 2.3 Families of Functions, Transformations, and Symmetry

Sometimes we are asked to graph a function that is almost like one that we already know from our library of functions. In this section, well look at some of these functions and develop techniques for graphing them. Collectively, these techniques are referred to as transformations. All the transformations of a function form a family of functions. Rigid Nonrigid; Well start by graphing functions using vertical and horizontal shifts. On the same screen, graph the following functions:

Section 2.3 Families of Functions, Transformations, and Symmetry

Page 2
3

Example1 : Start with the graph of the basic function and use shifts to graph f ( x ) = ( x + 2 ) 3 .

Basic function: Vertical Shift: Horizontal shift: Does the order of the vertical and horizontal shift matter? Example: Write the function whose graph is the graph of y = x 2 , but is shifted 5 units to the right and 7 units up.

We can also transform graphs by stretching or compressing. Stretching and compressing can be done in either the vertical or horizontal direction. On the same screen, graph the following functions:

Section 2.3 Families of Functions, Transformations, and Symmetry

Page 3

Now in the horizontal direction On the same screen, graph the functions:

Example2 : Write the equation of the function whose graph is the graph of y = x 2 , but is: 1 (a) vertically compressed by a factor of . 3 (b) horizontally compressed by a factor of 4.

If you were to apply both vertical and horizontal stretches/compressions to a graph, would the order in which those transformations are made matter? The last types of transformations we will study are reflections about the x-axis and y-axis. First well look at a reflection about the x-axis. On the same screen, graph the functions:

Y1 = x 2 4

Y2 = x 2 4 = x 2 + 4

Section 2.3 Families of Functions, Transformations, and Symmetry

Page 4

Next, a reflection about the y-axis On the same screen, graph the functions:

Y1 = x 4 + x Y2 = ( x ) + ( x ) = x 4 x
4

Example 3 : Write the equation of the function whose graph is the graph of y = ( x 3) 4 , but is: (a) reflected about the x-axis.
2

(c) reflected about both the x- and y- axis.

When you apply reflections in both the x- and y-axes, would the order in which those transformations are made matter?

Section 2.3 Families of Functions, Transformations, and Symmetry

Page 5

When discussing the symmetry of the graphs of functions, it can get long and tedious to use the phrase symmetric with respect to the y-axis or symmetry with respect to the origin. Instead, well use the words even and odd to describe the symmetry that exists for the graph of a function. A function is even if and only if its graph is symmetric with respect to the y-axis.
For an even function, for every point (x, y) on the graph, the point (-x, y) is also on the graph.

A function is odd if and only if its graph is symmetric with respect to the origin.
So for an odd function, for every point (x, y) on the graph, the point (-x, -y) is also on the graph.

Verify algebraically if the following graphs are even, odd, or neither.

f ( x ) = 3 x 4 x 2 + 2
f ( x ) = 3 x 4 x 2 + 2

g ( x ) = 5 x 3 1

g ( x ) = 5 x3 1

h ( x ) = 2 x3 x h ( x ) = 2 x 3 + x

College Algebra Section 2.4 Operations with Functions

Functions, like numbers, can be added, subtracted, multiplied, and divided. If f and g are functions: The sum f + g is the function defined by ( f + g )( x ) = f ( x ) + g ( x ) The difference f g is the function defined by ( f g )( x ) = f ( x ) g ( x ) The product f g is the function defined by ( f g )( x ) = f ( x ) g ( x ) The quotient
f ( x) f f is the function defined = by ( x ) , g ( x) 0 g ( x) g g

x ) 4 x3 + 1 find the following: x ) 2 x 2 + 3 and g (= Example 1: For the functions f (=

(a) ( f + g )( x ) =

(b) ( f g )( x ) =

(c) ( f g )( x ) =

Section 2.4 Operations with Functions

Page 2

Composition of Functions

We can evaluate composite functions either by hand or using a calculator. Example 3: Suppose that f (= x ) 2 x 2 + 3 and g (= x ) 4 x3 + 1 . Find: (a)

( f g )(1)

(b) ( g f )(1)

(c)

( f f )( 2 )

(d) ( g g )( 1)

Section 2.4 Operations with Functions

Page 3

This means that the domain of f g is a subset of the domain of g. (And the range of f g is a subset of the range of f.)
1 and g ( x = ) x

x 1 . Find the composites and state their domains.

(b) f f

The composite functions f g and g f are usually different. Guess what? We can also undo, or decompose, a composite function. These decompositions are not always unique but there is usually one that is more natural than the others.

1 x2 .

College Algebra Section 2.5 One-to-One Functions; Inverse Functions

Sometimes its easier to look at what a 1-1 (one-toone) function is not: A function is NOT 1-1 if two different inputs correspond to the same output.

The vertical line test tells us if a _________________ is a __________________ . The horizontal line test tells us if a _________________ is __________________ .

Section 2.5 One-to-One Functions; Inverse Functions

Page 2

For each function, use the graph to determine whether the function is one-to-one.

{(1, 2 ) , ( 2,8) , ( 3,18) , ( 4,32 )}

To verify that one function is the inverse of another, we need to check that
f 1 ( f ( x ) ) = x

where x is in the domain of f and where x is in the domain of f 1 .

f ( f 1 ( x ) ) = x

Page 3

x 5 3x + 5 is g ( x ) = both algebraically and 2x + 3 1 2x

To find the inverse of a function by Switch and Solve Method (pg 243) 1. 2. 3. 4. 5. Example: The function f ( x ) =

2x + 3 , x 2 , is one-to-one. Find its inverse and check the result. x+2

In the above example, compare the horizontal and vertical asymptotes of f and f 1 . What do you notice? Surprised?

Page 4

College Algebra Section 2.6 Constructing Functions with Variation

Variation is how one quantity varies in relation to another. Quantities may vary directly, inversely, or jointly.

Example 1: the cost of a smoothie is directly proportional to its size. If a 12-ounce smoothie is \$3.60, them what is the cost of a 16-ounce smoothie?

Now well take a look at problems that use either inverse variation or joint (combined) variation.

Example 2: The time required to rake the grounds at Rockwood Manor varies inversely with the number of rakers. If 4 rakers can complete the job in 12 hours, then how long would it take for 6 rakers to complete the job?