-V
GU
Chapter 1: FUNCTIONS AND GRAPHS
HA
M
Duong T. PHAM - EEIT2014
.P
Fundamental Engineering Mathematics for EEIT2014
D.
T
Vietnamese German University
Binh Duong Campus
Duong T. PHAM - EEIT2014
September 24, 2014
1 / 55
-V
GU
Outline
Functions
Mathematical Models and Essential Functions
New functions from old functions
Inverse functions
D.
T
.P
HA
M
Duong T. PHAM - EEIT2014
September 24, 2014
2 / 55
.P
A circle of radius r
HA
M
-V
GU
Example 1
Area of the circle: A = r 2
D.
T
Each number r , there is one and only one number A (A = r 2 )
Say: A is a function of r
Duong T. PHAM - EEIT2014
September 24, 2014
3 / 55
-V
GU
Example 2
The world population grows as in the following table
Population (Millions)
791
978
1,262
1,650
2,519
6,070
7,257
HA
M
.P
Year
1750
1800
1850
1900
1950
2000
1914
D.
T
The world population P depends on time t (year). For example,
P(1800) = 978 106 ; P(2000) = ? 6070 106
Each value time t, there is one and only one value of population
P(t).
Say: P is a function of t
Duong T. PHAM - EEIT2014
September 24, 2014
4 / 55
-V
GU
Definition of functions
Definition
HA
M
A function f is a rule that assigns to each element x in a set D exactly
one element, called f (x), in a set E .
The set D is called the domain of the function f ;
The number f (x) is the value of f at x;
.P
The range of f is
D.
T
Range of f = {f (x) : x D}
The symbol x is called the independent variable of f ;
Duong T. PHAM - EEIT2014
September 24, 2014
5 / 55
-V
GU
Example 2
The world population
The domain D of P is ?
HA
M
D = {1750, 1800, 1850, 1900, 1950, 2000, 1914}
The range of P is ?
Range of P = {P(1750), P(1800),
P(1850), P(1900), P(1950), P(2000), P(1914)}
=
{791, 978, 1262, 1650, 1650, 2519, 6070, 7257}
.P
P
791
978
1,262
1,650
2,519
6,070
7,257
D.
T
t
1750
1800
1850
1900
1950
2000
1914
The symbol t is the independent variable ;
The symbol P is the dependent variable
Duong T. PHAM - EEIT2014
September 24, 2014
6 / 55
-V
GU
Diagrams for a function
Machine diagram:
Arrow diagram:
f (x)
(Output)
HA
M
x
(Input)
.P
D.
T
Duong T. PHAM - EEIT2014
f (x)
f (a)
September 24, 2014
7 / 55
-V
GU
Graph
Definition
HA
M
If f is a function with domain D, then its graph is the set of ordered pairs
o
n
x, f (x) : x D
Ex: Plot the graph of the function f : [0, 2] R defined by
f (x) = x 2 x + 1
y
D.
T
.P
Duong T. PHAM - EEIT2014
1
0.75
0.5
x
September 24, 2014
8 / 55
There are 4 ways to represent a functions:
-V
GU
Representations of Functions
HA
M
By a description by words (verbally)
By a table of values (numerically)
By a graph (visually)
D.
T
.P
By an explicit formula (algebraically)
Duong T. PHAM - EEIT2014
September 24, 2014
9 / 55
-V
GU
Example of Circle Area
Area of a circle :
Verbally: The area of a circle is equal to square of the radius
multiplying with
Algebraically: A = r 2
HA
M
Visually:
D.
T
.P
Duong T. PHAM - EEIT2014
A = r 2
r
September 24, 2014
10 / 55
Numerical description
P
791
978
1,262
1,650
2,519
6,070
7,257
D.
T
.P
HA
M
t
1750
1800
1850
1900
1950
2000
1914
-V
GU
Example of World Population
Duong T. PHAM - EEIT2014
September 24, 2014
11 / 55
-V
GU
Another Example
.P
HA
M
Ex: We need a rectangular storage container with an open top which has
a volume of 10m3 . The length of its base is required to be twice its width.
Material for the base costs $10/m2 ; material for the sides costs $6/m2 .
Express the cost of materials as a function of the width of the base.
D.
T
Duong T. PHAM - EEIT2014
w
2w
September 24, 2014
12 / 55
-V
GU
Another Example
Area of the base = w (2w ) = 2w 2
Cost = 10 (2w 2 ) = 20w 2 $
Area of the front and back sides
= 2 (2hw ) = 4hw
HA
M
Area of the left and right sides
= 2 (hw ) = 2hw
2w
Area of 4 sides = 6hw Cost = 6 (6hw ) = 36hw $
.P
Total cost = 20w 2 + 36hw ($)
D.
T
Volume = 10 2hw 2 = 10 h = 5/w 2
Total cost:
Duong T. PHAM - EEIT2014
C (w ) = 20w 2 +
180
w
September 24, 2014
13 / 55
-V
GU
Domain of a function
Remark: If a function is given by a formula and the domain is not stated
explicitly, the convention is that the domain is the set of all numbers for
which the formula makes sense and defines a real number .
.P
HA
M
Ex: Find the domain of the function f (x) = x + 1.
Ans: The formula x + 1 is well-defined when x + 1 0, which is
equivalent to x 1.
D.
T
The domain of the above function is
Duong T. PHAM - EEIT2014
D = [1, +)
September 24, 2014
14 / 55
-V
GU
The Veritcal Line Test
The graph of a function is a curve in xy -plane.
Question : Which curves in the xy -plane are graphs of functions?
HA
M
Vertical Line Test: A curve in the xy -plane is the graph of a function of
x if and only if no vertical line intersects the curve more than once.
y
.P
D.
T
Duong T. PHAM - EEIT2014
f (a) = b or f (a) = c?
September 24, 2014
15 / 55
-V
GU
Piecewise defined functions
(
1x
f (x) =
x2
Ex: A function f is defined by:
f (1) = ? 1 (1) = 2
f (2) =? 22 = 4
f (1) =? 1 1 = 0
if x 1
if x > 1.
HA
M
D.
T
.P
Duong T. PHAM - EEIT2014
x
September 24, 2014
16 / 55
-V
GU
Piecewise defined functions
Ex: Sketch the graph of the absolute value function f (x) = |x|
(
x
f (x) = |x| =
x
HA
M
Ans: We have
if x 0
if x < 0
D.
T
.P
Duong T. PHAM - EEIT2014
September 24, 2014
17 / 55
-V
GU
Symmetry: Even Functions
y
f (1) =? (1)2 = 1;
f (1) =? 12 = 1;
f (1) = f (1)
HA
M
f (2) = (2)2 = 4 and
f (2) = 22 = 4
f (2) = f (2)
f (x) = (x 2 ) = x 2
f (x) = x 2 f (x) = f (x)
.P
D.
T
Graph of function f (x) =
f is an even function
x2
Definition
A function f : D R is said to be even if f (x) = f (x) x D
Duong T. PHAM - EEIT2014
September 24, 2014
18 / 55
f (x)
HA
M
-V
GU
Symmetry: Odd Functions
.P
f (x)
and f is said to be an odd function
D.
T
f (x) = f (x) x D
Definition
A function f : D R is said to be odd if f (x) = f (x) x D
Duong T. PHAM - EEIT2014
September 24, 2014
19 / 55
-V
GU
Symmetry: Examples
Ex: Determine whether each of the following functions is even, odd, or
neither even nor odd
f (x) = x 3 x;
g (x) = 1 + x 2 ;
HA
M
Ans:
h(x) = x + 1.
.P
(i) f (x) = (x)3 (x) = x 3 + x = (x 3 x) = f (x)
f is an odd function.
f (x)
D.
T
Duong T. PHAM - EEIT2014
x
f (x)
September 24, 2014
20 / 55
D.
T
.P
HA
M
Ans: g (x) = 1 + x 2 ;
g (x) = 1 + (x)2 = 1 + x 2 = g (x)
g is an even function.
-V
GU
Symmetry: Examples
Duong T. PHAM - EEIT2014
g (x)
g (x)
x
September 24, 2014
21 / 55
Ans: h(x) = 1 + x;
-V
GU
Symmetry: Examples
h(x) = 1 + (x) = 1 x h(x) 6= h(x) and h(x) 6= h(x)
h is NOT either even or odd.
D.
T
.P
HA
M
Duong T. PHAM - EEIT2014
September 24, 2014
22 / 55
-V
GU
Increasing and Decreasing Functions
D
y = f (x)
f (x1 )
A
x1
x2
.P
HA
M
f (x2 )
D.
T
The graph of f rises between A and B, falls between B and C , and
rises again between C and D.
We say that: f is increasing on the intervals [a, b] and [c, d]
f is decreasing on the intervals [b, c]
Duong T. PHAM - EEIT2014
September 24, 2014
23 / 55
-V
GU
Increasing and Decreasing Functions
D
y = f (x)
f (x1 )
A
x1
HA
M
f (x2 )
x2
.P
f is increasing on [a, b]; Suppose a x1 < x2 b f (x1 ) < f (x2 )
D.
T
A function f is called increasing on an interval I if
f (x1 ) < f (x2 ) whenever x1 < x2 in I
A function f is called decreasing on an interval I if
f (x1 ) > f (x2 ) whenever x1 < x2 in I
Duong T. PHAM - EEIT2014
September 24, 2014
24 / 55
Ex:
y
-V
GU
Increasing and Decreasing Functions
.P
HA
M
y = x2
D.
T
f (x) = x 2 is decreasing on (, 0] because if x1 < x2 0, then
|x1 | > |x2 | 0 and f (x1 ) = x12 = |x1 |2 > |x2 |2 = x22 = f (x2 )
f (x) = x 2 is increasing on [0, ) because if 0 x1 < x2 , then
x12 < x22 , which means f (x1 ) < f (x2 )
Duong T. PHAM - EEIT2014
September 24, 2014
25 / 55
HA
M
-V
GU
Exercises
D.
T
.P
I.1: 19; 17; 1922; 2733;
36; 40; 43; 4550;
52; 57; 6162; 64; 6570
Duong T. PHAM - EEIT2014
September 24, 2014
26 / 55
.P
Potential questions:
HA
M
-V
GU
Mathematical Model
What is the area of the yellow domain?
D.
T
What is the volume of the wing?
and many other essential questions
Duong T. PHAM - EEIT2014
September 24, 2014
27 / 55
Realworld
problems
Test
Mathematical
problems
Solve
Mathematical
conclusions
D.
T
.P
Realworld
predictions
HA
M
Interpret
Formulae
-V
GU
Mathematical Models
Duong T. PHAM - EEIT2014
September 24, 2014
28 / 55
-V
GU
Linear Models
Def: A function y = f (x) is linear if its graph is a straight line. The
formula of a linear function has the following formula
y = ax + b,
Ex: y = 21 x + 2
.P
HA
M
where a is the slope of the line and b is the y -intercept.
D.
T
Duong T. PHAM - EEIT2014
x
September 24, 2014
29 / 55
-V
GU
Polynomials
Def: A function P is called a polynomial if
P(x) = an x n + an1 x n1 + . . . + a1 x + a0
where
HA
M
n: nonnegative integer,
a0 , a1 , . . . , an are coefficients
The domain of P is R = (, ). If an 6= 0, the degree of P is n.
.P
Ex:
A linear function y = ax + b is a polynomial of degree 1,
D.
T
A polynomial of degree 2 has the form y = ax 2 + bx + c and is
called a quadratic function,
A polynomial of degree 3 has the form y = ax 3 + bx 2 + cx + d and
is called a cubic function.
Duong T. PHAM - EEIT2014
September 24, 2014
30 / 55
-V
GU
Power Functions
A function of the form y = x where is a constant is called a power
function.
Remark: Note here that is a real number.
HA
M
If = n where n is a positive integer, then y = x n is a polynomial
of degree n;
The domain of y = x n is R.
D.
T
.P
If = 1/n where n is a positive integer, then y = x 1/n is called a
root function.
Note: y = n x y n = x and
(
R+ = [0, ) if n is even
n
domain of y = x is
R
if n is odd
Duong T. PHAM - EEIT2014
September 24, 2014
31 / 55
y=
-V
GU
Power Functions
x
HA
M
y =
y = 3x
domain is R\{0}
D.
T
.P
y = x 1 = x1 ;
Duong T. PHAM - EEIT2014
September 24, 2014
32 / 55
Def: A rational function
-V
GU
Rational Functions
f is a ratio of two polynomials:
f (x) =
P(x)
Q(x)
HA
M
where P and Q are polynomials.
Domain of f is
D = {x R : Q(x) 6= 0}
x
is a rational function and the domain
x 2 3x + 2
.P
Ex: f (x) =
D.
T
D = {x R : x 2 3x + 2 6= 0}
= {x R : x 6= 1 and x 6= 2}
Duong T. PHAM - EEIT2014
September 24, 2014
33 / 55
-V
GU
Algebraic Functions
HA
M
Def: A function f is called an algebraic function if it can be constructed
using algebraic operations (such as addition, subtraction, multiplication,
division, and taking roots) starting with polynomials
Ex:
k n
x +1
is an algebraic function
D.
T
h(x) =
.P
f (x) = an x n + . . . + a1 x + a0 and g (x) = bm x m + . . . + b1 x + b0 are
algebraic functions
f + g , f g , f g , f /g and k f are algebraic functions
Duong T. PHAM - EEIT2014
September 24, 2014
34 / 55
-V
GU
Trigonometric Functions
y = sin x
1
HA
M
.P
y = cos x
D.
T
Duong T. PHAM - EEIT2014
September 24, 2014
35 / 55
-V
GU
Exponential Functions
Def: Exponential functions are the functions of the form f (x) = ax
where a > 0.
The domain = R
HA
M
The range = {positive numbers}
.P
D.
T
y = 2x
Duong T. PHAM - EEIT2014
y = ( 12 )x
x
September 24, 2014
36 / 55
-V
GU
Logarithmic Functions
Def: The logarithmic functions f (x) = loga x, where the base a is a positive constant, are the inverse functions of the exponential functions.
Domain = (0, )
HA
M
Range = (, )
D.
T
.P
y = log2 x
Duong T. PHAM - EEIT2014
September 24, 2014
37 / 55
-V
GU
Transcendental Functions
Def: Transcendental functions are functions that are NOT algbraic
functions.
Ex:
HA
M
Trigonometric functions and their inverses are transcendental
functions,
Exponential and logarithmic functions are transcendental functions.
.P
Ex: Classify the following functions as one of the types of functions that
we have discussed.
3x exponential function,
x 5 power function (or polynomial of degree 5)
1+x
1 x
1 x x 4 polynomial of degree 4.
D.
T
algebraic function,
Duong T. PHAM - EEIT2014
September 24, 2014
38 / 55
I.2:
1-2; 5, 6, 8, 9; 10
D.
T
.P
16, 19, 20
HA
M
-V
GU
Exercises
Duong T. PHAM - EEIT2014
September 24, 2014
39 / 55
Vertical and horizontal shifts:
of
-V
GU
Transformation of functions
Suppose c > 0. To obtain the graph
HA
M
y = f (x) + c , shift the graph of y = f (x) a distance c units
upward
y = f (x) c , shift the graph of y = f (x) a distance c units
downward
.P
y = f (x + c) , shift the graph of y = f (x) a distance c units to
the left
D.
T
y = f (x c) , shift the graph of y = f (x) a distance c units to
the right
Duong T. PHAM - EEIT2014
September 24, 2014
40 / 55
-V
GU
Vertical and horizontal shifts
HA
M
y = f (x) + c
y = f (x)
y = f (x c)
y = f (x + c)
D.
T
.P
Duong T. PHAM - EEIT2014
y = f (x) c
September 24, 2014
41 / 55
-V
GU
Vertical and horizontal stretching and reflecting
Vertical and horizontal Stretching and Reflecting: Suppose c > 1.
To obtain the graph of
y = cf (x) , stretch the graph of y = f (x) vertically by a factor of c
HA
M
y = (1/c)f (x) , compress the graph of y = f (x) vertically by a
factor of c
y = f (cx) , compress the graph of y = f (x) horizontally by a
factor of c
.P
y = f (x/c) , stretch the graph of y = f (x) horizontally by a factor
of c
D.
T
y = f (x) , reflect the graph of y = f (x) about the x-axis
y = f (x) , reflect the graph of y = f (x) about the y -axis
Duong T. PHAM - EEIT2014
September 24, 2014
42 / 55
Ex:
y
y = 2 cos x
y = cos x
HA
M
-V
GU
Vertical and horizontal stretching and reflecting
y = (0.5) cos x
D.
T
.P
1/2
Duong T. PHAM - EEIT2014
September 24, 2014
43 / 55
-V
GU
Vertical and horizontal stretching and reflecting
Ex:
y
HA
M
y = cos 12 x
D.
T
.P
y = cos x
y = cos 2x
Duong T. PHAM - EEIT2014
September 24, 2014
44 / 55
-V
GU
Combinations of functions
Given f : A R and g : B R, we have:
f g : A B R defined by
HA
M
(f g )(x) = f (x) g (x),
x AB
f g : A B R defined by
(f g )(x) = f (x) g (x),
x AB
D.
T
.P
f g : {x A B : g (x) 6= 0} R defined by
f
f (x)
(x) =
, x {x A B : g (x) 6= 0}
g
g (x)
Duong T. PHAM - EEIT2014
September 24, 2014
45 / 55
Ex: Given f (x) =
x and g (x) =
2 x.
-V
GU
Combinations of functions
HA
M
Domain of f is ? [0, ); Domain of g is ? (, 2]
= [0, ) (, 2] = [0, 2]
(f g ) : [0, 2] R given by (f g )(x) =
2x
D.
T
.P
fg : [0, 2] R given by (fg )(x) = x 2 x
f
x
f
(x) =
g : [0, 2) R given by
g
2x
Duong T. PHAM - EEIT2014
September 24, 2014
46 / 55
-V
GU
Composition of functions
HA
M
Def: Let f : A B and g : B C . The composition of f and g is
defined by
gf : A
C
x 7 g (f (x))
Ex: f (x) = x 2 and g (x) = 2
We have
.P
gf (x) = g (f (x)) = g (x 2 ) = 2
D.
T
and
fg (x) = f (g (x)) = f (2
Duong T. PHAM - EEIT2014
x) = (2
x2
x)2
September 24, 2014
47 / 55
-V
GU
Exercises
I.3:
HA
M
1, 2, 5, 914
2936, 3738
41, 42
D.
T
61,62
.P
50,51
Duong T. PHAM - EEIT2014
September 24, 2014
48 / 55
a
b
c
d
f
HA
M
a
b
c
d
1
2
3
4
-V
GU
One-to-one functions
1
2
3
4
g (b) = g (c)
.P
f is one-to-one and g is NOT one-to-one
D.
T
Def: A function f is called a one-to-one function if
Duong T. PHAM - EEIT2014
f (x1 ) = f (x2 ) = x1 = x2
September 24, 2014
49 / 55
-V
GU
Horizontal line Test
Ex:
y
HA
M
y = f (x)
x1
x2
D.
T
.P
f (x1 )
||
f (x2 )
f is not one-to-one
Horizontal line test:
A function is one-to-one if and only if NO
horizontal line intersects its graph more than once.
Duong T. PHAM - EEIT2014
September 24, 2014
50 / 55
-V
GU
Inverse function
Def: Let f be a one-to-one function with domain A and range B. Then
its inverse function f 1 has domain B and range A and is defined by
f 1 (y ) = x f (x) = y y B.
HA
M
1
2
3
4
.P
Ex:
a
b
c
d
f
a
b
c
d
1
2
3
4
f 1
D.
T
f 1 f (a) = ? f 1 (f (a)) = f 1 (1) = a
f f 1 (3) = ? f (f 1 (3)) = f (c) = 3.
Duong T. PHAM - EEIT2014
September 24, 2014
51 / 55
-V
GU
Cancellation equations
Let f be a one-to-one function with domain A and range B.
f (f
.P
(y )) = y
f (x)
y B
f 1
D.
T
x A
HA
M
f 1 (f (x)) = x
Duong T. PHAM - EEIT2014
September 24, 2014
52 / 55
-V
GU
Find an inverse
To find the inverse of a one-to-one function f :
Step 1: Write y = f (x)
Step 2: Solve this equation for x in terms of y
HA
M
Step 3: To obtain f 1 as a function of x, interchange x and y .
The resulting equation is y = f 1 (x).
Ex: Find the inverse of y = 3x 3 + 5
Ans:
= y 5 = x =
q
3
y 5
3
D.
T
3x 3
.P
y = 3x 3 + 5
y=
q
3
x5
3
is the inverse of y = 3x 3 + 5.
Duong T. PHAM - EEIT2014
September 24, 2014
53 / 55
y
Suppose f (a) = b (a, b)
graph of f
y = f (x)
is symmetric
.P
The graph of
to that of f
f 1
y = f 1 (x)
HA
M
f 1 (b) = a (b, a) graph
of f 1
-V
GU
Graphs of inverse functions
D.
T
The graph of f 1 is obtained by reflecting the graph of f about the line
y =x
Duong T. PHAM - EEIT2014
September 24, 2014
54 / 55
I.6:
D.
T
.P
312; 1518; 2124
HA
M
-V
GU
Exercises
Duong T. PHAM - EEIT2014
September 24, 2014
55 / 55