Dr. Sarah's Maple Commands and Polya's How to Solve it for Problem Set 1
I will post on ASULearn answers to select questions I receive via messaging or in office hours. Be sure to carefully follow the guidelines and both the online and book directions in order to receive full credit. Also see the Maple Tips. Print Maple and/or show by-hand work, and annotate with your reasoning. Reviewing class notes and Exercise Solutions that are on ASULearn will often help you with problem sets.Execute at the Start of Every 2240 Maple
> with(plots): with(LinearAlgebra):
Plotting a System of Equations
> implicitplot({2*x+4*y=2,5*x-3*y=1}, x=-1..1, y=-1..1);
> implicitplot3d({x+2*y+3*z=3,2*x-y-4*z=1,x+y+z=2},x=-4..4,y=-4..4,z=-4..4);
Augmented Matrix and Gauss-Jordan (or Reduced Row Echelon) Form
> A:=Matrix([[-1,2,1,-1],[2,4,-7,-8],[4,7,-3,3]]); ReducedRowEchelonForm(A);
Hence we see that the solutions are a point that the 3 planes intersect in: (195/83, -15/83, 142/83).
Gaussian (or Row Echelon) Form
Note that if there are unknown variables in the matrix, we should use GaussianElimination instead.
> P:=Matrix([[1,3,4,k],[2,8,9,0],[10,10,10,5],[5,5,5,5]]); GaussianElimination(P);
Analysis will show that this is impossible - the 4th row tells us 0x+0y+0z=5/2, which is impossible. The 4 planes don't have a concurrent intersection.
Notice that there are three different systems with 3 variables above. The first (implicitplot3d) has infinite solutions, the second (ReducedRowEchelonForm) has 1 unique solution, and this last one has 0 solutions.