DGS Studio

Matrix Transformations & Linear Algebra

3D Rotation Around Z

A quarter turn about the z-axis. The original shape stays visible in the 3D viewer.

matrix_transform_3d([[0,-1,0],[1,0,0],[0,0,1]]) rotates space a quarter turn about the z-axis. The column (1, 0, 0) moves to (0, 1, 0), and the z-axis is fixed.

The same 3D viewer draws the original shape as a transparent reference and the rotated shape in another color. Orbit with a drag or a touch, and zoom with the wheel or a pinch. This map is linear.

Equation

matrix_transform_3d([[0,-1,0],[1,0,0],[0,0,1]])

How the matrix is drawn

Matrix transformation examples draw a linear or affine map on the graph board. A 2×2 command uses the flat JSXGraph board. A 3×3 or 4×4 command uses the existing 3D viewer, with the original shape kept as a transparent reference. The rule is column vectors: the matrix multiplies on the left.

Eigenvector pictures reuse the same eigenvalue routine as Solve Equation and only draw real directions. SVD pictures reuse the existing factorization. The animation is a straight path from the identity to the target, or the three SVD stages, and a singular matrix is shown rather than rejected. Generate Graph is the action that opens each of these scenes.

Reading the input

Try a change

Generate Graph opens this command on the matrix board. A 2×2 scene uses JSXGraph. A 3×3 or 4×4 scene uses the existing 3D viewer, including its camera and export path. Play, pause, and reset stay with the scene.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples