Professional Documents
Culture Documents
Homework Set #1
Due: Friday, November 6, 2020.
n x2k +x2k−1
(c) Assume n is even and y ∈ < 2 . We define yk = 2
for k = 1, . . . , n2 .
As we discussed in class, we can form a one to one correspondence between Pn−1 and
h iT
<n . Let a = c0 c1 . . . cn−1 be the vector in <n corresponding to p(x) above,
dp(x)
and let b be the vector corresponding to dx
. Show that the relation between b and
a can be written as
b = Ha (3)
by explicitly writing H.
3. Affine functions
A function f : <n → <m is called affine if and only if for any x, y ∈ <n and any
α, β ∈ < satisfying α + β = 1, we have
(a) Suppose that A ∈ <m×n and b ∈ <m . Show that f (x) = Ax + b is affine.
1
(b) Now the converse: Show that any affine function f can be represented as f (x) =
Ax + b for some A ∈ <m×n and b ∈ <m . (Hint: Show that g(x) = f (x) − f (0)
is linear).
5. Inequality Proof
For a, b ∈ <n , show that ka + bk ≥ kak − kbk, where k · k is the Euclidian norm.
in the form f (x) = xT Ax where x ∈ <3 . Either prove that A is unique and provide the
corresponding A, or show that it is non-unique by providing two alternative matrices
for A.
7. On Gradients....
Let f : <n → < be a differentiable multivariate function. Its gradient (at point x) is
defined as the vector
∂f
∂x 1
∂f
∂x2
∇f (x) = . .
(6)
..
∂f
∂xn
2
8. What is a homework without a computational part?....
Given a differentiable function f (x), where x ∈ <n ,
f (x) = xT Ax (9)
Please plot the surfaces corresponding to this function and its affine approximation at
h iT
the point x0 = 25 0 as show in Figure below:
Please submit your Matlab/Python/Julia code and your plot (Hint: Yes, you can
shamelessly reuse your drawhyperplane3D function from your previous homework.) In
case of Python/Julia notebooks, please submit a print out of your executed notebook.
3
Figure 1: Affine approximation of a quadratic function.