(Slides) Chapter 1. Single Variable Function
(Slides) Chapter 1. Single Variable Function
Function
Definition
1.2. Limit
Even and odd
1.3. Continuity
Types of functions
1.4. Differentiation and derivatives
Function
Defintion
A function y = f(x) is a rule that assigns to each value of x in a set D
exactly one value y, in a set E.
Note that:
The set D is called the domain of the function.
The number f(x) is the value of f at x and is read ”f of x”.
The range of the function is the set of all possible values of f(x).
Representations of functions
By a graph (Visually)
Explicit Formula
Let
y = f(x) = x2 + 1.
We have
x = 0 ⇒ y = f(0) = 02 + 1 = 1.
x = 1 ⇒ y = f(1) = 12 + 1 = 2.
x = −1 ⇒ y = f(−1) = (−1)2 + 1 = 1.
x = 2 ⇒ y = f(2) = 22 + 1 = 5.
Table of values
Graph
Definition
If y = f(x) is a function with domain D, then its graph is the set of
ordered pairs:
G = {(x, f(x)) ∈ R2 : x ∈ D}
Exercise
The graph of a function f is shown in the following figure.
a. Find the values of f(1) and f(5).
b. What are the domain and range of f?
Even functions
Definition
A function y = f(x) is said to be an even function if
f(−x) = f(x)
Odd functions
Definition
A function y = f(x) is said to be an odd function if
f(−x) = −f(x)
Exercise
Exercise
Significance
Example
Example
Given f(x) = x2 − x + 2. If x gets closer to 2 but not equal to 2, then
y = f(x) gets closer to 4.
Notation
lim f(x) = L
x→a
Limit Laws
Suppose that c is a constant and the limits lim f(x) and lim g(x) exists.
x→a x→a
Then
1. lim [f(x) + g(x)] = lim f(x) + lim g(x).
x→a x→a x→a
2. lim [cf(x)] = clim f(x).
x→a x→a
3. lim [f(x)g(x)] = lim f(x).lim g(x).
x→a x→a x→a
Exercise
Use the Limit Laws and the graphs of f and g in the following figure
to evaluate the following limits, if they exist
a. lim [f(x) + 5g(x)]
x→−2
b. lim [f(x).g(x)].
x→−2
f(x)
c. lim [ ].
x→0 3g(x)
Exercise
2x2 − x − 8 x3 − 8
3. lim 4.lim
x→−3 x2 − 4 x→2 2 − x
√
x−5 9−x
5. lim 6.lim √
x→25 x − 25 x→9 x − 3
Quick Review
1. Give an example of each type of function
Left-hand limit
When y = f(x) approaches to L as x approaches a from the left, we
will write
lim f(x) = L
x→a−
Righ-hand limit
When y = f(x) approaches to L as x approaches a from the right, we
will write
lim f(x) = L
x→a+
Example
Existence of limits
Theorem
We have that lim f(x) = L exists if and only if
x→a
Example
Example: Let {
x2 + 1 ; x ≤ 2
f(x) =
5x − 3 ; x > 2
Since f(x) = x2 + 1 when x < 2,
Hence
lim f(x) ̸= lim f(x)
x→2− x→2+
Exercise
The graph of a function g(x) is shown in Figure below. Use it to state
the values (if they exist) of the following:
a. lim g(x) b. lim g(x) c.lim g(x)
x→2− x→2+ x→2
Squeez Theorem
Theorem
If f(x) ≤ g(x) ≤ h(x) when x is near a and
Then
lim g(x) = L.
x→a
Example
Find
sin x
lim
x→+∞ x
We have
−1 sin x 1
≤ ≤
x x x
and
−1 1
lim
= lim = 0.
x→+∞ x x→+∞ x
Continuity
Definition
A function f is said to be continuous at a number a if
f(a) is defined.
Definition
We say that f is discontinuous at a if f is not continuous at a
Exercise
Ex 1: Given
x2 − x − 2
f(x) =
x−2
Determine whether the function is continuous at 2.
Ex 2: Given { 1
; x ̸= 0
g(x) = x2
1 ;x = 0
Determine whether the function is continuous at 0.
Ex 3: Given
√
x2 − 4x + 4 + x − 2
;x > 2
g(x) = x−2
2 ;x ≤ 2
Determine whether the function is continuous at 2.
Nguyễn Hoàng Huy Tú Single Variable Function
1.1. Function Definition
1.2. Limit Interpretation
1.3. Continuity Properties
1.4. Differentiation and derivatives Intermediate Value Theorem
Interpretation
Change
A continuous function f has the property that a small change in x
produces only a small change in f(x). In fact, the change in f(x) can
be kept as small as we please by keeping the change in x sufficiently
small.
Geometric meaning
You can think of a function that is continuous at every number in an
interval as a function whose graph has no break in it: the graph can
be drawn without removing your pen from the paper
Properties
Theorem
The following types of functions are continuous at every number in
their domains:
Polynomials
Rational functions.
Exponential functions.
Logarithmic functions.
Properties
Theorem
If f and g are continuous at a; and c is a constant, then the following
functions are also continuous at a:
f+g
f−g
cf
f.g
f
if g(a) ̸= 0.
g
Exercise
f(c) = N.
Example
4x3 − 6x2 + 3x − 2 = 0
Exercise
Use the Intermediate Value Theorem to show that there is a root of the
given equation in the specified interval.
√
3
x = 1 − x, (0, 1).
Derivative
Definition
Let y = f(x) be a function of x. At a number a, the change in x is
∆x = x − a
∆y = f(x) − f(a).
∆y f(x) − f(a)
f ′ (a) = lim = lim
∆→0 ∆x x→a x−a
∆x = x − 2
and
∆y = f(x) − f(2) = x2 − 4.
Therefore
x2 − 4
f ′ (2) = lim = lim (x + 2) = 4.
x→2 x − 2 x→2
D(t) − D(1990)
D ′ (1990) = lim .
t→1990 t − 1990
To calculate the limit above, we construct the following table
From this table we see that D ′ (1990) lies somewhere between 257.48
and 348.14 billion dollars per year ⇒ D ′ (1990) ∼
= 303. It is the rate
of increase of the national debt of the United States in 1990.
Exercise
Estimate the instantaneous rate of growth in 2002. What are its units?
1 1
1. (c) ′ = 0 2. (xn ) ′ = nxn−1 3. ( ) ′ = − 2
x x
√ 1 1
4. ( x) ′ = √ 5. (ln(x)) ′ = 6. (ex ) ′ = ex
2 x x
f f ′ g − fg ′
7. (f + g) ′ = f ′ + g ′ 8. (fg) ′ = f ′ g + fg ′ 10. ( ) ′ =
g g2
Example 1:
= 3x2 + 2.2x
= 3x2 + 4x
Example 2:
(x2 ex ) ′ = (x2 ) ′ ex + x2 (ex ) ′
= 2xex + x2 ex
Exercise
Chain rule
Rule
If y is a function of u, which is itself a function of x, then
dy dy du
= × .
dx du dx
Example
Differentiate y = (2x + 3)10 .
Consider
y = u10 and u = 2x + 3
Now
dy
= 10u9 = 10(2x + 3)9
du
and
du
=2
dx
Then the chain rule gives
dy dy du
= × = 20(2x + 3)10
dx du dx
Exercise
Differentiate
1. y = (3x2 − 5x + 2)4 .
√
2. y = 1 + x2 .
4 +3x−2
3. y = e2x .
Exercise
Sketch and find the slope of the straight line passing through
Exercise
Sketch and find the slope of the straight line passing through
Tangent
Definition
A straight line which passes through a point on a curve and which just
touches the curve at this point is called a tangent.
Slope of a curve
Definition
The slope, or gradient, of a curve at x = a is then defined to be the
slope of the tangent at x = a.
Slope of a curve
Formula
The tangent line to a curve y = f(x) at x = a has
slope = f ′ (a).
Proof
Example
First, let us remind that the Point-slope form for a line through the
point (x1 , y1 ) with slope m:
y − y1 = m(x − x1 )
3 3
Example: Let f(x) = . We have f ′ (x) = − 2 . Then the slope of the
x x
tangent at (3, 1) is
1
m = f ′ (3) = −
3
Therefore an equation of the tangent at the point (3, 1) is
1
y − 1 = − (x − 3)
3
which simplifies to
x + 3y − 6 = 0.
Nguyễn Hoàng Huy Tú Single Variable Function
1.1. Function
Definition
1.2. Limit
Derivative as a function
1.3. Continuity
Slope of a tangent
1.4. Differentiation and derivatives
Exercise