You are on page 1of 22

CHAPTER 1 FUNCTIONS, LIMITS AND CONTINUITY

1.1 FUNCTIONS: a quick review

Definition. A function f is a rule that associates a unique output with each input. If the input is denoted by x, then the output is denoted by f(x) [ read f of x] Consider f ( x ) ! 3x 2  4 x  2 , the output of f are obtained by substituting numerical values for x. For example, f (0 ) ! 2 f (1) ! 3(1) 2  4(1)  2 ! 1 f ( 2) ! 3( 2) 2  4( 2)  2 ! 6 If we use t or x+h as input, the output will be, f ( t ) ! 3t 2  4 t  2 f ( x  h) ! 3( x  h) 2  4( x  h)  2 ! _____________ f ( x  h)  f ( x ) ! _______________  (3 x 2  4 x  2) !

Example 1 If f(x) = 8x 1, find: a. b. c. d. f(2) the value of k if f(k) = 3 f(x2 ) f(1-x)

Solution a. f(2) = = = 15 b. f(k) = 3 8k 1 = 3 =

Chapter 1

Function, Limits and Continuity

k= c. f(x2 ) = d. f(1-x) =

1 2

= = 7 8x

1.1.1

Graph of functions

Graph of some basic functions

y x=y

y y=x2

y y=x3

y y=1/x

Chapter 1

Function, Limits and Continuity

y
y! x
2

y!3 x

1.1.2

Domain and range

If y=f(x), then the set of all possible inputs (x-values) is called the domain of f, and the set of outputs (y-values) that result when x varies over the domain is called the range of f. X Y f Range

Domain

Codomain

The domain and range of a function can be obtained by sketching the graph or using algebraic approach. If f and g are two fuctions with Df and Dg respectively, then a. b. d. D f g ! D f D g D f g ! D f D g D f ! D f D g  { x : g( x ) ! 0}
g

c. D fg ! D f D g

1.1.2.1 Domain and range of polynomial function Example 2 Find the domain and range of the following functions a. b. c. f ( x ) ! 2x  5 f ( x) ! x 2  2 f ( x ) !  x 2  2x  1

Chapter 1 Solution a. f(x)= 2x + 5

Function, Limits and Continuity

Graphical approach Sketch the graph of y = 2x + 5

x -5/2
It is clear that D f ! ( g, g) R f ! ( g, g)

Algebraic approach y = 2x+5. y is defined for all values of x, thus D f ! ( g, g) y ! 2x  5 2x ! y  5 y 5 x! 2 x is defined for all values of y. Thus

R f ! ( g, g)

b. For this question it is easier to use graphical method D f ! ( g, g ) R f ! ( 2, g )

c. By completing the square f ( x ) ! [ x 2  2 x  1] ! [( x  1) 2  1  1] ! ( x  1) 2 and sketch the graph

y x 0 1

Chapter 1 Thus D f ! ( g, g ) R f ! ( g,0)

Function, Limits and Continuity

1.1.2.2 Domain and range of radical function Example 3 Find the domain and range of the following functions a. b. c. d. f ( x) ! x  2 f ( x) ! 2  x f ( x) ! 2  x  1 f ( x) ! 9  x 2

Solution a. f ( x) ! x  2

Graphical method

y
D f ! (2, g ) R f ! (0, g )

x
0 2

Algebraic approach y ! x2 y is only defined if x-2 > 0, that is x > 2. Thus D f ! (2, g) y ! x2 y2 ! x  2 x ! y2  2 x is defined for all values of y. Since y ! x  2 u 0, b. thus R f ! [0, g)

Graphical method or algebraic approach can be use Ans: D f ! ( g,2) R f ! (0, g)

Chapter 1 c.

Function, Limits and Continuity

Graphical method or algebraic approach can be use Ans: D f ! (1 g ) , R f ! (2, g)

d.

Graphical method or algebraic approach can be use Ans: D f ! [ 3,3] R f ! [0,3]

1.1.2.3 Domain and range of exponent and log function y

y=ax y=x

