MB Ueh
MB Ueh
3 Chapter 3. Differentiation
3.1. Limits
3.2. Continuity
3.3. Tangent and Velocity Problems
[email protected] UEH September 14, 2024 2 / 96
3.4. Derivative
3.5. Rules of Differentiation
3.6. Applications in Maths
3.7. Applications in Business
In particular,
If m = 1 then A is also called row vector.
If n = 1 then A is called column vector.
If m = n then the matrix is said to be square and in this case, we call
A is the square matrix of order n.
Equality.
A = B ⇔ aij = bij
Addition/Subtraction.
A ± B = [aij ± bij ]
k A = [k aij ]
n
X
⟨a, b⟩ = ab T = a1 b1 + a2 b2 + · · · + an bn = ai bi
i=1
Example
a = (1 3 5), b = (−1 0 4) ⇒ ab T = 1 × (−1) + 3 × 0 + 5 × 4 = 19
a = (1 0), b = (0 1) ⇒ ab T = 0
n
X
AB = [cij ] where cij = aik bkj
k=1
Note that we can only multiply two matrices when the number of columns
in the first matrix is equal to the number of rows in the second matrix.
" # " #
1 × 7 + 2 × 9 + 3 × 11 1 × 8 + 2 × 10 + 3 × 12 58 64
= =
4 × 7 + 5 × 9 + 6 × 11 4 × 8 + 5 × 10 + 6 × 12 139 154
[email protected] UEH September 14, 2024 9 / 96
Chapter 1. Matrices 1.2. Matrix Operations
Observe that
" #" # " #
1 0 a11 a12 a11 a12
=
0 1 a21 a22 a21 a22
and
" #" # " #
a11 a12 1 0 a11 a12
=
a21 a22 0 1 a21 a22
(3) AB ̸= BA
Tabulations are handy while storing the raw data as we will see in the
following examples.
Example
A firm orders 12, 30 and 25 items of goods G1, G2 and G3. The cost of
each item of G1, G2 and G3 is $8, $30 and $15, respectively.
(a) Write down suitable price and quantity vectors, and use matrix
multiplication to work out the total cost of the order.
(b) Write down the new price vector when the cost of G1 rises by 20%,
the cost of G2 falls by 10% and the cost of G3 is unaltered. Use
matrix multiplication to work out the new cost of the order and hence
find the overall percentage change in total cost.
Example
A chain of sports shops, A, B and C , sells T-shirts, trainers and tennis racquets.
The weekly sales and profit per item are shown in the tables below:
The 3 × 3 matrices formed from the sales and profit tables are denoted by S and
P, respectively.
(a) If A = SP T , find the element a11 and give a brief interpretation of this
number.
(b) If B = S T P, find the element b33 and give a brief interpretation of this
number.
[email protected] UEH September 14, 2024 12 / 96
Chapter 2. Solving a System of Linear Equations 2.1. Inverse Matrix
⇔
a11 a12 ... a1n x1 b1
a21 a22 ... a2n x2 b2
. .= . ⇔ AX = B
. . .
. . .
am1 am2 ... amn xn bm
We know that the ordinary equation ax = b has a solution x = a−1 b if a ̸= 0,
where a−1 = 1a . Now, being seeking solution of the matrix equation above, we
will define A−1 .
[email protected] UEH September 14, 2024 13 / 96
Chapter 2. Solving a System of Linear Equations 2.1. Inverse Matrix
AB = In = BA
3.
Add a nonzero multiple ofone row to another row.
x + 2y = 1 x + 2y = 1
⇔
3x + 4y = −5 0x − 2y = −8
How to check a matrix invertible or not? one of the ways is finding its
determinant. If the determinant of a matrix is non-zero then the matrix is
invertible.
Matrix of order 2 × 2
a b
= ad − cb
c d
Matrix of 3 × 3:
a11 a12 a13
a21 a22 a23 =
a31 a32 a33
where Mij is the determinant of the matrix formed by deleting the ith row
and the jth column of A.
where i ∈ 1, n.
Otherwise, the determinant of a square matrix can be found by using the basic
elementary transformations on rows or columns as follows:
2. Multiply each element in that row or column by its cofactor and add the
results
Properties: Let A, B ∈ Mn
det(λA) = λn det A
det(AT ) = det A
Dx Dy
is given by x = ;y=
D D
a1 b1 c1 b1 a1 c1
where D = ; Dx = Dy = ; and D ̸= 0
a2 b2 c2 b2 a2 c2
Dx Dy Dz
is given by x = ;y= ;z=
D D D
a1 b1 c1 d1 b1 c1 a1 d1 c1
where D = a2 b2 c2 ; Dx = d2 b2 c2 Dy = a2 d2 c2 ;
a3 b3 c3 d3 b3 c3 a3 d3 c3
a1 b1 d1
Dz = a2 b2 d2 ; and D ̸= 0
a3 b3 d3
[email protected] UEH September 14, 2024 22 / 96
Chapter 2. Solving a System of Linear Equations 2.3. Cramer’s rule
D1 D2 Dn
x1 = , x2 = , . . . , xn =
D D D
provided that D ̸= 0.
If rank(A) = rank(A|B) < n then the system has many infinitely solutions.
The rank of the matrix is the number of non-zero rows of the echelon matrix.
[email protected] UEH September 14, 2024 25 / 96
Chapter 2. Solving a System of Linear Equations 2.4. Rank of a Matrix
(2) For a system of n linear equations and n variables, we can possibly solve by
Using inverse matrix,
M1 is available for 440 hours, M2 for 310 hours, and M3 for 560 hours.
Find how many units of each product should be produced to make use of
all available time on the machines.
An investment company three types of pooled funds: Standard (S), Deluxe (D),
and Gold Star (G). Each unit of S contains 12 shares of stock A, 16 stocks B, and
8 of stock C. Each unit of D contains 20 shares of stock A, 12 stocks B, and 28
of stock C. Each unit of G contains 32 shares of stock A, 28 stocks B, and 36 of
stock C.
Suppose an investor wishes to purchase exactly 220 shares of stock A, 176 shares
of stock B, and 264 shares of stock C by buying units of the three funds.
(a) Determine those combinations of units of S, D, and G that will meet the
investor’s requirement exactly.
(b) Suppose the investor pays $ 300 for each unit of S, $ 400 for each unit of D,
and $ 600 for each unit of G. Which of the combination from part (a) will
minimize the total cost to the investor?
The entries in a column represent the fractional parts of a sector’s total output.
Denote the prices (i.e., dollar values) of the total annual outputs of the Coal,
Electric, and Steel sectors by pC ,pE , and pS , respectively. What are equilibrium
prices that make each sector’s income match its expenditures?
Network flow
The network in the following figure shows the traffic flow (in vehicles per
hour) over several one-way streets in downtown Baltimore during a typical
early afternoon. What is the general flow pattern for the network?
Example. Suppose the economy consists of three people, the farmer F, the
carpenter C, and the tailor T. Assume that whatever the farmer produces, 20% is
used by him, 15% by the carpenter, 10% by the tailor, and the consumer uses the
other 40 billion dollars worth of the food. Ten percent of the carpenter’s
production is used by him, 25% by the farmer, 5% by the tailor, and 50 billion
dollars worth by the consumer. Fifteen percent of the clothing is used by the
tailor, 10% by the farmer, 5% by the carpenter, and the remaining 60 billion
dollars worth by the consumer. What should be, in billions of dollars, the required
output by each industry to meet the demand?
[email protected] UEH September 14, 2024 32 / 96
Chapter 2. Solving a System of Linear Equations 2.6. Applications of Linear Systems in Economics
X = AX + D ⇔ (I − A)X = D ⇔ X = (I − A)−1 D
Wassily W. Leontief [1906–1999] won the 1973 Nobel Prize in economic science
for the development of the “input–output” method and its applications to
economic problems.
if we can make f (x) arbitrarily close to L by taking x sufficiently close but bigger
than a (reps., smaller than a ).
Theorem
limx→a f (x) exists if and only if limx→a+ f (x) and limx→a− f (x) exist and
are equal. In that case limx→a f (x) = limx→a+ f (x) = limx→a− f (x)
Consequently, if limx→a+ f (x) ̸= limx→a− f (x) then limx→a f (x) does not
exist.
if we can make f (x) arbitrarily big by taking x sufficiently close but not
equal to a.
Definition
If the values of the function f (x) approach a number L as x increases
without bound, we write
limx→∞ f (x) = L
σ 2π
is called the normal [Gaussian] density function and its graph is shaped
like a bell-curve, in which the parameters µ and σ are the mean and the
standard deviation of data values observed, respectively.
The Gaussian density function is after the German mathematician Carl Friedrich
Gauss [1777–1855]
[email protected] UEH September 14, 2024 40 / 96
Chapter 3. Differentiation 3.1. Limits
Theorem
If c ∈ R then the constant function f (x) ≡ c is often denoted c itself.
And we have
lim c = c and lim x = a
x→a x→a
1 x
1
lim (1 + x) x = e and lim 1+ =e
x→0 x→∞ x
Limit Laws
Theorem
If limx→a f (x) and limx→a g (x) exist then
(a) limx→a [f (x) ± g (x)] = limx→a f (x) ± limx→a g (x)
One often says that a picture is worth more than thousand words. So in
order to understand the concepts of continuity, let do the example below.
Example
Let f be given by the graph in the figure below. Which intervals is f
continuous on?
Example
Suppose the long-distance rate for a telephone call from Hazleton,
Pennsylvania to Los Angeles, California, is $0.08 for the first minute or
fraction thereof and $0.04 for each additional minute or fraction thereof. If
y = f (t) is a function that indicates the total charge y for a call of t
minutes duration then
Formulate the charge function
Tangent problem. Find the slope of a tangent line at P(c, f (c)) on the
curve C of equation y = f (x).
f (a + h) − f (a)
v (a) = limh→0
h
Note that we are not concerned with the direction in which the movement
occurs, but displacement and velocity. The speed of the movement is
|velocity |.
Definition
Given y = f (x). The derivative of a function at the number a, denoted by
f ′ (x = a) (followed by Newton’s notation) which is read ’f dashed of x‘ or
denoted by dx df
(x = a) ≡ dy
dx (x = a) (followed by Leibnitz’s), is
f (a + ∆x) − f (a) ∆f df
f ′ (a) = lim = lim = (x = a)
∆x→0 ∆x ∆x→0 ∆x dx
if the limit exists and, in this case, f is said to be derivable (or also called
differentiable) at a.
√
2. f (x) = x
3. f (x) = x 2 − x + 1
Noting that not all functions are derivable. For example, function is not
continuous at a point then it is not derivable at that point, that is, the graph at
this point is broken into two pieces or has a hole.
Even continuous functions that whose graph has a sharp corner are also not
derivable.
Theorem
If f and g are derivable and c is a constant then
c′ = 0
(f ± g )′ = f ′ ± g ′
(fg )′ = f ′ g + fg ′ and thus (cf )′ = cf ′
′ ′ ′
f
g = f gg−fg
2
df df dg
= ×
dx dg dx
when f and g are derivable.
Example
Given two functions f , g whose graphs are shown below. Let
u(x) = f (g (x)), v (x) = g (f (x)), and w (x) = g (g (x))
If f ′ > 0 on a certain interval then the curve of f rises from the left to the
right of the interval and thus the function is said to be increasing.
The point at which f ′ = 0 is called the critical/stationary point. The point where
the curve changes from moving ups to moving down or v.v. is called the turning
point!
Recall that the global/absolute max (min, reps.) value of f is the biggest
(smallest, reps.) value of f in its domain. The local/relative max (min, reps.)
point of f is the point at which its value is the biggest (smallest, reps.) compared
to values of points in its vicinity.
The second order is defined by f ′′ (x) = (f ′ (x))′ . Moreover, the sign of f ′′ enables
us to identify the behavior of the function f . Precisely,
The point at which f ′ = 0 and the curve changes the concavity is called the point
of inflection.
Elasticity
Marginal analysis
Optimization in Business
Rate of change
Example
An efficiency study of the morning shift [from 8:00 a.m. til 12:00 noon] at
a certain factory indicates that an average worker arriving on the job at
8:00 a.m. will have produced Q(t) = −t 3 + 8t 2 + 15t units t hours later.
At what time is the worker performing most efficiently? and least
efficiently?
Example
The air ticket price increased by $25. If the price currently is $2,500, then the
change represents a 1% increase. But if the price currently is $25, then the
change is 100% increase, meaning the price is double.
∆f
The relative rate of change in f = f and the corresponding percentage rate of
change in f = 100f ∆f %.
Elasticity
For instance, the demand for products such as soap, flashlight batteries, or
salt will not be much affected by a small percentage change in unit price,
while a comparable percentage change in the price of airline tickets or
home loans can affect demand dramatically.
Demand is said to be
elastic if |E | > 1 ⇒ the percentage decrease in demand is greater than the
percentage increase in price that caused it, and thus, demand is relatively
sensitive to changes in price
unit elasticity if |E | = 1
[email protected] UEH September 14, 2024 68 / 96
Chapter 3. Differentiation 3.7. Applications in Business
Example
The manager of a bookstore determines that when a certain new
paperback novel is priced at p dollars per copy, the daily demand will be
√
q = 300 − p 2 copies, where 0 ≤ p ≤ 300
(a) Determine where the demand is elastic, inelastic, and of unit elasticity
with respect to price.
(b) Interpret the results of part (a) in terms of the behavior of total
revenue as a function of price.
The relationship between revenue and price is shown below. Note that the
revenue curve is rising where demand is inelastic, falling where demand is
elastic, and has a horizontal tangent line where the demand is of unit
elasticity.
q = p 2 − 20p + 100
where p is the price per unit (in hundred dollars) and q is the quantity
demanded (in hundreds).
Note that
Substitutes are products/services in different forms that have the same
functionality. For example, butter and margarine are substitute goods.
First-order derivatives.
Definition
First-order partial derivative w.r.t. x:
∂f f (x0 +∆x,y0 )−f (x0 ,y0 )
∂x (x0 , y0 ) ≡ fx (x0 , y0 ) = lim∆x→0 ∆x
∂f
Accordingly to compute for example ∂x , we need only to differentiate
mathematical expressions with respect to x and let all remaining letters in
the mathematical expressions constants in disguise. It is the same for
other variables.
Second-order derivatives.
∂2f
Second-order partial derivative w.r.t. x: ∂x 2
≡ fxx = (fx )x
∂2f
Second-order partial derivative w.r.t. y : ∂y 2
≡ fyy = (fy )y
∂2f
Second-order partial derivative w.r.t. x and y : ∂x∂y ≡ fxy = (fy )x
∂2f
Second-order partial derivative w.r.t. y and x: ∂x∂y ≡ fyx = (fx )y
Note that in general (fx )y ̸= (fy )x . In the scope of this course, we will
consider functions that satisfy (fx )y = (fy )x . [According to Clairaut’s
theorem, (fx )y (x0 , y0 ) = (fy )x (x0 , y0 ) if the first order partial derivatives
are continuous at (x0 , y0 ).]
∂f ∂f
∆z ≈ × ∆x + × ∆y
∂x ∂y
which is called the small increments formula. The differential form of the small
increments formula states that
∂f ∂f
dz = × dx + × dy
∂x ∂y
This formula is called the implicit differentiation and is a useful tool to compute
the derivative of an implicit function.
z = x 2 y 4 − x 6 + 4y
when
(a) x increases from 1 to 1.1 and y remains fixed at 0;
Example
Graph of the function f (x, y ) = −x 2 − y 2 has the shape of a paraboloid
opened downwards
Example
Graph of the function f (x, y ) = x 2 − y 2 has the shape of a hyperbolic
paraboloid
Example. Find the critical points of the following functions and classify
them as a relative minimum, a relative maximum, or as a minimax point.
(a) State the minimum value of TC in the case when there are no
constraints.
Example 1. A bank pays 3.6 % interest on its certificate of deposit accounts, but
charges a $10 annual fee. Write an equation for the rate of change of the balance.
If the balance V (t) has a unit of dollars, the rate of change of the balance is
V ′ (t) which has a unit of dollars per year. Since the amount of increase in the
balance is 0.036V (t) dollars/year and the fee is 10 dollars/year, we obtain that
Logistic models
A simple model called logistic model that incorporates both assumptions above
proposed by Pierre-François Verhulst in the 1840s is given by the equation
y
y ′ = ky 1 −
M
Example. A colony of 20 rabbits is introduced to a reclaimed forest. After 1
year, the population has grown to 40. It is estimated the forest can sustain 500
rabbits. The forest service plans to reintroduce wolves to the forest when the
rabbit population reaches 150 rabbits. When will that occur?
Separable equations
dy g (x)
= g (x) × f (y ) ≡ ⇔ h(y )dy = g (x)dx.
dx h(y )
We can use the Chain rule and the Fundamental theorem of Calculus to derive
R R
that h(y )dy = g (x)dx.
Example
Solve the following equation
dy x2
a. dx = y2 .
b. Find the solution of this equation that satisfies the initial condition y (0) = 2.
Linear equations
A first-order linear differential equation is one that can be put into the form
dy
+ P(x)y = Q(x).
dx
It has been proved that the solution of the equation above is
Z
1 R
P(x)dx
y (x) = I (x)Q(x)dx + C with I (x) = e
I (x)
Example
Solve the differential equation
a. x 2 y ′ + xy = 1 subject to x > 0.
A second-order linear differential equation with constant coefficients has the form
ay ′′ + by ′ + cy = G (x),
If
y = yc (x).
y = yp (x) + yc (x).
Example
Solve the boundary-value problem y ′′ + 2y ′ + y = 0 subject to y (0) = 1
and y (1) = 3.
To be continued ...