Jonathan Jones jej1997 12
Week 2 Problem 2.1.15
http://twri.tamu.edu/~jjones/math311/2.1.15.html

> with(linalg[matrix]):

(2.1.15) Let u1 = (1, 2, 3) and u2 = (3, 2, 1).

(a) Express w= (4, 4, 4) as a linear combination of u1 and u2.

A quick glance at the vectors reveals that wis just the sum of u1 and u2.

> u[1] = [1, 2, 3]; u[2] = [3, 2, 1]; w = u[1] + u[2]; subs({%%, %%%}, %);

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

(b) Find an example of a vector in R3that is notequal to a linear combination of u1 and u2.

One vector that isn't a linear combination of u1 and u2 is their cross product; this vector is perpendicular to both, so it can't be expressed as the sum of multiples of u1 and u2.

> v = cross([1, 2, 3], [3, 2, 1]);

[Maple Math]