0% found this document useful (0 votes)
23 views16 pages

1 Functions

Uploaded by

Ayça Aylanç
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views16 pages

1 Functions

Uploaded by

Ayça Aylanç
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Functions

Example
The area A of a circle depends on its radius r . The rule is

A = πr 2

We say that A is a function of r .

30 cm2

20 cm2
radius r
10 cm2
area A = πr 2
0 1 cm 2 cm 3 cm r
Functions

A function f from D to E is a rule that assigns to each element


x in a set D exactly one element, called f (x), in a set E.
Visualizing functions as arrow diagrams:

This example
a I domain D = { a, b, z }
a
b I E = { a, b, c, d }
b c I f (a) = a
z d I f (b) = a
f I f (z) = d
D E
I range = { a, d }
Terminology:
I f (x) is the value of f at x
I domain of f is the set D
I range of f is the set of all possible values f (x) for x in D
Functions as Machines
A function as a machine:

x in D f f (x) in E
(input) (output)

I domain = set of all possible inputs


I range = set of all possible outputs

Example
Square f (x) = x 2 :
I domain = R
I range = {x | x ≥ 0} = [0, ∞)

Square root f (x) = x (over real numbers):
I domain = {x | x ≥ 0} = [0, ∞)
I range = {x | x ≥ 0} = [0, ∞)
Visualizing Functions as Graphs

The graph of a function f is the set of pairs { (x, f (x)) | x ∈ D }

I set of all points (x, y ) in the coordinate plane


such that y = f (x) and x is in the domain

y y
(x, f (x))

range •
2 f (x)
• •
1
f (1)
x x • • x
0 1 2
domain
Functions: Examples
y

0 1 2 3 4 x

What is f (3)?
I f (3) = 4
What is the domain and range of this function?
I domain = {x | 1 ≤ x ≤ 4} = [1, 4]
I range = {y | 1 ≤ x ≤ 5} = [1, 5]
Functions: Examples

What is the domain and range of f (x) = x + 2?
I domain = {x | x ≥ −2} = [−2, ∞)
I range = {y | y ≥ 0} = [0, ∞)

1
What is the domain of g(x) = x 2 −x
?

1 1
g(x) = =
x2 −x x(x − 1)

Thus g(x) is not defined if x = 0 or x = 1. The domain is

{x | x 6= 0, x 6= 1}

which can also be written as

(−∞, 0) ∪ (0, 1) ∪ (1, ∞)


Vertical Line Test

When does a curve represent a function?


Vertical Line Test
A curve in the xy -plane represents a function of x if and only if
no vertical line intersects the curve more than once.

y y

0 x 0 x
a a

corresponds to a function of x does not correspond to a function of x


Representations of Functions
Functions can be represented in four ways:
I verbally (a description in words)

Example: A(r ) is the area of a circle with radius r .


I numerically (a table of values)
r 1 2 3
A(r ) 3.14159 12.56637 28.27433

I visually (a graph)
A(r )

20

10

0 1 2 r

I algebraically (an explicit formula)


A(r ) = πr 2
Piecewise Defined Functions

A piecewise defined function is defined by different formulas in


parts of its domain.


1−x if x ≤ −1
f (x) =
x2 if x > −1

point belongs to the graph

1 point is not in the graph

-1 0 1 x
Piecewise Defined Functions: Example

The absolute value function f (x) = |x| is piecewise defined:



x if x ≥ 0
|x| =
−x if x < 0

-1 0 1 x
Piecewise Defined Functions: Example

0 1 2 3 4 x

Find a formula for the function f with the graph above.




1 − x if 0 ≤ x ≤ 1
f (x) = x − 1 if 1 < x ≤ 3


2 if x > 3
Symmetry

A function f is called
I even if f (−x) = f (x) for every x in its domain, and
I odd if f (−x) = −f (x) for every x in its domain.

y y
(x, f (x))
(−x, f (x)) (x, f (x))

0 x 0 x

(−x, −f (x))

an even function an odd function

I even functions are mirrored around the y -axis


I odd functions are mirrored around the y -axis and x-axis
(or mirrored through the point (0, 0))
Symmetry

How to remember what is even and odd?

y y

x2 1 x4 1

-1 0 1 x -1 0 1 x

-1 -1

y y

1 1

x3 -1 0 1 x
x5 -1 0 1 x

-1 -1

Thick of power functions x n with n a natural number:


I x n is even if n is even
I x n is odd if n is odd
Symmetry
Which of the following functions is even?
1. f (x) = x 5 + x
2. g(x) = 1 − x 4
3. h(x) = 2x − x 2

We have:
1. f (−x) = (−x)5 + (−x) = − x 5 − x = − (x 5 + x) = − f (x)
Thus f is odd.
2. g(−x) = 1 − (−x)4 = 1 − x 4 = g(x)
Thus g is even.
3. h(−x) = 2(−x) − (−x)2 = − 2x − x 2
Thus h is neither even nor odd.

Note that:
I The sum of even functions is even (e.g. 1 + x 4 ).
I The sum of odd functions is odd (e.g. x 5 + x).
Increasing and Decreasing Functions

A function f is increasing on an interval I if


f (x1 ) < f (x2 ) whenever x1 < x2 and x1 , x2 ∈ I
The function is decreasing on an interval I if
f (x1 ) > f (x2 ) whenever x1 < x2 and x1 , x2 ∈ I

3 This function is:


2
I increasing on [0, 3]
I decreasing on [3, 4]
1
I increasing on [4, 6]
0 1 2 3 4 5 6 x
Increasing and Decreasing Functions

3
The function f (x) = x 2 is:
2 I increasing on [0, ∞)
1 I decreasing on (−∞, 0]

-2 -1 0 1 2 x

You might also like