Docsity

Minimum Length Solutions - Matrix Analysis | MATH 410, Assignments of Mathematics

Toggle sidebar
bg1
Math 410 (Prof. Bayly) MINIMUM-LENGTH SOLUTIONS Summer 2005
The fundamental theorem of finite-dimensional linear algebra is that a system of simulta-
neous linear equations has either no solutions, one unique solution, or an infinite number
of solutions. When an infinite number of solutions exist, an application-minded person
would ask ”Which one is the best?” It is often practical to ask, if there are several ways
to solve a problem, which one does so in the most efficient or optimal way?
To quantify the concept of quality, we often define a ”utility function” for which bigger
values are better, or a ”cost function” for which smaller values are more desirable. Finding
the best is then to determine the solution that either maximizes the utility or minimizes the
cost. In a real-world situation these functions depend on the situation, and the problem of
finding the optimum can be quite complicated. There is a lot of current research activity
on efficient techniques for finding optimum solutions. (Visit some of the Systems and
Industrial Engineering professors!)
In Mathematics we’re allowed to consider simple questions first, and in the context of
linear algebra it’s natural to define the ”cost” of a vector as simply its length. It turns out
that the problem of finding the minimum-length solution to a system that has infinitely-
many solutions is solvable but not trivial. The answer ends up not only being a lot more
useful than you might initially think for such a simplistic cost function, but we also learn
some interesting mathematics. We’ll see minimum-length solutions reappear in a different
context in our later discussions of the Singular Value Decomposition and its applications.
Example 1. The most direct way to find the minimum-length solution of a system of
equations is to find the general solution first, and then seek the one with minimum length.
For example, consider A~x =~
b, with
A=1 3 2
2 1 −1, ~x =
x
y
z
,~
b=−1
3.(1a)
We quickly find the solution family
~x =
2 + z
−1−z
z
=
2
−1
0
+z
1
−1
1
=~xp+z~n, (1b)
where ~xpdenotes the particular solution and ~n the null vector.
The length of the solution vector is a function of the free variable:
L(z) = (2 + z)2+ (−1−z)2+z21/2=3z2+ 6z+ 51/2.(2a)
pf3
pf4
pf5

Partial preview of the text

Download Minimum Length Solutions - Matrix Analysis | MATH 410 and more Assignments Mathematics in PDF only on Docsity!

Math 410 (Prof. Bayly) MINIMUM-LENGTH SOLUTIONS Summer 2005

The fundamental theorem of finite-dimensional linear algebra is that a system of simulta- neous linear equations has either no solutions, one unique solution, or an infinite number of solutions. When an infinite number of solutions exist, an application-minded person would ask ”Which one is the best?” It is often practical to ask, if there are several ways to solve a problem, which one does so in the most efficient or optimal way?

To quantify the concept of quality, we often define a ”utility function” for which bigger values are better, or a ”cost function” for which smaller values are more desirable. Finding the best is then to determine the solution that either maximizes the utility or minimizes the cost. In a real-world situation these functions depend on the situation, and the problem of finding the optimum can be quite complicated. There is a lot of current research activity on efficient techniques for finding optimum solutions. (Visit some of the Systems and Industrial Engineering professors!)

In Mathematics we’re allowed to consider simple questions first, and in the context of linear algebra it’s natural to define the ”cost” of a vector as simply its length. It turns out that the problem of finding the minimum-length solution to a system that has infinitely- many solutions is solvable but not trivial. The answer ends up not only being a lot more useful than you might initially think for such a simplistic cost function, but we also learn some interesting mathematics. We’ll see minimum-length solutions reappear in a different context in our later discussions of the Singular Value Decomposition and its applications.

Example 1. The most direct way to find the minimum-length solution of a system of equations is to find the general solution first, and then seek the one with minimum length. For example, consider A~x = ~b, with

A =

, ~x =

x y z

 (^) , ~b =

. (1a)

We quickly find the solution family

~x =

2 + z − 1 − z z

 (^) + z

 (^) = ~xp + z~n, (1b)

where ~xp denotes the particular solution and ~n the null vector.

The length of the solution vector is a function of the free variable:

L(z) =

[

(2 + z)^2 + (− 1 − z)^2 + z^2

] 1 / 2

[

3 z^2 + 6z + 5

] 1 / 2

. (2a)

It’s a simple Calculus exercise to minimize L(z) by finding the derivative

L′(z) =

[

3 z^2 + 6z + 5]

]− 1 / 2

(6z + 6), (2b)

setting it to zero and solving for z = −1. Therefore the minimum-length solution is

~xml =

One thing to notice is that when we solved for the value of z at which L′^ = 0, all we did was set 6z + 6 = 0, which is the derivative of the length squared L^2 (z) = 3z^2 + 6z + 5. In retrospect it’s clear that minimizing L^2 is equivalent to minimizing L, and we don’t have to bother with the square root. It’s also worth noting that L^2 is a simple quadratic, and the derivative of L^2 is a linear function of z, so it’s very easy to find the minimum.

