Notes CalculusI Chapter2
Notes CalculusI Chapter2
Notes CalculusI Chapter2
Year 2021-2022
& %
Arturo de Pablo
2
Contents
1 Functions of a real variable 3
1.1 The real line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Elementary functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4 Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2 Differential calculus 13
2.1 Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2 Extrema of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3 Local study. Properties of the graph of a function . . . . . . . . . . . . . . . . . . 19
2.4 Taylor polynomial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
CALCULUS I. Course notes
Electrical power engineering,
Energy engineering
2021-2022
2 Differential calculus
2.1 Derivatives
Preliminaries
u(t0 + h) − u(t)
vm = .
h
f (x0 + h) − f (x0 )
m= .
h
The corresponding secant line is
y = f (x0 ) + m(x − x0 ).
(x + h)2 − x2 2xh + h2
f 0 (x) = lim = lim = 2x.
h→0 h h→0 h
- Alternative notation
f (x) − f (x0 )
f 0 (x0 ) = lim .
x→x0 x − x0
2 Differential calculus 14
df
f 0 (x0 ) = (x0 ).
dx
• Tangent line
The tangent line to the graph of a function y = f (x) at the point (x0 , f (x0 )) is
f (x) − f (x0 )
lim f (x) − f (x0 ) = lim (x − x0 ) = 0.
x→x0 x→x0 x − x0
• First derivatives
• Properties
1
- Derivative of the inverse function: (f −1 )0 =
f0 ◦ f −1
- Idea: If f ◦ f −1 (x) = x, by the chain rule
f 0 (f −1 (x))(f −1 )0 (x) = 1
• Advanced derivatives
- Example for local minimum: If f (x0 ) ≤ f (y) for every y ∈ (x0 − δ, x0 + δ), then for |h| < δ it
holds
f (x0 + h) − f (x0 )
≥0 if h > 0
h
f (x0 + h) − f (x0 )
≤0 if h < 0
h
Therefore, the limit, since it exists, must be zero.
Rolle’s Theorem If f is continuous in [a, b] and differentiable in (a, b), and satisfies
f (a) = f (b), then there exists some c ∈ (a, b) such that f 0 (c) = 0.
Since f is continuous in [a, b], it attains its maximum and its minimum. If both are attained in
a and b, then f is constant. On the contrary, the maximum or the minimum lies in the interior,
and by the previous result the derivative there vanishes.
2 Differential calculus 16
y = f(x)
a c b
Mean value Theorem If f is continuous in [a, b] and differentiable in (a, b), then there
exists some c ∈ (a, b) such that
f (b) − f (a)
= f 0 (c)
b−a
y = f(x)
a c b
f (b) − f (a)
The function g(x) = f (x) − (x − a) satisfies all the hypotheses of Rolle’s Theorem.
b−a
• Applications
- If f is continuous in (a, b) and f 0 (x) = 0 for every x ∈ (a, b), then f is constant in (a, b).
- If f 0 (x) > 0 for every x ∈ (a, b), then f is (strictly) increasing in (a, b), that is
- If f 0 (x) > 0 for every x ∈ (a, b) and f (a) < 0 < f (b) then the equation f (x) = 0 possesses a
unique solution in that interval.
- Regla de L’Hôpital
2 Differential calculus 17
f 0 (x)
L’Hôpital-Bernoulli Theorem: If lim f (x) = lim g(x) = 0 and lim exists, then
x→α x→α x→α g 0 (x)
f (x) f 0 (x)
lim = lim 0
x→α g(x) x→α g (x)
- Example
1 − cos x sen x cos x 1
lim 2
= lim = lim = .
x→0 x x→0 2x x→0 2 2
- L’Hôpital’s rule also applies when lim f (x) = lim g(x) = ∞, and even if α = ∞.
x→α x→α
2 Differential calculus 18
CALCULUS I. Course notes
Electrical power engineering,
Energy engineering
2021-2022
- Methodology: finding the extrema of a continuous function in a closed and bounded interval
- Example:
7
10
Let f (x) = 2x5/3 +5x2/3 . It is f 0 (x) = (x+1)x−1/3 . Thus,
3
f 0 (−1) = 0, while @ f 0 (0). Comparing the values f (0) = 0,
3
f (−1) = 3, f (−2) = 22/3 , f (1) = 7, we have maximum at
1.58
x = 1 and minimum at x = 0.
-2 -1 1
If the set is not closed, or not bounded, or the function is not continuous at some isolated point,
the existence of maximum or minimum is not guaranteed; it is necessary to study the relevant
points.
2 Differential calculus 19
CALCULUS I. Course notes
Electrical power engineering,
Energy engineering
2021-2022
Growth
- If f is increasing in (x0 − δ, x0 ) and decreasing in (x0 , x0 + δ), then f has a local maximum at
x0 .
- In order to know the intervals of growth of a function, as well as the local extrema, we must
determine the sign of the derivative in the different intervals.
Convexity
- A set in R2 is said convex if given any two points in the set, the segment joining those points
belongs to the set.
- A point x0 is denoted as inflection point of a function f if the convexity changes through the
point, i.e., f is convex on one side (near the point) and concave on the other side.
- In order to know the intervals of convexity of a function, as well as the inflection points, we
must determine the sign of the second derivative in the different intervals.
Asymptotes
f (x)
In practice, for the slant asymptotes, m = lim , b = lim f (x) − mx .
x→±∞ x x→±∞
2 Differential calculus 21
CALCULUS I. Course notes
Electrical power engineering,
Energy engineering
2021-2022
Construction
dk f 1 dk f f k) (0)
They are equal to (0), if a k = (0) = .
dxk k! dxk k!
Therefore the Taylor polynomial of degree n of f near the point x = 0, is
n
X f k) (0)
Pn,0 f (x) = xk
k!
k=0
- Example
Let f (x) = ex . Since f k) (0) = 1 ∀ k ≥ 0, the Taylor polynomial is
n
X xk
Pn,0 f (x) =
k!
k=0
x2
f (x) = ex , P2,0 f (x) = 1 + x + .
2
k) dk f
The value of the derivatives at x = 0 is again easy, Pn (x0 ) = k! ak . They are equal to (0),
dxk
f k) (x0 )
if ak = .
k!
2 Differential calculus 22
15
12.5
10
7.5
2.5
-4 -2 2 4
-2.5
x3 x5 (−1)n x2n+1
sen x x− + + ··· +
3! 5! (2n + 1)!
x 2 x 4 (−1)n x2n
cos x 1− + + ··· +
2! 4! (2n)!
1
1 + x + x2 + x3 + · · · + xn
1−x
x2 x3 (−1)n+1 xn
log(1 + x) x− + + ··· +
2 3 n
Also, for x0 = 1:
- Example: The function f (x) = sen x compared with its Taylor polynomial at the origin of
degrees 1, 3, 5 and 7.
4 4 4 4
2 2 2 2
-6 -4 -2 2 4 6 -6 -4 -2 2 4 6 -6 -4 -2 2 4 6 -6 -4 -2 2 4 6
-2 -2 -2 -2
-4 -4 -4 -4
2 Differential calculus 23
Taylor’s theorem:
f (x) − Pn,x0 f (x)
lim = 0.
x→x0 (x − x0 )n
That is, the polynomial approaches the function near the point, and this approximation is better
as the degree of the polynomial is bigger.
f (x)
lim = 0.
x→x0 g(x)
- Examples:
- Example:
- Example: Let f (x) = sin x. In order to estimate sin 1 using the Taylor polynomial of degree 5,
we see that
1
|R5,0 f (1)| ≤
6!
and then
1 1 1
sen 1 = 1 − + + ε, |ε| ≤
6 120 720
We obtain the value sin 1 ≈ 0.8416, with an error of 0.0014. The exact value with 6 significative
figures is 0.841471.
Using Taylor’s theorem we can characterize the critical points according to the first nonzero
derivative.
f k) (a)
f (x) ≈ f (a) + (x − a)k .
k!
If k is even, (x − a)k is positive and f (x) is bigger or smaller than f (a) depending on the sign
of f k) (a). If k is odd then the last term changes sign at both sides of x = a.