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.
Orthogonal Matrix Checker
Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)
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.