Slides 2022 Week 5
Slides 2022 Week 5
Slides 2022 Week 5
Winter 2022
Part I
Slide 2
Outline
Elementary algebra
Equations
Summation notation
Slide 3
Real numbers
N (natural numbers):
Z (integers):
Denition:
an := a
| · a · a{z· . . . · a}
n factors
0
a := for a 6= 0
a−n := for a 6= 0
an
Properties:
ar · as = a
(ar )s = a
Slide 5
Integer Powers II
Example
If x−2 y 3 = 5, compute x2 y −3 + 2x−10 y 15
Slide 6
Integer Powers III
Example
Suppose you deposit e 1000 in a bank account paying 2% interest at the end of each
year. How much do you have after 5 years?
Slide 7
Integer Powers IV
Example
Suppose you buy something for e 1000 · 1.025 which decreases in value (depreciates) by
2% per year. How much is it worth after 5 years?
Slide 8
Integer Powers V
Example
How much money should you have deposited in a bank 5 years ago at 2% yearly interest
in order to buy something for e 1000 today?
Slide 9
Some important rules of algebra I
−(a + b) = −a b
a(b + c) = ab +
(a + b)(c + d) = ac + ad + bc + bd
(a + b)2 =
(a − b)2 =
(a + b)(a − b) =
Slide 10
Some important rules of algebra II
Example
Expand and simplify: (2t − 1)(t2 − 2t + 1)
Slide 11
Some important rules of algebra III
Example
Expand and simplify: (a + 1)2 + (a − 1)2 − 2(a + 1)(a − 1)
Slide 12
Some important rules for fractions I
a · c a
= if b 6= 0 and c 6= 0
b · c b
−a a a
= =−
b −b b
a b
+ =
c c c
a c
+ =
b d bd
a c
· =
b d bd
a c a d ad
÷ = · =
b d b c bc
Slide 13
Some important rules for fractions II
Example
Simplify:
1 1
p−q
+
1+x 1 + xq−p
Slide 14
Fractional powers I
Notation:
√
a1/2 = a
√
a1/n = na
Slide 15
Fractional powers II
Example
√
Compute
3
27, (1/32)1/5 , and 0.00010.25 .
Slide 16
Fractional powers III
Example
An amount of e 5000 in an account has increased to e 6000 in 20 years. What (constant)
yearly interest ratep has been used?
Slide 17
Inequalities I
Example
Find what values of x satisfy 3x − 5 > x − 3.
Slide 18
Inequalities II
Example
Find all x such that |3x − 2| ≤ 5.
Slide 19
Outline
Elementary algebra
Equations
Summation notation
Slide 20
Equations I
Equations are called equivalent if they have the same solutions, and
Slide 21
Equations II
Example
Solve for x:
√ ax
1+x+ √ =0
1+x
Slide 22
Equations III
Example
A rm manufactures a commodity that costs e 20 per unit to produce. In addition, the
rm has xed costs of e 2000. Each unit is sold for e 75. How many units must be sold
if the rm is to meet a prot target of e 14 500?
Slide 23
Quadratic equations I
Easy case 1: a = 0:
Easy case 2: b = 0:
Easy case 3: c = 0:
Slide 24
Quadratic equations II
q
−b ±
ax2 + bx + c = 0 if and only if x=
2a
Slide 25
Quadratic equations III
Example
A producer faces the following demand: P = 100 − 2Q, where P stands for the price
of a certain product and Q for the quantity of products sold. For what price is the total
revenue TR = P · Q equal to zero?
Slide 26
Outline
Elementary algebra
Equations
Summation notation
Slide 27
Summation notation I
n
X
Ni := N1 + N2 + . . . + Nn
i=1
n
X
(ai + bi ) =
i=1
n
X
c · ai =
i=1
Slide 28
Summation notation II
Example
Evaluate
3
X
(i + 3)i
i=−2
Slide 29
Summation notation III
Example
Express in summation notation:
x x2 x3 x79 x80
1− + − + ... − +
2 3 4 80 81
Slide 30
Part II
Slide 31
Outline
Slide 32
Functions I
1. a domain A,
2. a target set ( codomain) B ,
3. rule that assigns to any element of the domain one element of the codomain.
Notation: f : A → B , x 7→ f (x)
Slide 33
Functions II
Example
Assign to each person in this room his/her age (in years).
Slide 34
Functions III
Example
Assign to each age (in years) the corresponding person in this room.
Slide 35
Functions IV
Example
Assign to each number its square.
Slide 36
Functions V
Example
Assign to each area of a square its side length.
Slide 37
Functions VI
Example
√
The total dollar cost of producing x units of a product is given by C(x) = 100x x+500.
Domain? Codomain? Range? Graph?
Slide 38
Functions VII
Example
The absolute value function is dened as follows:
R → R+ 0
x 7→ |x|
with
if x≥0
|x| =
if x<0
Slide 39
Outline
Slide 40
Linear (affine) functions I
R → R
f:
x 7→ ax + b
a ∈ R...
b ∈ R...
Slide 41
Linear (affine) functions II
Example
Suppose demand D for a good is a linear function of its price per unit P. When price
is e 10, demand is 300 units, and when price is e 15, demand is 250 units. Find the
demand function.
Slide 42
Linear (affine) functions III
Example
Suppose supply S for a good is a linear function of its price per unit P. When price is
e 10, supply is 100 units, and when price is e 20, supply is 200 units. Find the supply
function.
Slide 43
Linear (affine) functions IV
Example
Graph D and S and nd the equilibrium price P : D(P ) = S(P ).
Slide 44
Outline
Slide 45
Polynomials I
Polynomial of degree n:
R → R
f:
x 7→ an xn + an−1 xn−1 + · · · + a1 x + a0
an ∈ R \{0}
an−1 , . . . , a1 , a0 ∈ R
Well behaved and well understood from a mathematical point of view. However,
nding roots, maxima, etc. can be tedious to do by hand.
Slide 46
Polynomials II
Example
R → R
f:
x 7→ ax2 + bx + c
a ∈ R \{0}
b, c ∈ R
downwards if
Slide 47
Polynomials III
Example
Note that !2
b2 − 4ac
ax2 + bx + c = a x + −
4a
Slide 48
Polynomials IV
Example
Let f (x) = − 12 x2 − x + 3
2.
Graph?
Minimum/Maximum?
x : f (x) = 0?
1
Show that f (x) = − (x )(x ) and use this to study how the sign of f (x)
2
varies.
Slide 49
Polynomials V
Example
Factorize f (x) = − 21 x3 − x2 + 32 x.
Slide 50
Outline
Slide 51
Power functions I
R+ \{0} → R
f:
x 7→ Axr
A, r ∈ R
If r > 0, then we may allow the value 0 in the domain of f with f (0) = 0.
Slide 52
Power functions II
Example
Assume that the relationship between the size of houses s (in m2 ) and their selling price P (in
e) follows approximately
P (s) = 40 000 · s0.4
Slide 53
Outline
Slide 54
Exponential functions I
R → R
f:
t 7→ Aat
A ∈ R, a ∈ R+ \{0}
Special case: The
P∞ natural exponential function t 7→ exp(t) where A=1 and
1
a=e= n=0 n! = 2.718281828459045 . . .
Slide 55
Exponential functions II
Example
The normal (or Gaussian) density function is given by
1 2
√ e−x /2
2π
Slide 56
Exponential functions III
E1 a
x · = ax+y
ay
E2 axy = (ax )y = (ay )x
x
E3 a−x = a1
E4 a0 = 1
Slide 57
Exponential functions IV
General Interpretation:
p
If a=1+ 100 , where p > 0, and A > 0, then f (t) will increase by p% for each unit
increase in t.
p
If a=1− 100 , where0 < p < 100, and A > 0, then f (t) will decrease by p% for
each unit increase in t.
Slide 58
Exponential functions V
Example
Assume that you invest e 10 at an annual interest rate of 1%. Determine f (t), the
amount you have t years from now. How long does it take (approximately) for your
investment to double, how long to quadruple?
Slide 59
The logarithm I
The doubling time of an exponential function f (t) = Aat was dened as the time it
takes for f (t) to become twice as large. In order to nd the doubling time t∗ , we must
solve the equation a t∗ =2 ∗
for t :
Logarithm function
For any positive number x,
aloga x = x
Thus, loga x is the power of a you need to get x:
R+ \{0} → R
f:
x 7→ loga x
Note: Sometimes, we write log (or ln). This is the notation for loge x.
Slide 60
The logarithm II
Example
Find ln 1, ln e, ln 1/e, ln 4, and ln(−6).
Slide 61
The logarithm III
Slide 62
The logarithm IV
Example
Simplify exp(ln x2 − 2 ln y).
Slide 63
The logarithm V
Example
How long does it take for an amount x to double at a yearly interest rate of i ∈ {1, 2, 3}
per cent? Verify the rule of 70!
Slide 64
The logarithm VI
Example
Find the mistake in the following proof , showing that 2 is smaller than 1.
Slide 65
Part III
Slide 66
Outline
Transformations of Graphs
Inverse Functions
Slide 67
Transformations of graphs I
Slide 68
Transformations of graphs II
Example
Suppose a person earning y euros in a given year pays
y2
(
max 0, 1,000 000 − 100 if 0 ≤ y < 100 000
T (y) =
9 900 + (y − 100 000)/4 if y ≥ 100 000
Slide 69
Transformations of graphs III
Slide 70
Transformations of graphs IV
Example
To reduce taxes,
A suggests to allow every individual to deduct 10 000 euros before the tax is
calculated.
B suggests to allow every individual to deduct 5% before the tax is calculated.
C suggests to calculate the income tax on the full amount and then to allow each
person a tax credit of 1000 euros.
D suggests to calculate the income tax on the full amount and then to allow each
person a tax credit of 10%.
Visualize and comment.
Slide 71
Outline
Transformations of Graphs
Inverse Functions
Slide 72
New functions from old I
Slide 73
New functions from old II
A → C
f ◦g :
x 7→ f (g(x))
The function g is often called the kernel or interior/inner function, while f is called the
exterior/outer function.
Note: In general,
f ◦ g 6= f · g (and thus f 2 6= f ◦ f )
f ◦ g 6= g ◦ f
Slide 74
New functions from old III
Example
Iff (x) = 3x − x3 and g(x) = x3 , compute and visualize (f + g)(x), (f − g)(x), (f g)(x),
(f /g)(x), f (g(x)), g(f (x)) and evaluate f (g(1)), and g(f (1)).
Slide 75
Outline
Transformations of Graphs
Inverse Functions
Slide 76
Injections, Surjections, Bijections I
Slide 77
Injections, Surjections, Bijections II
Example
The function f : R → R; x 7→ x2 is neither injective nor surjective.
Slide 78
Inverse functions I
Notes:
Slide 79
Inverse functions II
Example
Find the inverse of f : [−2, 2] → [−9, 7]; x 7→ x3 − 1. Plot f and f −1 .
Slide 80
Inverse functions III
Example
√
Consider f dened by f (x) = 4 ln( x + 4 − 2). Determine natural domain, range, and
inverse.
Slide 81
Outline
Transformations of Graphs
Inverse Functions
Slide 82
Symmetry
A function f is called
symmetric about a if for all x it holds that
f (a + x) = f ( )
Slide 83
Monotonicity
A function f is called
increasing if a < b ⇒ f (a) f (b)
decreasing if a < b ⇒ f (a) f (b)
for all values a, b on a suitable interval.
The function is called strictly increasing or decreasing (on that interval) if the
corresponding strict inequalities hold.
Slide 84
Convexity I
A function f is called
conVex if
f (λa + (1 − λ)b) ≤ λf (a) + (1 − λ)f (b)
concAve if
f (λa + (1 − λ)b) ≥ λf (a) + (1 − λ)f (b)
for all values a, b on a suitable interval and λ ∈ [0, 1].
Slide 85
Convexity II
Example
Discuss the convexity of f with f (x) = x2 .
Slide 86
Part IV
Slide 87
Slopes of curves I
Slide 88
Slopes of curves II
exp(− x)
f(x) = kx + d f(x) = −3
0.5cos(x)
7
6
6
5
k=?
4
k=2
4
f(x)
f(x)
3
2
2
1
0
0
−1
−2
−1 −0.5 0 0.5 1 1.5 2 2.5 3 −1.0 −0.5 0.0 0.5 1.0 1.5
x x
Slide 89
Definition of derivative I
f (x + h) − f (x)
f 0 (x) := lim . (1)
h→0 h
If the limit (1) exists ...
f 0 : D → R.
Slide 90
Definition of derivative II
Example
Compute f 0 (x) for f (x) = x2 .
Slide 91
Rules of differentiation I
f (x) = c
f 0 (x) = 0
f (x) = xc
f 0 (x) = cxc−1
Slide 92
Rules of differentiation II
4. Multiplication by a Constant
f (x) = c · g(x)
f 0 (x) = c · g 0 (x)
6. Product Rule
f (x) = g(x)h(x)
f 0 (x) = g 0 (x)h(x) + g(x)h0 (x)
Slide 93
Rules of differentiation III
7. Quotient Rule
g(x)
f (x) =
h(x)
g 0 (x)h(x) − g(x)h0 (x)
f 0 (x) =
[h(x)]2
8. Chain Rule
f (x) = g(h(x))
f 0 (x) = g 0 (h(x)) · h0 (x)
Slide 94
Rules of differentiation IV
d
exp(x) = exp(x),
dx
d 1
ln(x) = ,
dx x
d
sin(x) = cos(x),
dx
d
cos(x) = − sin(x).
dx
sin(x)
What about tan(x) = cos(x) ?
Slide 95
Rules of differentiation V
Example
f0 f (x) = sin 1/ exp(x2 ) − x2
Find of f with .
Slide 96
Increasing and decreasing functions
Slide 97
Convex and concave functions
Note that (if it exists) the second derivative f 00 of a function f is simply the derivative
0
of f . We can use the same logic to dene the nth derivative f
(n) of a function f .
Slide 98
Implicit differentiation I
f (x, y) = k (2)
0
We can nd y by dierentiating both sides of Equation (2) w.r.t. x and by solving
the resulting equation
Note: in Equation (2) we have a slight abuse of notation since we do not know multivariate calculus
yet
Slide 99
Implicit differentiation II
Example
Find an expression for y0, where it holds that xy = 5.
Slide 100
Implicit differentiation III
Example
Find an expression for y0, where it holds that y 3 + 3x2 y = 13.
Slide 101
Implicit differentiation IV
Slide 102
Taylor approximation I
n
X f (i) (a)
f (a) + (x − a)i . (3)
i!
i=1
For values x close to a, the Taylor approximation gets better with increasing n;
however, for values far from a this does not need to hold!
Slide 103
Taylor approximation II
Example
Do an nth order Taylor approximation of f (x) = exp(x) about a = 0 for n ∈ {1, . . . , 5}.
Slide 104
Elasticities
df (x)
x 0 f (x)
Elx f (x) = f (x) = .
f (x) dx
x
Elasticity is the ratio of the percentage change in f (x) to the percentage change in x.
Elasticity is an important concept for economists.
Take e.g. the demand for a certain good as a function of its price, D(p). The price
elasticity of the demand, Elp D(p), measures the percentage change in quantity
demanded in response to a one percent change in price.
Slide 105
Further topics
Slide 106
Part V
Slide 107
Before we start I
First o: Check out 3Blue1Brown.com if you really want to know what's going on. Not
exactly free lunch but very rewarding.
Slide 108
Before we start II
Assume further that this economy has a nal demand of d1 tons of sh and d2 tons of
timber (and no nal demand for boats). How many tons of sh x1 , how many tons of
timber x2 , and how many shing boats x3 have to be produced?
Slide 109
Matrices
a11 a12 . . . a1n
a21 a22 . . . a2n
A = (aij )m×n = (aij ) = .
. .
.. .
.
.
.
am1 am2 . . . amn
dimension/size / order
In or simply I , the identity matrix of
order n (times n)
elements / entries
(row or column) vector
Slide 110
Matrix operations I
For a scalar α (i.e. a real number) and two matrices A and B of the same :
The matrices are called equal (A = B) if all their elements are equal
(A + B) + C = A + (B + C) ( )
A+B =B+A ( )
(α + β)A = αA + βA ( )
α(A + B) = αA + αB ( )
Slide 111
Matrix operations II
Matrix multiplication is dierent! For A = (aij )m×n and B = (bij )n×p , the matrix
n
X
AB := C = (cij )m×p with cij = air brj
r=1
Otherwise put: cij is the scalar product of the ith row of A with the j th row of B.
Slide 112
Matrix operations III
Example
0 1 2 3 2
2 3 1 · 1 0 =
4 −1 6 −1 1
3 2 0 1 2
1 0 · 2 3 1 =
−1 1 4 −1 6
Slide 113
Matrix operations IV
Example
Initially, three rms, A, B, and C, share the market for a certain commodity. Firm A has
20% of the market, B has 60%, and C has . In the course of the next year, the
following changes occur: rm A keeps 85% of its customers while losing 5% to B and
to C; rm B keeps 55% of its customers, while losing 10% to A and to C;
and rm C keeps 85% of its customers, while losing 10% to A and to B.
Find the transition matrix T and the market share vector s. Find and interpret the
values of T s, T (T s), T (T (T s))), etc.!
Slide 114
Rules for matrix multiplication I
(AB)C = A(BC) ( )
(A + B)C = AC + BC ( )
A(B + C) = AB + AC ( )
but
AB 6= BA (in general)
Note: An := AA . . . A}
| {z is well dened!
n times
Slide 115
Rules for matrix multiplication II
Example
Expand (A + B)2 !
Slide 116
Rules for matrix multiplication III
Example
Country A Country B Country C
1
b1
2 2
3 1 c1
1
a1 b2
1
c2
1 2
4 1
a2 b3
c3
1 b4
What is the total number of ight connections between the dierent airports in
countries A and C?
Slide 117
The transpose I
(A0 )0 = A
(A + B)0 = A0 + B 0
(AB)0 = B 0 A0
Slide 118
The transpose II
Example
For any matrix X, show that X 0X and XX 0 are symmetric.
Slide 119
Systems of equations in matrix form I
Assume further that this economy has a nal demand of d1 tons of sh and d2 tons of
timber (and no nal demand for boats). How many tons of sh x1 , how many tons of
timber x2 , and how many shing boats x3 have to be produced?
Write down the corresponding system of equations in matrix form and solve it for
α = 1/2, β = 1/4, γ = 2, d1 = 100, and d2 = 80!
Slide 120
Systems of equations in matrix form II
3. The general solution is found by expressing the unknowns that occur as leading
entries in terms of those unknowns that do not. The latter unknowns (if there are
any) can be chosen freely. The number of unknowns that can be chosen freely
(possibly 0) is the number of degrees of freedom.
Slide 121
Systems of equations in matrix form III
Example
x1 + x3 + 2x4 = a
x1 + 3x2 − x3 + x4 = b
x1 + 9x2 − 5x3 − x4 = c
1 0 1 2 a
1 3 −1 1 b
1 9 −5 1 c
Slide 122
The inverse of a matrix I
α· = ·α=1
if α 6=
AX = XA = I
Note that A (and thus X) need to be square matrices for this to make sense!
Slide 123
The inverse of a matrix II
Example
Find the inverse of
2 1 1 0
, ,
1 0 0 0
and
a b
!
c d
Answer:
−1
a b 1 d −b
=
c d ad − bc −c a
Slide 124
The inverse of a matrix III
Determinant
The determinant of a matrix A, det(A), is a special number that can be calculated for
any square matrix A.
The determinant helps us nd the inverse of a matrix. Inverse of a matrix exist if and
only if the determinant of the matrix is non-zero.
(A−1 )−1 =
(AB)−1 =
(A0 )−1 =
(αA)−1 =
Slide 126
Solving matrix equations I
Assume further that this economy has a nal demand of d1 tons of sh and d2 tons of
timber (and no nal demand for boats). How many tons of sh x1 , how many tons of
timber x2 , and how many shing boats x3 have to be produced?
Write down the corresponding system of equations in matrix form and solve it generally
and for α = 1/2, β = 1/4, γ = 2, d1 = 100, and d2 = 80!
Slide 127
Solving matrix equations II
Example
Find a matrix X that satises AB + CX = D .
Slide 128
Solving matrix equations III
Example
Let C be a square matrix that satises C2 + C = I. Show that
C −1 = I + C
C 3 = −I + 2C
C 4 = 2I − 3C
Slide 129