Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
OrthogonalMatrixQ
  • See Also
    • UnitaryMatrixQ
    • OrthogonalMatrix
    • Orthogonalize
    • Normalize
    • SymmetricMatrixQ
    • HermitianMatrixQ
    • AntisymmetricMatrixQ
    • AntihermitianMatrixQ
    • Transpose
  • Related Guides
    • Matrix Predicates
    • See Also
      • UnitaryMatrixQ
      • OrthogonalMatrix
      • Orthogonalize
      • Normalize
      • SymmetricMatrixQ
      • HermitianMatrixQ
      • AntisymmetricMatrixQ
      • AntihermitianMatrixQ
      • Transpose
    • Related Guides
      • Matrix Predicates

OrthogonalMatrixQ[m]

gives True if m is an explicitly orthogonal matrix, and False otherwise.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Basic Uses  
Special Matrices  
Rectangular Semi-orthogonal Matrices  
Options  
Normalized  
SameTest  
Tolerance  
Applications  
Sources of Orthogonal Matrices  
Uses of Orthogonal Matrices  
Properties & Relations  
Possible Issues  
Neat Examples  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • UnitaryMatrixQ
    • OrthogonalMatrix
    • Orthogonalize
    • Normalize
    • SymmetricMatrixQ
    • HermitianMatrixQ
    • AntisymmetricMatrixQ
    • AntihermitianMatrixQ
    • Transpose
  • Related Guides
    • Matrix Predicates
    • See Also
      • UnitaryMatrixQ
      • OrthogonalMatrix
      • Orthogonalize
      • Normalize
      • SymmetricMatrixQ
      • HermitianMatrixQ
      • AntisymmetricMatrixQ
      • AntihermitianMatrixQ
      • Transpose
    • Related Guides
      • Matrix Predicates

OrthogonalMatrixQ

OrthogonalMatrixQ[m]

gives True if m is an explicitly orthogonal matrix, and False otherwise.

Details and Options

  • A p×q matrix m is orthogonal if p≥q and Transpose[m].m is the q×q identity matrix, or p≤q and m.Transpose[m] is the p×p identity matrix.
  • OrthogonalMatrixQ works for symbolic as well as numerical matrices.
  • The following options can be given:
  • Normalized Truetest if matrix columns are normalized
    SameTest Automaticfunction to test equality of expressions
    Tolerance Automatictolerance for approximate numbers
  • For exact and symbolic matrices, the option SameTest->f indicates that two entries aij and bij are taken to be equal if f[aij,bij] gives True.
  • For approximate matrices, the option Tolerance->t can be used to indicate that the norm γ=m.mT-In∞ satisfying γ≤t is taken to be zero where In is the identity matrix.

Examples

open all close all

Basic Examples  (2)

Test if a 2×2 numeric matrix is orthogonal:

Test if a 3×3 symbolic matrix is orthogonal:

Verify the condition TemplateBox[{m}, Transpose].m=I by hand:

Scope  (14)

Basic Uses  (6)

Test if a real matrix is orthogonal:

A real orthogonal matrix is also unitary:

Test if a complex matrix is orthogonal:

This matrix satisfies TemplateBox[{m}, Transpose].m=I:

A complex-valued orthogonal matrix is not unitary:

Test if an exact matrix is orthogonal:

Make the matrix orthogonal:

Use OrthogonalMatrixQ with arbitrary-precision matrix:

A random matrix is typically not orthogonal:

Use OrthogonalMatrixQ with a symbolic matrix:

The matrix becomes orthogonal when and :

OrthogonalMatrixQ works efficiently with large numerical matrices:

Special Matrices  (4)

Use OrthogonalMatrixQ with sparse matrices:

Use OrthogonalMatrixQ with structured matrices:

The identity matrix is orthogonal:

HilbertMatrix is not orthogonal:

Rectangular Semi-orthogonal Matrices  (4)

Test if a rectangular matrix is semi-orthogonal:

As there are more columns than rows, this indicates that the rows are orthonormal:

The columns are not orthonormal:

Test a matrix with more rows than columns:

The columns of the matrix are orthonormal:

The rows are not orthonormal:

Generate a random orthogonal matrix:

Any subset of its rows forms a rectangular semi-orthogonal matrix:

As does any subset of its columns:

Rectangular identity matrices are semi-orthogonal:

Options  (4)

Normalized  (2)

Symbolic orthogonal matrix columns are often not normalized to 1:

Avoid testing if the columns are normalized:

Multiply the second column of an orthogonal matrix by 2:

OrthogonalMatrixQ with NormalizedFalse will still give True for m:

However, it will not give true for Transpose[m]:

This is because TemplateBox[{m}, Transpose].m is a diagonal matrix, but m.TemplateBox[{m}, Transpose] is not:

SameTest  (1)

This matrix is orthogonal for a positive real , but OrthogonalMatrixQ gives False:

Use the option SameTest to get the correct answer:

Tolerance  (1)

Generate an orthogonal real-valued matrix with some random perturbation of order 10-13:

q.q is not exactly zero outside the main diagonal:

Adjust the option Tolerance for accepting the matrix as orthogonal:

Tolerance is applied to the following value:

Applications  (10)

Sources of Orthogonal Matrices  (5)

Any orthonormal basis for TemplateBox[{}, Reals]^n forms an orthogonal matrix:

The basis is orthonormal:

