Linear Transformations in the Plane

The graph below shows the result of the linear transformation represented by the matrix A on a square whose vertices are at (1,1), (1,-1), (-1,-1), and (-1,1).  You can change the entries in A and observe the effect on the square.  How must you change A so that the resulting figure is still a square?  What changes to A result in a one-dimensional figure (line)?

If the page gets hopelessly messed up, or if you would like to go back to the original square, simply hit the "Reload" (or "Refresh") button on your browser.