Solutions

Review Homework

MTHE / MATH 335 — Winter 2026

Problem 1: First-Order ODE System

Problem 1First-Order ODE System

Express the following differential equation as a system of first-order differential equations in matrix form, by defining x1=yx_1 = y, x2=y(1)x_2 = y^{(1)} and x3=y(2)x_3 = y^{(2)}:

y(3)+5y(2)+5y(1)4y=0.y^{(3)} + 5y^{(2)} + 5y^{(1)} - 4y = 0.

Problem 2: Jordan Form

Problem 2Jordan Form

Find the Jordan form for the following matrices:

a) A1=[5645]A_1 = \begin{bmatrix} 5 & -6 \\ 4 & -5 \end{bmatrix}

b) A2=[101023001]A_2 = \begin{bmatrix} -1 & 0 & 1 \\ 0 & 2 & -3 \\ 0 & 0 & -1 \end{bmatrix}

Hint: You will have to find a generalized eigenvector for part b.

Problem 3: Matrix Exponential Commutativity

Problem 3Matrix Exponential Commutativity

Show that for square matrices AA and BB, which commute, that is

AB=BA,AB = BA,

it follows that

e(A+B)=eAeB.e^{(A+B)} = e^A e^B.

Hint: Recall that eA=limTk=0TAkk!=k=0Akk!e^A = \lim_{T\to\infty} \sum_{k=0}^{T} \frac{A^k}{k!} = \sum_{k=0}^{\infty} \frac{A^k}{k!}. Complete the following:

eAeB=k=0l=0Akk!Bll!e^A e^B = \sum_{k=0}^{\infty} \sum_{l=0}^{\infty} \frac{A^k}{k!} \frac{B^l}{l!}

Also, show and use the fact that (A+B)k=m=0k(km)AmBkm(A + B)^k = \sum_{m=0}^{k} \binom{k}{m} A^m B^{k-m}, when AB=BAAB = BA.

Problem 4: Derivative of Matrix Exponential

Problem 4Derivative of Matrix Exponential

Let AA be a square matrix. Show that ddteAt=AeAt\frac{d}{dt}e^{At} = Ae^{At}.

Problem 5: Computing Matrix Exponential

Problem 5Computing Matrix Exponential

Compute eA1te^{A_1 t}, where A1A_1 is defined as in Problem 2.

Hint: The eigenvalues are 1 and -1. The corresponding eigenvectors are [32]T[3 \quad 2]^T and [11]T[1 \quad 1]^T.

Problem 6: Solving a Differential Equation

Problem 6Solving a Differential Equation

Let

A=[15252545].A = \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix}.

It can be shown that AA has its eigenvalues as 1 and 0 and the eigenvectors are [12]T[1 \quad 2]^T and [21]T[-2 \quad 1]^T.

Now, with AA as given, solve the following differential equation:

x=Ax+[et0],x' = Ax + \begin{bmatrix} e^t \\ 0 \end{bmatrix},

with the initial condition x(0)=[10]x(0) = \begin{bmatrix} 1 \\ 0 \end{bmatrix}.

Problem 7: Matrix Exponential and Direction Fields

Problem 7Matrix Exponential and Direction Fields

Let

A=[abba].A = \begin{bmatrix} a & b \\ -b & a \end{bmatrix}.

Compute eAte^{At}.

Consider now an equation of the form x=Axx' = Ax (with an arbitrary initial condition). Draw the direction field qualitatively for each of the following cases: a>0a > 0, a<0a < 0 and a=0a = 0.

Problem 8: System Stabilization through Control

Problem 8System Stabilization through Control

Consider

dydt=ay(t)+u(t)+r(t)\frac{dy}{dt} = ay(t) + u(t) + r(t)

where aRa \in \mathbb{R} is a scalar, u(t)u(t) is the control input and r(t)r(t) is some disturbance/noise acting on the system. The disturbance is external, that is, the controller has nothing to do with it.

If a>0a > 0, then in the absence of control, the solution to the system is given with

y(t)=eaty(0)+0tea(ts)r(s)dsy(t) = e^{at}y(0) + \int_0^t e^{a(t-s)} r(s) ds

In particular, if r(s)=Mr(s) = M for s0s \ge 0 for some constant M>0M > 0, with y(0)=0y(0) = 0, we have that limty(t)=\lim_{t\to\infty} |y(t)| = \infty.

On the other hand, if we apply the control input, using the feedback from the state of the system, by the relation u(t)=Ky(t)u(t) = -Ky(t), this leads to

dydt=(aK)y(t)+r(t)\frac{dy}{dt} = (a - K)y(t) + r(t)

For what values of KK can we guarantee that the output, y(t)y(t), will remain bounded for every bounded signal r(t)r(t)? (By bounded we mean that r=suptR+r(t)<\|r\|_\infty = \sup_{t \in \mathbb{R}_+} |r(t)| < \infty).

Problem 9: Inverted Pendulum

Problem 9Inverted Pendulum

A very useful case study for understanding non-linear systems is the inverted pendulum on a cart system with masses of the pendulum and cart given with mm and MM, respectively.

The dynamics of the inverted pendulum can be expressed with the following:

u=Md2ydt2+md2ydt2+mlcos(θ)d2θdt2ml(dθdt)2sin(θ)u = M\frac{d^2y}{dt^2} + m\frac{d^2y}{dt^2} + ml\cos(\theta)\frac{d^2\theta}{dt^2} - ml\left(\frac{d\theta}{dt}\right)^2\sin(\theta)

ml2d2θdt2=mgsin(θ)lmd2ydt2cos(θ)lml^2\frac{d^2\theta}{dt^2} = mg\sin(\theta)l - m\frac{d^2y}{dt^2}\cos(\theta)l

Around the point (θ=0,dθdt=0)(\theta = 0, \frac{d\theta}{dt} = 0), we apply the linear approximations sin(θ)θ\sin(\theta) \approx \theta and cos(θ)1\cos(\theta) \approx 1, and (dθdt)20\left(\frac{d\theta}{dt}\right)^2 \approx 0 to arrive at the linearized model. Write this in state space form with x1=y,x2=dydt,x3=θ,x4=dθdtx_1 = y, x_2 = \frac{dy}{dt}, x_3 = \theta, x_4 = \frac{d\theta}{dt}.