2
$\begingroup$

Somebody hinted that one can solve a system of equations with some method of rotation. This is only needed for numeric solutions, otherwise Gauss-Jordan (RREF) is just fine.

What is this rotation about?

$\endgroup$
1
  • $\begingroup$ That would be either QR decomposition (which is doable with rotation matrices), or the eigendecomposition of a matrix with Jacobi's algorithm. Both are more expensive than Gaussian elimination, which remains applicable for numerical solutions as long as you pivot. $\endgroup$ Sep 19, 2011 at 16:21

1 Answer 1

1
$\begingroup$

It's called a Givens rotation. Similarly to Gaussian elimination, you can use a Givens rotation to eliminate a variable from a system of linear equations.

The basic idea is to find a 2D rotation matrix that will rotate a coefficient in the linear system to lie on the x-axis, thus eliminating it.

Note that this method is not trivially immune to numerical problems. If you directly compute the rotation angle, then you may have continuity issues. If you instead compute cos(alpha) and sin(alpha), you may risk division by zero if the radius is too small. Here is a numerically stable way to compute the rotation.

Givens rotations are also used for computing a QR decomposition: the triangular R is created by a series of eliminations by Givens rotations. Q is simply the product of all the rotation matrices, which are orthogonal.

$\endgroup$
2
  • 1
    $\begingroup$ Explicitly determining the rotation angle is never the right way. See this, for instance. $\endgroup$ Dec 27, 2011 at 10:29
  • 1
    $\begingroup$ Also, you have the convention backwards. $\mathbf Q$ is the orthogonal factor (it's supposed to be $\mathbf O$, but seeing that "O" often gets confused with "0"...) and $\mathbf R$ is the upper triangular (or "right triangular") factor. $\endgroup$ Dec 27, 2011 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.