Example 2. Let’s apply these observations to A~x = ~b, where ~x = ( x y z )T^ again,

A = ( 1 1 −2 ), and ~b = ( 3 ). Now the solution family has two free variables and corresponding null vectors:

~x =

3 − y + 2z y z

 (^) + y

 (^) + z

 (^) = ~xp + y~n 1 + z~n 2. (4)

The length squared function is

L^2 (y, z) = (3 − y + 2z)^2 + y^2 + z^2 = 2y^2 − 4 yz + 5z^2 − 6 y + 12z + 9. (5a)

To find the minimum we calculate the partial derivatives of L^2 with respect to both y, z, and set both equal to zero. Explicitly

∂L^2 ∂y

= 4y − 4 z − 6 ,

∂L^2

∂z

= − 4 y + 10z + 12. (5b)

Setting these to zero and solving yields y = 1/2, z = −1. Therefore the minimum-length solution is

~xml =

Note again that L^2 is again a simple quadratic (albeit in two variables), its partial deriva- tives are linear functions, and finding the minimizing values of the free variables is just solving a pair of simultaneous linear equations.

matrix-vector multiplication simply consists of dot-multiplying the row vectors of A with the column vector ~n. So each row vector of A dotted with the null vector ~n gives zero, i.e. the null vector is orthogonal to each row vector of A. Or, since we often prefer to think of column vectors, each null vector of A is orthogonal to each column vector of AT^.

The conclusion of the previous paragraph can be restated as saying that each column vector of AT^ is orthogonal to each null vector of A. It turns out, via a somewhat nontrivial proof†, that any vector that is orthogonal to each null vector of A must be a linear combination of the column vectors of AT^.

The implication is that ~xml must be a linear combination of the column vectors of AT^. It’s clearly the case in our second example, where ~xml = 12 AT^ , and you can check that in the first example ~xml is − 1 /5 times the first column of AT^ plus 3/5 times the second. We can use this fact to get a practical and efficient way to find minimum length solutions in general.

Practical method. An algebraic way to express the fact that the minimum length so- lution is a linear combination of the column vectors of AT^ is ~xml = AT^ ~u, where the components of ~u are the coefficients in the desired linear combination. Since the original problem was A~x = ~b, with ~xml being simply the shortest possible solution, the coeffi- cient vector ~u must satisfy A(AT^ ~u) = ~b. Or, using the associative property of matrix multiplication, (AAT^ )~u = ~b. (10)

Therefore, if (10) can be solved for ~u, all we need to do is multiply ~u by AT^ to obtain the minimum length solution ~xml. No calculus, no free variables or null vectors! We still have to solve a linear system, and do a couple of extra multiplications, but conceptually at least we have a much simpler procedure.

Let’s see how it works. In example 1, AAT^ =

, so the system (10) becomes

( 14 3 3 6

u v

, theref ore

u v

These are exactly the coefficients that we observed above give ~xml as a combination of the columns of AT^ , or more concisely,

~xml =

 (^) = AT^ ~u =

† There’s magic going on here, folks, and one of the rewards of studying rigorous pure mathematics is the power you acquire to wield that magic.

Example 2 goes even faster. AAT^ = (6), so (10) is nothing but the scalar equation 6u = 3, whose solution u = 1/2 is the desired multiple we identified above.

To summarize, a practical way to find the minimum length solution of A~x = ~b is:

(1) Calculate AAT^ ,

(2) Solve AAT^ ~u = ~b for ~u,

(3) Calculate ~xml = AT^ ~u.

NOTE: On homework and/or exams we may have you derive the general solution to A~x = ~b, with free variables and null vectors, as the first part of a problem, and ask you to find the min length solution for the second part. Or we might actually give you the general solution as part of the problem. If so, i.e. if you already have the general solution, it might be less work to use the calculus approach, especially if there is only one free variable. We advise you to become expert with both techniques, so that you can choose the best method under any circumstances.

Remarks. You may wonder whether the new linear system AAT^ ~u = ~b has no solutions, one unique solution, or an infinite number of solutions. It turns out (if you do the rigorous

theory) that if the original system A~x = ~b has at least one solution, then so does AAT^ ~u = ~b. However it is quite possible for AAT^ ~u = ~b to have an infinite number of solutions for ~u, for example if

A =

, ~b =

then

AAT^ =

, theref ore ~u =

1 − 2 v v

  • v

Does this mean that there are infinitely many minimum length solutions? That would seem to contradict our expectation that we are finding ”the one” with smallest length. If we follow through to find

~xml = AT^ ~u =

1 − 2 v v

1 − 2 v + 2v 2 − 4 v + 4v −1 + 2v − 2 v

however, we find that the free variable in ~u disappears. It turns out that our expectation is indeed correct; the minimum length solution is always unique even if AAT^ ~u = ~b has an infinite number of solutions.