Theory Part I
Theory Part I
CONTINUITY
Definition of a function:
Given two sets A and B, a function from A to B is a rule that associates with each element of A one
and only one element of B. We can write the function as:
f :A→ B
x → f ( x)
f(x)
Examples:
Gf
1
• f ( x) = . D = {x ∈ / x ≠ 0} = (−∞, 0) ∪ (0, +∞) and its graph is:
x
f(x)
Gf
x
Gf
1
• f ( x) = ln( x) . D= {x ∈ / x > 0}
= (0, +∞) and its graph is:
f(x)
Gf
1 x
f(x)
Gf
1
x
f(x)
sin(x) cos(x)
0 π/2 π 3π/2 2π x
Continuity:
A real-valued function of a single variable f : D ⊂ → is continuous at x0 if the following three
conditions are met:
i) x0 ∈ D , that is, f ( x0 ) is defined.
iii) lim f ( x) = f ( x0 ) .
x → x0
2
Properties of continuity:
Consider the functions f , g : D ⊂ → , x0 ∈ D and λ ∈ . If f and g are continuous at the point
f + g, λ f , f − g, f ⋅ g, f / g (if g ( x0 ) ≠ 0) .
Polynomial: f ( x=
) an x n + an −1 x n −1 + ... + a1 x + a0 , where all ai are real numbers, an ≠ 0 .
P( x)
Rational function: f ( x) = , where P(x) and Q(x) are polynomials.
Q( x)
Radical function: f ( x) = x .
Exponential function: f ( x) = e x .
Logarithmic function: f ( x) = ln( x) .
Trigonometric functions: f ( x) = sin( x) ; f ( x) = cos( x) .
Example:
• The function f ( x) = x 2 is continuous on and the function g ( x) = sin( x) is continuous on .
Then, the composite function
f
→
g
→
x → f ( x) =x 2 → g ( f ( x)) =
sin( x 2 )
is continuous on .
3
Parabolas and hyperbolas
1
The graph of the function f ( x) = is a hyperbola:
x
1 1 1 1 1
f ( x) = f ( x)= −1 ( x)
f= −1 f ( x) = (similar) f ( x) = −
x−2 x x−2 x2 x
REAL-VALUED FUNCTIONS. DERIVATIVES
df
point x0 is the following limit, provided that it exists (we write f '( x0 ) or ( x0 ) ):
dx
f ( x0 h) f ( x0 )
f '( x0 ) lim .
h 0 h
If the derivative of the function f at the point x0 exists, we say that the function f is
Gf h0 Gf
f(x0h)
f(x0h)f(x0)
f(x0)
x0 x0h x0
h
f ( x0 h) f ( x0 )
The graph shows that tan( h ) (that is, the slope of the straight line
h
that passes through ( x0 , f ( x0 )) and ( x0 h, f ( x0 h)) ). When h becomes smaller,
changes to ... what? Until it becomes the angle of the tangent line to the graph Gf at the
point ( x0 , f ( x0 )) . Then, if f is derivable at the point x0 , the derivative of f at x0 is the
Example:
Consider the function f ( x) x 2 . Calculate f '(1) , provided it exists.
f (1 h) f (1) 1 h 2 2h 1
f '(1) lim lim lim(h 2) 2 .
h 0 h h 0 h h 0
1
Properties:
i) if y k , then y ' 0 .
ii) if y kf ( x) , then y ' kf '( x) .
iii) if y f ( x) g ( x) , then y ' f '( x) g '( x) .
iv) if y f ( x) g ( x) , then y ' f '( x) g ( x) f ( x) g '( x) .
f ( x) f '( x) g ( x) f ( x) g '( x)
v) if y , then y ' .
g ( x) ( g ( x))2
function derivative
y xn y ' nx n1
1
yn x y'
n x n 1
n
1
y ln( x) y'
x
y ex y ' ex
1
y tan( x) y' 2
1 tan 2 ( x)
cos ( x)
2
The chain rule:
Consider the following composite function:
f
g
x
f
f ( x)
g
g ( f ( x)) ( g f )( x).
If the function f is derivable at a point x0 and g is derivable at the point f ( x0 ) , then the
We can obtain from the former table and the chain rule the derivative rules for the
following composition functions:
function derivative
f '( x)
y n f ( x) y'
n n ( f ( x)) n 1
f '( x)
y ln( f ( x)) y'
f ( x)
y e f ( x) y ' e f ( x ) f '( x)
f '( x)
y tan( f ( x)) y'
cos 2 ( f ( x))
3
Example:
Calculate the derivative of the function z sin(e x ) . Since the inner function is
Example:
Let f ( x) x3 . The function f is derivable on and f '( x) 3x 2 is the first derivative
of f. And f ''( x) 6 x is the second derivative of f.
4
Maxima and minima
On On [a,b]
Definitions
f has a local maximum (minimum) relative to a set A at a point x0, if the highest (lowest) value
of f on A in a neighbourhood of x0 exists and is reached at x0 .
f has the global maximum (minimum) relative to a set A at a point x0 , if the highest (lowest)
value of f on A exists and is reached at x0 .
+ + f'
− + f '
0 f
0 f
Neither minimum nor
Local minimum at x=0
maximum at x=0
Finding local extremes (interior points). First derivative method
If f '( x0 ) = 0,
− + f' + + f'
x0 f x0 f
Local minimum at x = x0 Neither minimum nor maximum at x = x0
+ − f' − − f'
x0 f x0 f
Local maximum at x = x0 Neither minimum nor maximum at x = x0
3 2
For example, if f ( x) = 2 x − 6 x + 2,
f '( x) = 6 x 2 − 6 x = 6 x( x − 2) = 0 ⇔ x = 0, 2 (candidates)
+ − + f '
0 2 f
This method is not recommended for rational functions because it is much longer.
3x
For example: Let f ( x) = 2
.
x +4
On
On the interval [1,2) On the interval [1,2] On the interval [−1,2]
−1 0 2
1 2 1 2
¼ 1 3
MIN MAX
We determine the local and global extremes of the previous two examples.
Take into account that there are more complex examples, for example, not bounded
functions!
1 − f '
f '( x) = 8 x − 2 = 0 ⇔ x = +
4
¼ f
− + f '
¼ 1 3 f
Local and global min. at x=1, f(1)=4.
MIN MAX
Local and global max. at x=3, f(3)=32.
2
Obtain the local and global extremes of f ( x) = 4 x − 2 x + 2 on [0,3].
1 − f '
f '( x) = 8 x − 2 = 0 ⇔ x = +
4 f
¼
− + f '
0 ¼ 3 f
LOC Local and global min. at x=1/4,
GLOB GLOB
MAX. Local maxima at x=0 and x=3.
and LOC and LOC
Global maximum at x= 3.
Values: f (0) = 2 MIN MAX
( )
f 1 =7
4 4
f (3) = 32