Sec1-1-PlotLinSys.mws

Linear Algebra Powertool

Plotting Systems of Linear Systems in 2 & 3 Variables

Worksheet by Russell Blyth

Systems of two linear equations in two variables can have one of three solution types

> with(plots);

Warning, the name changecoords has been redefined

[animate, animate3d, animatecurve, arrow, changecoo...
[animate, animate3d, animatecurve, arrow, changecoo...
[animate, animate3d, animatecurve, arrow, changecoo...
[animate, animate3d, animatecurve, arrow, changecoo...
[animate, animate3d, animatecurve, arrow, changecoo...

Two intersecting lines

> implicitplot({x+y=3,x-y=-1},x=-1..3,y=-1..3);

[Maple Plot]

> solve({x+y=3,x-y=-1},{x,y});

{x = 1, y = 2}

Two coinciding lines

> implicitplot({x+y=3,2*x+2*y=6},x=-3..3,y=-3..3);

[Maple Plot]

> solve({x+y=3,2*x+2*y=6},{x,y});

{x = -y+3, y = y}

Two parallel lines

> implicitplot({x+y=3,x+y=1},x=-3..3,y=-3..3);

[Maple Plot]

> solve({x+y=3,x+y=1},{x,y});

Two intersecting planes having a line as solution set

> implicitplot3d({x-3*z=-3,2*x-z=-2},x=-3..3,y=-3..3,z=-3..3,axes=boxed,orientation=[49,64]);

[Maple Plot]

> solve({x-3*z=-3,2*x-z=-2},{x,y,z});

{x = -3/5, z = 4/5, y = y}

Three intersecting planes meeting in a single point

> implicitplot3d({x-3*z=-3,2*x-z=-2,x+2*y=1},x=-3..3,y=-3..3,z=-3..3,axes=boxed,orientation=[17,74]);

[Maple Plot]

> solve({x-3*z=-3,2*x-z=-2,x+2*y=1},{x,y,z});

{y = 4/5, x = -3/5, z = 4/5}

Three planes intersecting in a line is a second possibility (a third is that all three planes coincide)

> implicitplot3d({x-3*z=-3,2*x+2*y-z=-2,x+2*y+2*z=1},x=-3..3,y=-3..3,z=-3..3,axes=boxed,orientation=[-41,74]);

[Maple Plot]

> solve({x-3*z=-3,2*x+2*y-z=-2,x+2*y+2*z=1},{x,y,z});

{x = -3+3*z, y = 2-5/2*z, z = z}

If two of the planes are parallel and do not coincide, then there are no solutions. But there are other ways to have no solutions:

Three planes, not parallel, intersecting pairwise in parallel lines

> implicitplot3d({x-3*z=-3,2*x-5*y-z=-2,x+2*y-5*z=1},x=-3..3,y=-3..3,z=-3..3,axes=boxed,orientation=[17,74]);

[Maple Plot]

> solve({x-3*z=-3,2*x-5*y-z=-2,x+2*y-5*z=1},{x,y,z});

>

>