y=logax x
The domain of f(x) = ax is ( g, g) The range of f(x) = ax is (0, g) The domain of f(x) = log a x is (0, g) The range of f(x) = log a x is ( g, g)

1.1.2.4 Domain and range of absolute value and rational function

Example 4 Find the domain and range of the following functions a. b. f ( x) ! x  1 f ( x) ! 3 x 1

Chapter 1 Solution a. It is easier to use graphical method y

Function, Limits and Continuity

x -1 D f ! ( g, g) R f ! (0, g) 3 f( x) ! x 1

b.

Graphical Method

x 0
D f ! ( g,1) (1 g ) ,

1
R f ! ( g,0) (0, g)

Algebraic Method 3 x 1 y is defined for all values of x except x = 1 y! Thus, D f ! ( g,1) (1 g ) , 3 y! x 1


y( x  1) ! 3 yx  y ! 3 yx ! 3  y x! 3y y

x is defined for all values of y except y = 0 Thus, R f ! ( g,0) (0, g)

Chapter 1 1.1.3 Composite functions

Function, Limits and Continuity

Definition Given functions f and g, the composition of f with g, denoted by f Q , is the function g defined by ( f Q )(x) = f(g(x)) g The domain of fog is defined to consist of all x in the domain of g for which g(x) is in the domain of f. Example 5 Let f ( x ) ! x 2  3 and g( x ) ! x , Find a. b. fQ g gQ f

Solution a. f Q ! f (g( x )) g ! f( x ) ! ( x )2  3 ! x3 b. g Q ! g( f ( x )) f ! g( x 2  3 ) ! x2  3 Example 6 Find (f Q Q )( x ) g h Solution ( f Q Q )( x ) ! f (g(h( x ))) g h ! f (g( x 3 )) ! ! 1 x


3/2

if

f ( x ) ! x , g( x ) ! 1/ x, h( x ) ! x 3

Chapter 1 Piecewise functions

Function, Limits and Continuity

The absolute value function f(x) = |x| is an example of a function that is defined piecewise in the sense that the formula of f changes depending on the value of x. Example 7 Sketch the graph x if x u 0 x !  x if x 0 Solution

y=|x|

Example 8 Sketch the graph


0 f(x) ! 1 x 2 x x e 1 1 x x u1 1

Solution y

f(x)=x f(x ) ! 1  x 2 f(x)=0 1 0 1

Chapter 1

Function, Limits and Continuity

Example 9 A function f is defined by 1  x f(x ) ! 2 x if if x e1 x "1

Evaluate f(0), f(1), f(2) and sketch the graph Solution

f(0) = 1

f(1) = 0
y

f(2) = 4

y = x2 y =1-x 1
x

1
Exercise 1.1 1. If f(x) = 3- 5x, find a) b) c) d) 2. a) b) c) d) e) f) f(-2) f(x3) f(2x + 1) the value of p so as f(p) = 1

Find the domain and ranges of the following functions f ( x ) ! 8x  3 f(x) !  x  5


2

g) h) i) j) k) l)

f(x ) ! 7  x f(x) ! 1  x  2 f(x) ! x  3 f(x) ! x  x f(x) ! 16  x 2 f (x ) ! 7  x

f(x) ! x  4x  3
2

6 x2 x 1 f(x) ! 5x f(x) ! f ( x) ! 7  x

10

Chapter 1

Function, Limits and Continuity

Answer: 1. a ) 13 b) c) d) 3  5x 3  10x  2 2 5 LIMITS

1.2

If the values of f(x) can be made as close as we like to L by taking values of x sufficiently close to a (but not equal to a), then we write lim f ( x ) ! L which is read the limit of f(x) as x
x pa

approaches a is L 1.2.1 Finding limits from given graph

Example 10 Make a conjecture(guess) about the value of the limit


a) x 11 sin x lim xp0 x
x p0

lim

b)

Solution a) x f(x) -0.01 1.994987 -0.001 1.999500 -0.0001 1.999950 -0.00001 1.999995 0 0.00001 2.000005 0.0001 2.00005 0.001 2.000500