Putting the basis vectors in rows of a matrix forms an orthogonal matrix:

Putting them in columns also gives an orthogonal matrix:

Orthogonalize applied to real, linearly independent vectors generates an orthogonal matrix:

The matrix does not need to be square, in which case the resulting matrix is semi-orthogonal:

But the starting matrix must have full rank:

Any rotation matrix is orthogonal:

Any permutation matrix is orthogonal:

Matrices drawn from CircularRealMatrixDistribution are orthogonal:

Uses of Orthogonal Matrices  (5)

Orthogonal matrices preserve the standard inner product on TemplateBox[{}, Reals]^n. In other words, if is orthogonal and and are vectors, then :

This means the angles between the vectors are unchanged:

Since the norm is derived from the inner product, norms are preserved as well:

Any orthogonal matrix represents a rotation and/or reflection. If the matrix has determinant , it is a pure rotation. If it the determinant is , the matrix includes a reflection. Consider the following matrix:

It is orthogonal and has determinant :

Thus, it is a pure rotation; the Cartesian unit vectors and maintain their relative positions:

The following matrix is orthogonal but has determinant :

Thus, it includes a reflection; the Cartesian unit vectors and reverse their relative positions:

Orthogonal matrices play an important role in many matrix decompositions:

The matrix is always orthogonal for any nonzero real vector :

is called a Householder reflection; as a reflection, its determinant is :

It represents a reflection through a plane perpendicular to , sending to :

Any vector perpendicular to is unchanged by :

In matrix computations, is used to set to zero selected components of a given column vector :

Find the function satisfying the following differential equation:

Represent the cross-product with by means of multiplication by the antisymmetric matrix :

Compute the exponential and use it to define a solution to the equation:

Verify that satisfies the differential equation and initial condition:

The matrix is orthogonal for all values of :

Thus, the orbit of the solution is at a constant distance from the origin, in this case a circle:

Properties & Relations  (14)

A matrix is orthogonal if m.Transpose[m]IdentityMatrix[n]:

For an approximate matrix, the identity is approximately true:

The inverse of an orthogonal matrix is its transpose:

Thus, the inverse and transpose are orthogonal matrices as well:

A real orthogonal matrix preserves the standard inner product of vectors in TemplateBox[{}, Reals]^n:

As a consequence, real orthogonal matrices preserve norms as well:

Any real-valued orthogonal matrix is unitary:

But a complex unitary matrix is typically not orthogonal:

Products of orthogonal matrices are orthogonal:

A real-valued orthogonal matrix is normal:

A complex-valued orthogonal matrix need not be normal:

Real-valued orthogonal matrices have eigenvalues that lie on the unit circle:

Use Eigenvalues to find eigenvalues:

Verify they lie on the unit circle:

This does not apply to complex-valued orthogonal matrices:

Real orthogonal matrices have a complete set of eigenvectors:

As a consequence, they must be diagonalizable:

Use Eigenvectors to find eigenvectors:

A complex orthogonal matrix can fail to be diagonalizable:

The singular values are all 1 for a real orthogonal matrix:

This need not be true for a complex orthogonal matrix:

The determinant of an orthogonal matrix is 1 or :

The 2-norm of a real orthogonal matrix is always 1:

This need not be true for complex orthogonal matrices:

Integer powers of orthogonal matrices are orthogonal:

MatrixExp[m] for real antisymmetric m is both orthogonal and unitary:

For complex antisymmetric m, the exponential is orthogonal but not, in general, unitary:

OrthogonalMatrix can be used to explicitly construct orthogonal matrices:

These satisfy OrthogonalMatrixQ:

Possible Issues  (1)

OrthogonalMatrixQ uses the definition TemplateBox[{m}, Transpose].m=I_n for both real- and complex-valued matrices:

These complex matrices need not be normal or possess many properties of real orthogonal matrices:

UnitaryMatrixQ tests the more common definition TemplateBox[{m}, ConjugateTranspose].m=I_n that ensures a complex matrix is normal:

Alternatively, test if the entries are real to restrict to real orthogonal matrices:

Neat Examples  (1)

Rotation matrices are orthogonal:

See Also

UnitaryMatrixQ  OrthogonalMatrix  Orthogonalize  Normalize  SymmetricMatrixQ  HermitianMatrixQ  AntisymmetricMatrixQ  AntihermitianMatrixQ  Transpose

Related Guides

    ▪
  • Matrix Predicates

History

Introduced in 2014 (10.0)

Wolfram Research (2014), OrthogonalMatrixQ, Wolfram Language function, https://reference.wolfram.com/language/ref/OrthogonalMatrixQ.html.

Text

Wolfram Research (2014), OrthogonalMatrixQ, Wolfram Language function, https://reference.wolfram.com/language/ref/OrthogonalMatrixQ.html.

CMS

Wolfram Language. 2014. "OrthogonalMatrixQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OrthogonalMatrixQ.html.

APA

Wolfram Language. (2014). OrthogonalMatrixQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OrthogonalMatrixQ.html

BibTeX

@misc{reference.wolfram_2025_orthogonalmatrixq, author="Wolfram Research", title="{OrthogonalMatrixQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/OrthogonalMatrixQ.html}", note=[Accessed: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2025_orthogonalmatrixq, organization={Wolfram Research}, title={OrthogonalMatrixQ}, year={2014}, url={https://reference.wolfram.com/language/ref/OrthogonalMatrixQ.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English