Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output...

73
Chapter 1 Modeling with Linear Functions, Tables, Graphs, and Formulas

Transcript of Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output...

Page 1: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Chapter 1Modeling with Linear Functions,

Tables, Graphs, and Formulas

Page 2: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Function

A rule for a relationship between an

input (independent) quantity and an

output (dependent) quantity in which

each input value uniquely determines

one output value.

We say “the output is a function of the

input.”

Page 3: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 1:

In the height and age, is

height a function of age? Is

age a function of height?

Page 4: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 2:

At a coffee shop, the menu

consists of items and their

prices. Is price a function of the

item? Is the item a function of

the price?

Page 5: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 3:

Let’s consider bank account

information. Is your balance a function

of your bank account number? Is your

bank account number a function of your

balance?

Page 6: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Function Notation

“height is a function of age” if we name

the function f we write

“h is f of a” or more simply

h = f(a) we could instead name the

function h and write

h(a) which is read “h of a”

Page 7: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Function Notation therefore…

The notation

output = f(input)

defines a function named f.

This would be read “output is fof input”

Page 8: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 1:

Introduce function notation to

represent a function that takes

as input the name of a month,

and gives as output the number

of days in that month.

Page 9: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 2:

A function N=f(y) gives the

number of police officers, N,

in a town in year y. What

does f(2005)=300 tell us?

Page 10: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Function in more formal ways…

Let A and B be sets. A function f from A to

B, denoted f: A → B, is a relation from A to

B such that for every a ⋲ A, there exists a

unique b ⋲ B such that (a, b) ⋲ f.

A function can also be called as a mapping

and/or a transformation.

Page 11: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 1:

Let: f: A → B

A = {1, 2, 3, 4, 5}

B = {a, b, c, d, e}

Then,

F = {(1, c), (2, d), (3,e), (4,c), (5,d)}

Page 12: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 2:

Let: f: X → Y

X = {j, a, y, r}

Y = {10, 1, 25, 18, 13, 5, 14, 4}

Then,

f = {(j, 10), (a, 1), (y, 25), (a, 4), (r, 18)}

Page 13: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 3:

Let: h: J→R

J = {a, m, i, g, o}

R = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}

Then,

h = {(m, 1), (i, 8), (g, 1), (o, 9)}

Page 14: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 4:

Is this a function?

Y = f(X)

X 3 2 0 -1 -2

Y 3 2 0 -1 -2

Page 15: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example 5:

Is this a function?

a = f(b)a b

1 100

1 78

2 45

3 23

Page 16: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Domain

Let A and B be sets and let f be a

function from A to B. The domain f,

denoted dom f, is the set:

dom f = { a | (a, b) ⋲ f}

Page 17: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Examples:

Some functions from A to B are:

f 1 = {(1, 2), (2, 3), (3, 4), (4, 5), (5,6)}

f 2 = {(3, a), (2, a), (1, b)}

f 3 = {(a, 2), (b, 2)}

f 4 = {(a, 2)}

f 5 = {(l, 12), (o, 15), (v, 22), (e, 5)}

Page 18: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Codomain

If f is a function from

A to B, we call A the

domain of f and B, the

codomain of f.

Page 19: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Range

Let A and B be sets and let f be a

function from A to B. The range

f, denoted range f, is the set:

range f = { b | (a, b) ⋲ f}

Page 20: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Examples:

Some functions from A to B are:

f 1 = {(1, 2), (2, 3), (3, 4), (4, 5), (5,6)}

f 2 = {(3, a), (2, a), (1, b)}

f 3 = {(a, 2), (b, 2)}

f 4 = {(a, 2)}

f 5 = {(l, 12), (o, 15), (v, 22), (e, 5)}

Page 21: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

To define a function, we must

specify:

Domain

Codomain

Value of f(x) for each x

Page 22: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Note:

Domain is the set of possible values of

inputs (x).

Range is the set of possible values of

outputs (y).

Range is always a codomain, but

codomain is not always the range.

Page 23: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Injective Function

A function f: A → B is said to beinjective (or one-to-one) if for each b⋲ B, there is at most one a ⋲ A forwhich f (a) = b.

Another term for this kind offunction is one-to-one

Page 24: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Surjective Function

A function f: A → B is said to besurjective (or onto) if for each b⋲ B, there exists an a ⋲ A forwhich f (a) = b.

