You are on page 1of 22

Calculus MTH 3100

Chapter 1 : Intro. To Calculus

L1 1.2 FUNCTIONS AND THEIR


GRAPHS
Plan:
 Definition
 Examples
 The Graph of a Function
 The Vertical Line Test
 Some Types of Functions

Functions are major objects we deal with in


calculus because they are the key to describing
the real world in mathematical terms.

This section reviews the ideas of functions,


their graphs, and ways of representing them.

Definition:

In everyday life, many quantities depend on one or


more changing variables eg:

L1 25
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

a) The area of a circle depends on the


radius of the circle.

b) The distance an object travels from an


initial location along a straight line path
depends on its speed.

c) test marks depend on attitude, listening in


lectures and doing tutorials

In each case, the value of one variable quantity,


which we might call y, depends on the value of
another variable quantity, which we might call
x.

Since the value of y is completely determined


by the value of x, we say that y is a function of
x.

L1 26
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Often the value of y is given by a rule or


formula that says how to calculate it from the
variable x.

For instance the equation A   r 2 is a rule that


calculates the area A of a circle from its radius
r. A symbolic way to say y is a function of x is
by writing

y  f ( x) ("y equals f of x ")

In this notation, the symbol f represents the


function. The letter x, called the independent
variable, represent the input value of f , and y,
the dependent variable, represents the
corresponding output value of f at x.

Definition :
A function from a set X to a set Y is a rule that
assigns a unique (single) element f ( x)  Y to
each element x  X

A function is a rule that relates how one quantity


depends on other quantities.

L1 27
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

The set X of all possible input values is called


the domain of the function.

The set of all values of f ( x) as x varies


throughout X is called the range of the
function. The range may not include every
element in the set Y.

x f f(x
Input Output )
(Domain) (range)

A Function f

f(x)
x
Domain Range

Figure 1 :Functions Described by Formulas

The simplest way to describe a function is by


use of a formula. A formula tells explicitly how
L1 28
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

to find the image of a number by carrying out


arithmetic operations.

Example:

State in words the rule given by each of the


following formulas:

(a ) f ( x)  2 x  1 (b) g ( x)  2  x

Solution :

(a) The function f assigns to x the number 1


more than twice x. That is, to find the image
of x, multiply x by 2 and adds 1.

(b) To find the image of x under g, subtract x


from 2 and find the square root of the
difference.
Example:
In the equation
y = 3x + 1,

L1 29
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

y is a function of x, since for each value of x,


there is only one value of y.
If we substitute x = 5, we get y = 16 and no
other value. The values of y we get depend on
the values chosen for x.
Therefore, x is the independent variable and y is
the dependent variable.

Example :

For each of the following functions, find f(0),


f(-2), f(p) and f ( p 2 )

1
(a ) f ( x)  (b) f ( x)  x
x

Solution :

L1 30
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

( a ) f (0) is not defined ;


1 1 1
f (2)   ; f ( p)  ; f ( p2 ) 
2 p p2

(b) f (0)  0 ; f ( 2) is not defined ;


f ( p)  p; f ( p2 )  p2  p

Note: Numbers that you should remember to


exclude from the domain are those values that
would cause division by zero or the square root
of a negative number

Example:

Find the domains for


1
(a) f ( x)  (b) g ( x)  x 2  4
x3
1
(c) g (t )  9  t 2 (d ) h( w) 
9  w2

Solution:

L1 31
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

(a) We must exclude 3 from the domain


because it would require division by zero.
Thus the domain is  x : x  3 This may be
read “the set of x’s such that x is not equal to
3“.

(b) For g, there is no restriction on the values of


x, since x2  4 is a real number no matter
what real number x is. Thus, the domain of g
is all of R.

(c) To avoid the square root of a negative


number, we must choose t so that 9  t 2  0.
That is, we must have
9  t2  0
t2  9
t 3
 3  x  3  [3,3]

(d) Now we must avoid division by zero and


square roots of negative numbers, so we must
exclude -3 and 3 from the domain. The
domain is therefore the interval (-3,3).

L1 32
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

The Graph of a Function

Definition : The graph of a function f is the


set of all points (x , f(x)) in the coordinate plane,
with x in the domain of f .Thus, if the function f
has domain X, then

Graph of f = {(x, y): y = f(x) and x  X }

The Vertical Line Test


L1 33
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Example:

Figure 3 : The Vertical Line Test

L1 34
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

If f : A  B is a function that assigns the


element in A with an element in B, then f can be
denoted by any curve of graph. Using by the
vertical line test, we can define either f is a
function or not.

Since each number x in the domain of a


function f has just one image, no two points on
the graph of f can have the same first
coordinate.

This means that no vertical line can meet the


graph of f more than once.

Some Types of Functions

1. A constant function is defined by a


formula of the form f(x) = c, c a constant.

Example : f ( x)  8

L1 35
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Figure 4 : Function f ( x)  8

2. A linear function is defined by a formula


of the form f(x) = mx+ b, with m and b
constant, and m  0 . (m is the slope of a
line)

Example : f ( x)  4 x  1

L1 36
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Figure 5 : Function f ( x)  4 x  1

3. A quadratic function is defined by a


formula of the form

f ( x)  ax2  bx  c, a, b and c constants, and a  0

Example : f ( x)  x 2

L1 37
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Figure 6 : Function f ( x)  x
2

L1 38
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

4. A polynomial function is defined by a


formula of the form

f ( x)  an x n  an1x n1  ........  a1x  a0

with n a nonnegative integer and


a0 , a1 ,..., an constants. The degree of a
polynomial is the largest exponent that
occurs in its formula

L1 39
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Example:
f ( x)  2 x 7  9 x 5  2 x 4  6 x 2  2

5. A power function, defined by a formula of


the form
f ( x)  x n (n a positive integer)

L1 40
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

6. A rational function is the ratio of two


polynomial functions. That is, if p and q are
polynomial functions, then the function
p( x)
f ( x)  is a rational function.
q( x)

2 x 4  x 2  3x
Example: f ( x)  5
5 x  2 x3  2

7. A root function is defined by a formula of


1
the form f ( x)  x n  n x , with n a positive
integer.

L1 41
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

The domain of a root function is the set of all


real numbers if n is odd and the set of
nonnegative real numbers if n is even.

Example: f ( x)  3 x

8. The absolute value function is defined by a


formula of the form

x if x  0
f ( x)  x  
 x if x  0

L1 42
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

Figure 7: Function f ( x)  x

9. The greatest integer function is defined to


be the greatest integer not exceeding x, and is
denoted by  x .

If x is an integer, then [x] = x. Then,


observe that if n is an integer and
n  x  n  1, then [x] = n . Hence,

L1 43
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

[x] = n if n  x  n  1

Figure 8 : Function f ( x)   x 

Example:
Sketch the graph of function f ( x)   2 x 

Solution:
From definition of the greatest integer function,

L1 44
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

f ( x)   2 x   n  n  2 x  n  1.

Therefore,
n n 1
f ( x)   2 x   n if  x 
2 2
for all integers n.

Figure 9 : f  x   2x

L1 45
Calculus MTH 3100
Chapter 1 : Intro. To Calculus

L1 46

You might also like