You are on page 1of 2

CSE 317 Quiz 1 Time 1 hour

Spring Semester 2020 Total Points: 25

ID :

NAME :

Answer the following questions.

1. (a) [5 points] Write the MATLAB code to construct the following 4 x 100 matrix A:
1 2 … 100
2 4 … 200
𝐴= [ ]
3 6 … 300
4 8 … 400

(b) [3 points] Find the matrix E such that EA will subtract the first row * 2 from the subsequent rows.

(c) [2 point] If the matrix A is the co-efficient matrix of a system of linear equations how many solutions
are there?

2. Consider the following function 𝑧 = 2𝑥 2 − 𝑥𝑦 2.


a. [3 points] write the code to plot the function in MATLAB.
b. [5 points] Find the 1st order Taylor approximation of the function near z = [1 1]T

c. [2 points] Write the code to plot the function obtained in part (b).

3. [5 points] Show that following function is affine 𝑓(𝒙) =∥ 𝒙 − 𝒄 ∥2 − ∥ 𝒙 − 𝒅 ∥2 , by showing it can be


expressed as 𝒂𝑻 𝒙 + 𝑣 . Here, c and d are fixed vectors. Hint: recall, 𝑣 𝑇 𝑣 =∥ 𝑣 ∥2

You might also like