2 o

11

Chapter 1
x x 1 1

Function, Limits and Continuity

Hence we conjecture that

lim

x p0

!2

b) x(radians) 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.01
sin x x 0.84147 0.87036 0.89670 0.92031 0.94107 0.95885 0.97355 0.98507 0.99335 0.99833 0.99998
lim sin x !1 x

The data in the table suggest that

x p0

And it is consistent with the graph of f(x)

1.2.2

Computing Limits

Basic properties of limits

Properties a. b. lim c ! c
x pa x pa x pa xp2

Examples lim 2 ! 2 lim x 3 ! 2 3 ! 8

lim x n ! a n

12

Chapter 1

Function, Limits and Continuity lim[ x 2  x] ! lim x 2 s lim x


x p3 2 x p3

c.

x pa

lim[f ( x ) s g( x )] ! lim f ( x ) s lim g( x )


x pa x pa

x p3

! 3 3 ! 12 2 lim x (3  x ) ! lim x 2 . lim(3  x )


x p1 x p1 2 x p1

d.

x pa

lim[f ( x ).g( x )] ! lim f ( x ). lim g( x )


x pa x pa

! 1 (3  1) 2x ! x p22 xp2 x  3 lim x  3 lim


2 x p2

!4 lim 2 x

e.

f ( x ) x pa ! , x pa g( x ) lim g( x ) lim
x pa

lim f ( x )

x pa

lim g( x ) { 0

f.

lim[cf ( x )] ! c lim f ( x )
x pa x pa

x p3

4 7 lim 2( x  4 ) ! 2 lim( x  4) !
x p3

! 2(7) ! 14
lim 4 2x 3  7 x  51 ! 4 lim (2 x 3  7 x  51)
x p2

g.

x pa

lim n f ( x ) ! n lim f ( x ), n ! positive int eger


x pa x pa

x p2

lim f ( x ) u 0

! 81
4

!3

f(x ) 0 ! , then the function f(x) and g(x)need to be simplified by factorization or by x pa g( x ) 0 multiplying with their conjugates. If lim Example 11 Determine lim Solution Simplify and factorize, we obtain lim x2  x  2 ( x  2)( x  1) ! lim x p1 3 x  3 x p1 3( x  1) ( x  2) ! lim x p1 3 1 2 ! 3 !1 x2  x  2 x p1 3 x  3

13

Chapter 1

Function, Limits and Continuity

Example 12 Determine lim x 3 x 9

x p9

Solution Simplify by multiplying the numerator and denominator by the conjugate of lim x 3 ! x 9 ! ! ! 1 6

x 3

x p9

1.2.3

The relationship between one-sided limits and two sided limits

The two sided limits of a function f(x) exists at a if and only if both of the one-sided limits exist at a and have the same value; that is, lim f ( x ) ! L if and only if lim f ( x ) ! L ! lim f ( x )
x pa
x pa x pa

Example 13
lim( 2x  3) ! 5 exist because lim ( 2x  3) ! lim ( 2x  3) ! 5
x p1
x p1 x p1

1.2.4 1.

Infinite limits If the function f increases without limit when x approaches a, then lim f ( x ) ! g x pa y

x
0 a

14

Chapter 1 2.

Function, Limits and Continuity

If the function f decreases without limit when x approaches a, then lim f ( x ) ! g


x pa

x 0 a

3.

If lim f ( x ) ! g and lim f ( x ) ! g or lim f ( x ) ! g and lim f ( x ) ! g then


x pa x pa x pa x pa x pa

lim f ( x ) ! g

4.

If a>0, 1 ! g xa 1 b. lim ! g x pa x  a If the function f approaches L when x increases without limit, then lim f ( x ) ! L a.
x pa 

lim

5. 6. 7.

x p g

If the function f approaches M when x decreases without limit, then lim f ( x ) ! M


x p g

For n>0
a.
x p g x n

lim

1 !0

b.

x p g x n

lim

1 !0

8.

f (x) g If lim ! g , then we need to simplify the function by dividing the numerator x pg g( x ) and the denominator by the highest power of x

Example 13
x 3  x3 lim ! lim x x xpg x  4 x pg x 4  x x 3 1 x ! lim x pg 4 1 x !1

a.

15

Chapter 1
x2 3  2 2 x 3 x lim ! lim x x pg x  4 x pg x 4  2 2 x x 3 1 2 x ! lim xpg 1 4  2 x x 1 ! 0 !g
2

Function, Limits and Continuity

b.

!1

9. 10.

The line x = a is a vertical asymptote of the graph if lim f ( x ) ! sg or lim f ( x ) ! sg


x pa x pa

The line y = b is a horizontal asymptote of the graph if lim f ( x ) ! b or lim f ( x ) ! b


x p g x p g

Example 14 f( x) ! 3 x 1

x p1

2 ! g x 1 2 lim f ( x ) ! ! g x p1 x 1 lim f ( x ) !

hence, x = 1 is the vertical asymptote and y = 0 is the horizontal asymptote.

x 0 1

16

Chapter 1 Exercise 1.2 1.

Function, Limits and Continuity

Given f ( x ) ! 8 x 3  x 2  10 and g( x ) ! x 3  2 x  4 , determine f(x) lim  lim g( x ) x pg g( x ) x p2 (MAT 183, March 2004) Ans: 16 a. Let h( x ) ! x 3  9x , find x 3  3x 2
3x  2 x7
2

2.

x p3

lim h( x )  lim h( x )
x p g

(MAT 183,Oct 2004) b. Ans: Find a.


x pg

lim

b.

3.

Evaluate the following limits


a. b. x2  4 x p 2 x 2  4 x  12 5x 7  4 x 5 lim x pg 2 x 4  3 x 7 lim

(MAT 149, March 2002) Ans: 4. a. 1 2 b. -5 3

Find the equations of the horizontal and vertical asymptotes of the curve 2x 2  3 x y! x2 1 (MAT 149, March 2002) Ans: x ! s1 y ! 2 , 2 , x e 0 x Given g( x ) ! 2x , 0 x  x, x " 3 8 a. b.

5.

Give the domain of g(x) in the interval form. Find the following limits; i) lim g( x )
xp0

