Professional Documents
Culture Documents
Math3 Final 2018 Incl Sol
Math3 Final 2018 Incl Sol
Exam
Answers
. ( points) Among all the unit vectors u = (u1 , u2 , u3 , u4 ) ∈ R4 , nd the one for which the
sum 4u1 − 2u2 + 3u4 is minimal.
Answer
−∥v∥∥u∥ ≤ v · u ≤ ∥v∥∥u∥,
with equality only if v = λu. The lower equality holds if λ < 0, and the upper if λ > 0.
Hence v · u is minimal if
1
u= v
λ
and λ < 0. We derive a condition for λ by using that u is a unit vector, whence
√
1
1 √ 2 2 2 2
29
1 =
v
= 4 + (−2) + 0 + 3 =
λ |λ| |λ|
It follows that √
λ = − 29
and
4
1 −2
u = −√ .
29 0
3
Answer
We conclude that
1 2
−2 −3
ker(A) = span {v1 , v2 } = span , .
1 0
0 1
Answer
y = c1 + c2 x + c3 x2 .
From the given data points, we infer the design matrix X and the vector Y of observed outputs
1 −1 1 20
1 0 0 0
X= , Y = .
1 1 1 0
1 2 4 0
Note that the columns of X are linearly independent. The least squares solution c of the equation
Y = Xc is the solution to the exact matrix equation
X T Y = X T Xc.
Compute
1 1 1 1 4 2 6 20
X T = −1 0 1 2 , X T X = 2 6 8 , and X T Y = −20 .
1 0 1 4 6 8 18 20
y = 3 − 11x + 5x2 .
20
15
10
Answer
Let λ1 and λ2 be the two distinct eigenvalues, and assume that λ1 occurs with algebraic multiplicity
2. Then
tr(A) = 2λ1 + λ2 = 1 and det(A) = λ21 λ2 = 3.
These are two equations for two unknowns. As the determinant is nonzero, no eigenvalue can be
zero. From the second equation, we derive λ2 = 3/λ21 . Substitution into the rst yields
2λ1 + 3/λ21 = 1
whence we derive
2λ31 − λ21 + 3 = 0.
This equation is satis ed by λ1 = −1. Dividing out the corresponding linear factor (λ1 + 1) yields
λ1 (mult. 2) λ2 (mult. 1)
−1 3
√ √
3
4 +i 15
4 − 12 − i 15
2
√ √
3
4 −i 15
4 − 12 + i 15
2
However, as we know that the matrix is real, the complex eigenvalues should appear in complex
conjugate pairs of equal multiplicity. This implies that the latter two possibilities cannot occur,
and we are le with an eigenvalue −1 of multiplicity 2 and an eigenvalue 3 of multiplicity 1.
Answer
If
x1 −1 0 5
x = x2 and A = 0 1 0 ,
x3 5 0 −1
then
−x21 + x22 − x23 + 10x1 x3 = x · Ax.
5 0 5
1
E−6 = ker 0 7 0 = span 0 ,
−1
5 0 5
−5 0 5
1
E4 = ker 0 −3 0 = span .
0
1
5 0 −5
then
4 0 0
C T AC = D = 0 1 0 .
0 0 −6
Writing this as
y12 + y22 + y32 = 1 − 3y12 + 7y32 ,
it is clear that the smallest values for ∥y∥2 , and hence for ∥y∥, can be achieved if y32 is as small as
possible and y12 is as large as possible. Setting y3 = 0 and rewriting results in
4y12 = 1 − y22 .
The largest possible value for y12 is then obtained if y2 = 0 and y1 = 1/2 or y1 = −1/2.
We conclude that the nearest points to the origin are the points y = (1/2, 0, 0) and y =
(−1/2, 0, 0).
are the two points on the surface closest to the origin, as C is orthogonal and preserves distances.
Answer
To apply Taylor’s theorem to log(1 + x) at a = 0 for x = 0.1, we have to make an initial estimate
the degree of the Taylor polynomial that will furnish us a good approximation. The remainder term
is of the form
f (n+1) (0.1ϑ)
Rn = (0.1)n+1 .
(n + 1)!
To estimate these remainders for increasing values of n, compute the derivatives of f (x) = log(1 +
x).
1
f ′ (x) = ,
1+x
1
f ′′ (x) = − ,
(1 + x)2
2
f (3) (x) = .
(1 + x)3
It follows that a second order Taylor approximation satis es the requirement. The second degree
Taylor polynomial of log(1 + x) at a = 0 reads as
f ′′ (0) 2 x2
T2 (x) = f (0) + f ′ (0)x + x =x− ,
2 2
furnishing the approximation
0.01
L = 0.1 − = 0.095,
2
whose distance to log(1.1) is less than 0.005.
x31 x3
f (x) = − − x21 x2 − x1 x22 − 2 − x21 + 2x1 x2 − x22 + x1 + x2
3 3
Find all local maxima of f .
Answer
( )
∂f ∂f
A local maximiser satis es the equation Df (x) = ∂x1 ∂x2 = 0. Compute
∂f
0= = −x21 − 2x1 x2 − x22 − 2x1 + 2x2 + 1,
∂x1
∂f
0= = −x21 − 2x1 x2 − x22 + 2x1 − 2x2 + 1
∂x2
Subtracting the second equation om the rst yields the system
0 = −4x1 + 4x2 ,
0 = −x21 − 2x1 x2 − x22 + 2x1 − 2x2 + 1.
Hence the critical points are a = (1/2, 1/2) and b = (−1/2, −1/2), and the critical values are
f (a) = 2/3 and f (b) = −2/3.
To determine whether these are local maxima, compute the Hessian matrix
( )
∂2f ∂2f
∂x2 1
2 ∂x1 ∂x2 −2x1 − 2x2 − 2 −2x1 − 2x2 + 2
Hf (x) = ∂2f
= .
∂ f −2x1 − 2x2 + 2 −2x1 − 2x2 − 2
∂x1 ∂x2 ∂x22
The critical point a is clearly a local maximiser, whereas for the second critical point b, we have
det Hf (b) = −16, hence one eigenvalue is positive and one negative. It follows that b is neither a
maximiser nor a minimiser.
Answer
If A is diagonalisable, then there is a diagonal matrix D and an invertible matrix C, such that
C −1 AC = D. Denote( the diagonal)elements of D by λ1 , . . ., λn and the columns of C by
vi , that is, write C = v1 . . . vn . As C is invertible, the set {v1 , . . . , vn } forms a basis.
Moreover, since we can write AC = CD, and since vi = Cei , we nd that Avi = ACei =
CDei = Cλi ei = λi Cei = λi vi . Hence the vi , which are necessarily nonzero, are eigenvectors,
and {v1 , . . . , vn } is therefore an eigenbasis.
( )
If A has an eigenbasis of eigenvectors vi satising Avi = λi vi , then the matrix C = v1 . . . vn
is invertible. Compute the i’th column of the matrix C −1 AC, using that Cei = vi and C −1 vi =
ei by evaluating
C −1 ACei = C −1 Avi = C −1 λi vi = λi C −1 vi = λi ei .
It follows that
λ1 0 . . . 0
0 λ2
−1
C AC = .
. . .
. .
0 λn