Starting from:

$30

Homework 1: Matrices, vectors, and norms

CS/ECE/ME 532
Homework 1: Matrices, vectors, and norms

1. Matrix multiplication. The local factory makes widgets and gizmos. Making one widget requires
3 lbs of materials, 4 parts, and 1 hour of labor. Making one gizmo requires 2 lbs of materials, 3 parts,
and 2 hours of labor.
a) Write the information above in a matrix. What do the rows and columns represent?
b) Suppose materials cost $1/lb, parts cost $10 each, and labor costs $100/hr. Write this information in a vector. Write out a matrix-vector multiplication that calculates the total cost of
making widgets and gizmos.
c) Suppose the factory receives an order for 3 widgets and 4 gizmos. Again using matrix multiplication, find the total material, parts, and labor required to fill the order.
d) Calculate the total cost for the order (using, you guessed it, matrix multiplication)
2. Linear dynamical systems. Linear dynamical systems are a popular way of modeling mechanical
and electrical systems. In general, the model takes the form:
x(t + 1) = Ax(t) + Bu(t)
y(t) = Cx(t) + Du(t)
for t = 0, 1, . . . , N
For example, in an engine model, the inputs u(0),u(1), . . . ,u(N) ∈ R
m could represent the throttle,
fuel, and air injected at each timestep and the outputs y(0), y(1), . . . , y(N) ∈ R
k
, could represent
the engine RPM and torque at each timestep. The matrices A, B, C, D characterize the complicated
dependence of the outputs on the inputs and x(0), x(1), . . . , x(N) ∈ R
n are internal state variables.
Note that n might be quite large, even if m and k are small! Find a matrix G that satisfies:



y(0)
.
.
.
y(N)


 = G





x(0)
u(0)
.
.
.
u(N)





where G ∈ R
k(N+1)×(n+m(N+1))
Note that G should only depend on A, B, C, D; it should not contain any u’s, y’s, or x’s.
3. Norm nonnegativity. Suppose f : R
n → R is a function that satisfies the following three properties:
• f(0) = 0 (zero property)
• f(ax) = |a|f(x) for all a ∈ R and x ∈ R
n
(absolute homogeneity)
• f(x + y) ≤ f(x) + f(y) for all x, y ∈ R
n
(triangle inequality)
Use the properties above to prove that f(x) ≥ 0 for all x ∈ R
n
.
4. Norm additivity. Suppose k·ka
and k·kb
are norms on R
n
.
a) Prove that f(x) = kxka + kxkb
is also a norm on R
n
.
b) Sketch the norm ball in R
2
for the norm f(x) = kxk1 + kxk∞.
1 of 1

More products