ii) iii) iv )

lim g( x )
xp2

lim g( x )
xp3 x pg

lim g( x ) (MAT 149, March 2002)

17

Chapter 1

Function, Limits and Continuity

Ans: a. ( g,3 ) (3, g ) b. 0,4, does not exist,  g 1.3 CONTINUITY Definition A function f is said to be continuous at x = c if the following conditions are satisfied: 1. f(c) is defined 2. lim f ( x ) exists.
xpc x pc

3.

lim f ( x ) ! f (c )

Example 15 Determine whether the following functions are continuous at x = 2. x2  4 f(x ) ! x2 Solution The function f is undefined at x = 2 so f(x) is not continuous The function g is defined at x = 2 , that is g(2) = 3
xp2

2 4 x g( x ) ! x  2 , x { 2 3 x!2

2 4 x h( x ) ! x  2 , x { 2 4 x!2

lim

g( x ) ! lim

x2  4 xp2 x  2 ( x  2)( x  2) ! lim xp2 ( x  2) ! lim x  2


xp2

!4

lim
xp2

g( x ) { g(2), therefore g(x) is not continuous at x = 2

The function h is defined at x = 2 , that is h(2) = 4


xp2

lim

h( x ) ! lim

x2  4 xp2 x  2 ( x  2)( x  2) ! lim xp2 ( x  2) ! lim x  2


xp2

!4
x p2

lim

h( x ) ! h( 2) ! 4 , therefore h(x) is continuous at x = 2.

18

Chapter 1

Function, Limits and Continuity

Intermediate-Value theorem

If f is continuous on a closed interval [a,b] and k is any number between f(a) and f(b), inclusive, then there is at least one number x in the interval [a,b] such that f(x)=k. The following consequences of Intermediate-Value theorem can be use in approximating roots

Theorem

If f is continuous on [a,b], and if f(a) and f(b) are nonzero and have opposite signs, then there is at least one solution of the equation f(x)=0 in the interval (a,b).

Exercise 1.3 1. 2 x x 3 Given g( x ) ! kx  3 3 e x 4 10 x"4

Find the value of k if g(x) is continuous at x=3, hence, determine whether the function is continuous at x=4 (MAT 183, Marc 2004) Ans: k = 2, g(x) is not continuous at x = 3 x x 0 1 2 Let f ( x ) ! x 2 0ex 2 2x  c  xu2 Determine whether f(x) is continuous at x=0 Find the value of c such that f(x) is continuous at x=2 (MAT 183, Oct 2004) Ans: not continous, c = 8 x e 2 x x  1  2 e x 1 Consider the function f ( x ) ! x  3 1e x e 6 3 x"6 Test the continuity at x = -2 and x = 6 (MAT 149, Sept 2001) Ans: not continuous at x = -2 , continuous at x = 6

2.

i) ii)

3.

19

Chapter 1 4.

Function, Limits and Continuity

Find the value of m so that the function g is continuous 2  x6 x g( x ) ! x  3 m Ans: -5 x { -3 x ! -3 (MAT 121, Oct 2000)

1.4 LIMITS and CONTINUITY for TRIGONOMETRIC FUNCTIONS Theorem If c is any number in the natural domain of the stated trigonometric function, then
lim sin x ! sin c
x pc x pc

lim cos x ! cos c


x pc

lim tan x ! tan c


x pc x pc

lim csc x ! csc c


x pc

lim sec x ! sec c

lim cot x ! cot c

Theorem (The squeezing theorem). Let f, g and h be functions satisfying g( x ) e f ( x ) e h( x ) for all x in some open interval containing the number c, with the possible exception that the inequalities need not hold at c. If g and h have the same limit as x approaches c, say lim g( x ) ! lim h( x ) ! L then f also has this limit as x approaches c, that is,
x pc x pc

x pc

lim f ( x ) ! L

Note: In the method of squeezing, the function f has a limit L at a number c by trapping the function between two other functions g and h

y h(x) L f(x) g(x) x

The squeezing theorem is useful to proof the following theorem

20

Chapter 1 Theorem a) lim sin x !1 x b) lim 1  cos x x !0

