TMA4130/TMA4135 Matematikk 4N/4D
Autumn 2026
Exercise #1
Submission Deadline:
31. August 2026, 23:59
Exercises marked with a (J) should be handed in as a Jupyter notebook.
Problems marked with 4N or 4D must be submitted only by the respective course, while unmarked
problems must be submitted by both courses.
Optional exercises will not be corrected.
Partial Derivatives
Partial derivatives are essential in fields like physics, engineering, and economics, where functions depend
on multiple variables, and understanding the impact of each variable independently is crucial. They also
play a key role in gradient vectors and optimization problems.
Given a function f (x) of a single variable x, the derivative f ′ (x) represents the rate of change of the
function as x changes. However, when we deal with a multivariable function, i.e., a function depending
on more than one variable, we have different options depending on whether we want to analyze the effect
of changing just one variable or more than one variable:
• If we want to change only one variable: We apply a partial derivative to a multivariable function.
It measures how the function changes with respect to one of its variables while keeping the other
variables constant. In other words, we can think of partial derivatives as derivatives of single
variable functions. This allows us to isolate the dependence of the function on just one variable.
For example, if the function f = f (x, y), the partial derivative with respect to x, denoted ∂f
∂x :=
fx (x, y) = ∂x f (x, y) represents the rate of change with respect to x, while y remains fixed. Similarly
∂f
∂y := fy (x, y) = ∂y f (x, y) represents the rate of change with respect to y, while x remains fixed.
• If we want more than one variable to change: We consider partial derivatives with respect to
each variable separately, or we can explore the combined effects using concepts like the total
derivative. The latter takes into account how all the variables change simultaneously, providing a
more comprehensive understanding of how the function behaves when multiple inputs vary together.
As a concrete example, let f (x, y) = x2 y − xy 4 , we then get
fx (x, y) = 2x − y 4
fy (x, y) = 2xy − 4xy 3 .
The formal definition of the first order partial derivatives above are
f (x + h, y) − f (x, y)
h→0
h
f (x, y + h) − f (x, y)
.
h→0
h
fy (x, y) := lim
fx (x, y) := lim
Since both fx (x, y) and fy (x, y) are functions in x, y, we can take their partial derivatives with respect
1
TMA4130/TMA4135 Matematikk 4N/4D
Autumn 2026
Exercise #1
Submission Deadline:
31. August 2026, 23:59
to x and y. These are
∂2f
∂y∂x
∂2f
(fy )x := fyx = ∂x ∂y f =
.
∂x∂y
∂2f
∂x2
∂2f
(fy )y := fyy = ∂y ∂y f =
∂y 2
(fx )y := fxy = ∂y ∂x f =
(fx )x := fxx = ∂x ∂x f =
Note that if f (x, y) is ”nice enough”, fxy = fyx , but in general this does not hold true.
Theorem 1 (Schwarz’ Theorem). For a function f : U → R with U ⊆ Rn , if p ∈ Rn is a point such
that some neighborhood of p is contained in U , and f has continuous second order partial derivatives of
that neighborhood of p, then for all i, j ∈ {1, 2, ..., n},
∂2
∂2
f (p) =
f (p).
∂xi ∂xj
∂xj ∂xi
I.e. the partial derivatives commute at the point p.
Taylor expansions
Given a function f ∈ C ∞ ([a, b]) (this means the function has all partial derivatives of any order continuous), choose a point x0 ∈ [a, b] and an increment h = x − x0 for all x ∈ [a, b]. The Taylor series expansion
of f at x0 is then
∞
∑︂
f (n) (x0 )
n=0
n!
(x − x0 )n =
∞
∑︂
f (n) (x0 )
n!
n=0
hn .
The function f is called analytic in x0 if for sufficiently small values of h, the Taylor series converges to
f , i.e.
f (x) =
∞
∑︂
f (n) (x0 )
n!
n=0
hn .
In numerics we will work with the truncated series, or the Taylor polynomial, which exists for all f ∈
C m+1 [a, b], and is given
f (x) =
m
∑︂
f (n) (x0 )
n=0
n!
(x − x0 )n + Rm+1 (x0 ).
Rm+1 (x0 ) is called the remainder term and is given by
Rm+1 (x0 ) =
f (m+1) (ξ)
(x − x0 )m+1
(m + 1)!
2
TMA4130/TMA4135 Matematikk 4N/4D
Autumn 2026
Exercise #1
Submission Deadline:
31. August 2026, 23:59
where ξ is some unknown point between x and x0 . We often write this using Big O notation, in which
case we have
f (x) =
m
∑︂
f (n) (x0 )
n=0
n!
(x − x0 )n + O(hm+1 ).
Let f and g be some real valued functions, and a ∈ R. We say that f (x) = O(g(x)) as x tends to a if
there exist δ > 0 and M > 0 such that
|f (x)| ≤ M |g(x)|
when
0 < |x − a| < δ.
I.e. locally around the point a, f can be bounded up to a constant by g.
Problem 1 (Partial derivatives)
a)
Given the functions u(x, y, z) dependent on the independent variables x, y, z, find ux , uy , uzx , uxz , uzz .
u(x, y, z) = x2 − y 2 z 3 ,
ez
,
u(x, y, z) = − √︁
x2 + y 2
2
u(x, y, z) = ln(xz)ez +y
√︁
u(x, y, z) = xe−x sin(y), u(x, y, z) = z ln(xy)
u(x, y, z) = cos(xy) − 5z,
b)
Recall that for a vector v ∈ Rm , the transposed vector is denoted v T . Use the upper/lower notation for
components respectively partial derivations
∂f i
=: fki
∂y k
∂2f i
i
=: fkl
.
∂y k ∂y l
We note by fy the so-called Jacobian matrix of f = f (y), that is the matrix with entries (fij )ij = fji ,
i
then fy2 is the matrix product and fyy has entries (fkl
).
Consider a function
f : Rm → Rm
f (y) = (f 1 (y 1 , . . . , y m ), . . . , f m (y 1 , . . . , y m ))T .
Show that the following identity holds
(fy f )y f = f T fyy f + fy2 f.
3
TMA4130/TMA4135 Matematikk 4N/4D
Autumn 2026
Exercise #1
Submission Deadline:
31. August 2026, 23:59
Problem 2 (Taylor polynomials)
a)
Compute all Taylor polynomials of f (x) = 2x4 − x3 + 2x2 − 3x + 1 around x0 = 12
b)
Compute the Taylor series of e3x−1 around x0 = 13 .
Problem 3 (Norms)
Let Rn×n denote the collection of n × n real matrices with identity matrix I ∈ Rn×n . Let || · || be a
matrix norm on Rn×n .
a)
Let A ∈ Rn×n be a non-singular matrix, let κ(A) = ||A|| · ||A−1 ||, which is called the condition number
of the matrix A. Suppose x̃ is an approximate solution to Ax = b, and let r = b − Ax̃ be the residual.
Show that
||x − x̃||
||r||
≤ κ(A)
||x||
||b||
b)
Let R := AX − I, show that if ||R|| < 1, then X is non-singular.
Problem 4 (Inner products)
a)
Let {vi }ki=1 be a collection of vectors in Rn , show that ||vi ||2 ||vj ||2 −⟨vi , vj ⟩2 ≥ 0. Show that ∥vi ∥2 ∥vj ∥2 −
⟨vi , vj ⟩2 = 0 ⇐⇒ vi = kvj for some k ∈ R.
b)
Let {vi }ki=1 be linearly independent vectors in Rn , and ⟨·, ·⟩ be an inner product. Let A be the matrix
with entries (A)ij = ⟨vi , vj ⟩, which we call the Gram matrix. Show that G is symmetric positive definite.
4
TMA4130/TMA4135 Matematikk 4N/4D
Autumn 2026
Exercise #1
Submission Deadline:
31. August 2026, 23:59
Challenges (Optional)
Let V ⊂ Rn be a k−dimensional subspace of Rn , and let ⟨·, ·⟩ be an inner product. Let {v1 , ..., vk } be a
basis for V , and let A be the matrix with entries (A)ij = ⟨vi , vj ⟩.
The volume of the parallellepiped spanned by v1 , ..., vk is defined to be
Vol(v1 , ..., vk ) =
√︁
det(A).
a)
Suppose {w1 , ..., wk } is another basis of V obtained as wi =
∑︁k
k×k
.
j=1 mij vj for some matrix M ∈ R
Show that
Vol(w1 , ..., wk ) = | det(M )| · Vol(v1 , ..., vk ).
b)
Show that for any set of vectors {v1 , ..., vk } ⊆ Rn the following holds
| det(A)| ≤
k
∏︂
i=1
Here, A is the Gram matrix of {v1 , ..., vk }.
5
||vi ||2 .