Loading…

Orthogonal Matrix Checker

Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)

View all topics

Check whether a square matrix \(Q\) is orthogonal by testing \(Q^{\mathsf T}Q=I\). Also compute an orthonormal basis from the columns of \(Q\) using the full Gram–Schmidt process and return a QR-style output.

Matrix \(Q\)
Columns are treated as the vectors to orthonormalize.
Inputs accept -3.5, 2e-4, fractions 7/3, and constants pi, e.
Ready
Results
Orthogonal?
\(\lVert Q^{\mathsf T}Q-I\rVert_F\)
\(\det(Q)\)
Interpretation
\(Q^{\mathsf T}Q\)
\(\Delta = Q^{\mathsf T}Q - I\)
Gram–Schmidt orthonormal matrix \(\hat{Q}\)
Upper triangular \(R\) (QR link: \(Q \approx \hat{Q}R\))
If \(Q\) is orthogonal, then \(Q^{-1}=Q^{\mathsf T}\). If \(\det(Q)\approx 1\), it behaves like a rotation; if \(\det(Q)\approx -1\), a reflection.
Graph
2×2 only. Zoom with wheel/trackpad, drag to pan, double-click to reset view. Click Play to animate Gram–Schmidt.
Step-by-step
Enter \(Q\) and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does it mean for a matrix to be orthogonal?

A matrix Q is orthogonal if Q^T Q = I, meaning its columns are orthonormal and it preserves lengths and angles.

Why can Q^T Q be close to I but not exactly I?

Floating-point rounding and entered decimals make exact equality unlikely. The calculator uses a tolerance and reports ||Q^T Q − I||_F.

What does det(Q) tell me?

If Q is orthogonal, det(Q) is approximately ±1. det(Q)≈1 suggests rotation-like behavior, while det(Q)≈−1 suggests reflection-like behavior.

Why can Gram–Schmidt produce a zero vector?

That happens when a column is linearly dependent on previous columns. The algorithm detects near-zero norms and marks the set as dependent.