Function, Limits and Continuity

x p0

x p0

Example 16 a) lim tan x x b) lim sin 2x x c) lim sin 3 x sin 5 x

x p0

x p0

x p0

Solution a) tan x sin x 1 ! lim( . ) x p0 x p0 x x cos x ! (1)(1) lim !1 sin 2 x sin 2 x ! 2 lim( lim ) x p0 x p0 x 2x ! ( 2)(1) !2 c) sin 3 x sin 3 x 3x ) lim ! lim( x p0 sin 5 x x p0 sin 5 x 5 5x 3(1) ! 5(1) 5 ! 1 3

b)

Example 17 x 2  1 Find the limit lim cos x 1 x p1 Solution Since cosine function is continuous everywhere x 2  1 ( x  1)( x  1) lim cos x  1 ! lim cos x p1 x 1 x p1 : ! cos lim x  1
x p1

! cos 2

21

Chapter 1 Exercise 1.4 Find the limits of the following functions 1. 3. 5. 7. 9. 11. 1 lim cos( ) x Tx lim sin x p g 2  3x sin3U lim x p0 U sinx lim x p0 x
x p0 

Function, Limits and Continuity

x p g

2.

lim

sinx

5 x tan7x lim x p0 sin3x

2 lim sin( ) x sinh 4. lim h p0 2h sin U 6. lim 2 x p0 U sin 2 x 8. lim x p0 3 x 2 sin 6 x 10. lim x p0 sin 8 x h 12. lim h p0 tanh
x p g

Answer: 1. 1 3. 5. 7. 9. 11.  3 1 0 7 3 3 2 2. 4. 0

1 2 6.  g 1 8. 3 3 10. 4 12. 1

22