This function is also called onto.

Page 25: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Bijective Function

A function is both injective

and surjective is said to be

bijective or a one-to-one

correspondence.

Page 26: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

1. g: { 1, 2, 3} → {a, b, c}where:

g(1) = c

g(2) = c

g(3) = b

Page 27: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

2. f: { 1, 2} → { }where:

f(1) = f(2) = 0

Page 28: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

3. f: {a, b} → {2, 4, 6}where:

f(a) = 2

f(b) = 6

Page 29: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

4. f: ℕ → ℕwhere:

f(x)=2x, for all x ⋲ ℕ

Page 30: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

5. f: ℤ → ℤwhere:

f(x)=x+1, for all x ⋲ ℤ

Page 31: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

5. f: ℕ → ℕwhere:

f(n)=2n+1, for all x ⋲ ℕ

Page 32: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example of Function

Direction: Identify the domain, codomain, and range. Then

decide whether the function is injective, or surjective, or

bijective.

5. f: ℕ → {-1, 1}where:

g(x)=1, if x is even,

-1, if x is odd

Page 33: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Equal Function

If f : A → B and g : A → Bare functions, we say that fand g are equal, written f =g, if f (a) = g (a), for all a ⋲A.

Page 34: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Composite Function [ f ○ g]

Let g : A → B and f : B → C be functions. The composite function f ○ g is a function from A to C defined by:

[f ○ g] (a) = f[g(a)], for all a ⋲ A.

Page 35: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Theorem: Composite of

Functions is Associative.

Let f ○ g be a composite function.

I. If f and g are injective, then f ○ g is injective.

Page 36: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Theorem: Composite of

Functions is Associative.

Let f ○ g be a composite function.

I. If f and g are surjective, then f ○ g is surjective.

Page 37: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Theorem: Composite of

Functions is Associative.

Let f ○ g be a composite function.

I. If f and g are bijective, then f ○ g is bijective.

Page 38: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Table as a Function

Functions can be represented in many ways: Words (as we did in the last few examples), tables of values, graphs, or formulas.

As a table, we are presented with a list of input and output values.

The table is simply providing us a few select values from a more complete relationship.

Page 39: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 1: This table represents the input,

number of the month (January = 1, February = 2,

and so on) while the output is the number of days

in that month.

Input (Month

number) m1 2 3 4 5 6 7 8 9 10 11 12

Output (Days in

month) D31 28 31 30 31 30 31 31 30 31 30 31

Page 40: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 2: The table below defines

a function Q = g(n).

n 1 2 3 4 5

Q 8 6 7 6 8

Page 41: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 3: This table represents the

age of children in years and their

corresponding heights.

Input (a)

Age in

Years

4 5 6 7 8 9 10

Output

(h)

Height in

Inches

40 42 44 47 50 52 54

Page 42: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 4: Which of the these

tables define a function?

Input 2 1 3 5 8

Output 2 4 6 8 10

Input -3 5 0 1 4

Output 2 2 2 2 2

Input 5 2 0 2 5

Output 2 1 0 1 4

Page 43: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 5: Which of the among these

tables are injective, or surjective, or

bijective?

Input 2 1 3 5 8

Output 2 4 6 8 10

Input -3 5 0 1 4

Output 2 2 2 2 2

Input 5 2 0 2 5

Output 2 1 0 1 4

Page 44: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Something to think about…

If each percentage earned

translated to one letter

grade, would this be a

function? Is it one-to-one?

Page 45: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Solving and Evaluating Functions

Using Tables

When we work with

functions, there are

two typical things we

do: evaluate and solve.

Page 46: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Evaluating a Function

is what we do when we know an input, and

use the function to determine the

corresponding output.

Evaluating will always produce one result,

since each input of a function corresponds

to exactly one output.

Page 47: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Solving a Function

is what we do when we know an output,

and use the function to determine the

inputs that would produce that output.

Solving a function could produce more

than one solution, since different inputs

can produce the same output.

Page 48: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 2: Evaluate g(3) and solve

g(n)=6 from this table denoted by

g(n)=Q.

n 1 2 3 4 5

Q 8 6 7 6 8

Page 49: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Graph as a FunctionGraphs are typically created with

the input quantity along thehorizontal axis and the outputquantity along the vertical.

The most common graph has y onthe vertical axis and x on thehorizontal axis, and we say y is afunction of x, or y = f(x) when thefunction is named f.

Page 50: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

How to determine if a graph

defines a function y=f(x)?

A graph defines a function y=f(x) if each input value along the horizontal axis there is exactly one output value corresponding, determined by the y-value of the graph.

Page 51: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example #1: Determine which of

the following graphs define a

function y=f(x).

Page 52: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Vertical Line TestIt is a handy way to think about whether a

graph defines the vertical output as a

function of the horizontal input.

Imagine drawing vertical lines through the

graph.

If any vertical line would cross the graph

more than once, then the graph does not

define only one vertical output for each

horizontal input.

Page 53: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Vertical Line Test

Page 54: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Horizontal Line TestOnce you have determined that a graph

defines a function, an easy way to

determine if it is a one-to-one function is

to use the horizontal line test.

Draw horizontal lines through the graph.

If any horizontal line crosses the graph

more than once, then the graph does not

define a one-to-one function.

Page 55: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Horizontal Line Test

Page 56: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Solving and Evaluating Functions

using Graphs

Evaluating a function using a

graph requires taking the given input and

using the graph to look up the corresponding

output.

Solving a function equation using

a graph requires taking the given output

and looking on the graph to determine the

corresponding input.

Page 57: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

How to evaluate a function using a

graph?

To evaluate f(x), we find the

input of x on the horizontal

axis. Moving up to the graph

gives the point (x, y), giving

an output of y. So f(x) = y.

Page 58: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

How to solve a function using

a graph?

To solve f(x) = y, we find the value

y on the vertical axis because if

f(x) = y then y is the output.

Moving horizontally across the

graph gives a point with the output

of y: (x,y). This gives the solution

to f(x) = y.

Page 59: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 1: Given the graphs on the

board, answer the following:

1.Evaluate f(2)

2.Solve f(x) =4

3.Evaluate f(-1)

4.Solve f(x) = -3

5.Evaluate f(-1)

6.Solve f(x)=5

Page 60: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

What can you say about the

graph of a Linear Function?

Page 61: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

What can you say about the

graph of a Quadratic Function?

Page 62: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Formula as Function When possible, it is very convenient

to define relationships using

formulas. If it is possible to express

the output as a formula involving the

input quantity, then we can define a

function.

Page 63: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example # 1:

Express the relationship

2n + 6p = 12 as a function

p = f(n) if possible.

Page 64: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Note:

It is important to note that

not every relationship can

be expressed as a function

with a formula.

Page 65: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Something to think about…Note the important feature of an equation written

as a function is that the output value can be

determined directly from the input by doing

evaluations - no further solving is required.

This allows the relationship to act as a magic box

that takes an input, processes it, and returns an

output.

Modern technology and computers rely on these

functional relationships, since the evaluation of

the function can be programmed into machines,

whereas solving things is much more challenging.

Page 66: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example #2:

Express the

relationship 𝑥2 + 𝑦2 =1 as a function of 𝑦 =

𝑓 𝑥 if possible.

Page 67: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Evaluating and Solving Functions

using Formulae

Evaluating will require replacing the input

variable in the formula with the value

provided and calculating.

Solving will require replacing the output

variable in the formula with the value

provided, and solving for the input(s) that

would produce that output.

Page 68: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

How to evaluate and to solve

functions using formulae?

To evaluate f(x), we plug in the input

value x into the formula wherever we

see the input variable x, then simplify.

To solve f(x) = y, we set the formula

for f(x) equal to 1, and solve for the

input value that will produce that

output.

Page 69: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example #1: Given the function 𝑓 𝑥 =𝑥3 + 2 determine the following:

f(2)

f(x)=1

Page 70: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example #1: Given the function 𝑝 ℎ =ℎ2 + 2ℎ determine the following:

p(4)

p(h)=3

Page 71: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Observation:

This gives us the solution:

h(p) = 3 when p = 1 or p = -3

We found two solutions in this

case, which tells us this

function is not one-to-one.

Page 72: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Example #1: Given the function 𝑔 𝑚 =

𝑚 − 4determine the following:

g(5)

g(m)=2

Page 73: Chapter 1...Function A rule for a relationship between an input (independent) quantity and an output (dependent) quantity in which each input value uniquely determines one output value.

Constant Function

A function f : A → B is a constant function if

there exists a b ⋲ B such that f (a) = b for all a ⋲

A.