0% found this document useful (0 votes)
71 views15 pages

The Square and NTH Roots of Square Matrices: Taran Lynn 2014

The document discusses methods for finding the nth roots of matrices. It begins by defining the nth root of a matrix B as a matrix whose nth power equals the original matrix A. It then describes how to find roots of diagonal matrices by taking the nth root of each diagonal entry. The document also discusses using diagonalization or the Jordan normal form to compute roots of diagonalizable matrices, and methods like the Babylonian method. Finally, it notes that matrix roots relate to linear transformations and may have applications in fields like computer graphics.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views15 pages

The Square and NTH Roots of Square Matrices: Taran Lynn 2014

The document discusses methods for finding the nth roots of matrices. It begins by defining the nth root of a matrix B as a matrix whose nth power equals the original matrix A. It then describes how to find roots of diagonal matrices by taking the nth root of each diagonal entry. The document also discusses using diagonalization or the Jordan normal form to compute roots of diagonalizable matrices, and methods like the Babylonian method. Finally, it notes that matrix roots relate to linear transformations and may have applications in fields like computer graphics.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

The Square and nth Roots

√ of Square Matrices
B= A
Taran Lynn
2014∗

Contents
1 Abstract ii

2 Introduction to Matrix Roots 1

3 Roots of Diagonal Matrices 2

4 Finding Roots of Diagonalizable Matrices 4

5 Other Methods for Computing The Roots of Matrices 5


5.1 Calculation by Jordan Normal Form . . . . . . . . . . . . . . . . . . . . . . . . . . 5
5.2 Babylonian Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

6 Matrix Roots and Linear Transformations 8


6.0.1 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

7 Conclusion 12

8 Bibliography 13

Exact date lost due accidental to LaTeX recompilation.

i
Taran Lynn MATH 45 - Steve Jackson 2014

1 Abstract
This paper details methods for finding the nth roots of matrices and their relation to linear
transformations. The nth primary root of matrix A is matrix B that has all positive eigenvalues and
meets the condition that B 2 = A. The main method of computation is through the diagonalization
of matrices. Other methods include using the Jordan normal form and the Babylonian method.
nth roots of matrices can also be used to find linear transformations whose repeated application
to a vector results in a desired linear transformation. This use for finding linear transformations
may have potential applications in computer graphics and other areas of science.

Page ii of 13
Taran Lynn MATH 45 - Steve Jackson 2014

2 Introduction to Matrix Roots


The multiplication of matrices is quite often taught near the beginning of linear algebra courses.
After learning how to multiply row and column vectors it is quite easy to multiply two matrices
together. Each entry in the product of two matrices AB is found by multiplying the corresponding
row of the first matrix A by the corresponding column of the second matrix B. We can expand this
definition and find the square of a square matrix A as that matrix times itself, that is A2 = AA.
We may then wounder if it is possible to reverse this process. Given a matrix A is it possible to
find a matrix B such that B 2 = A? It is logical to interpret such matrices as the square roots of
other matrices and define them thusly.

Definition 1: The Square Root of a Matrix

Let A be an n × n matrix and B be an n × n matrix such that B 2 = A. B is called a


square root of A. Also let A1/2 be the principal square root of A (if it exists). For some
matrices this would be a square root with non-negative eigenvalues.

You may notice my use of the term “the principal square root”. √ For real non-negative numbers
this is the positive square root. For a negative real number x it is i |x|. For matrices this number
becomes much harder to define, as their is no (obvious) guarantee that square roots of a matrix
with non-negative eigenvalues exist. We can also extend the idea of square roots to nth roots.

Definition 2: The nth Root of a Matrix


Let A be an n × n matrix and B be an n × n matrix such that B n = A. B is called an
nth root of A. Also let A1/n be the principal nth root of A (if it exists). For some matri-
ces this would be an nth root with non-negative eigenvalues, where such a matrix would exist.

We can use these ideas of roots to introduce rational powers to matrices. For example let A be
an n × n matrix, then

a, b ∈ Z
a, b > 0
( )a
Aa/b = A1/b

Page 1 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

(( )a )−1
−a/b 1/b
A = A

These powers of square matrices are thus relatively simple to find after finding the matrix’s roots.

3 Roots of Diagonal Matrices


The roots of matrices can be rather complicated to find at first glance, so lets look at the simple
example of diagonal matrices. To understand the patterns behind the roots of diagonal matrices
we should first understand their whole powers. Observe the following solutions.
 
d1 0 · · · 0
 0 d2 · · · 0 
 
D =  .. .. .. 
. . .
0 0 · · · dn
  
d1 0 · · · 0 d1 0 · · · 0
 0 d2 · · · 0   0 d2 · · · 0 
  
D2 =  .. .. ..   .. .. .. 
. . .   . . .
0 0 · · · dn 0 0 · · · dn
( ) 
d21 + 0d1 + · · · + 0d1 ( 0 ) ··· 0
 0 0d2 + d22 + · · · + 0d2 · · · 0 
 
= .. .. .. 
 . . . 
( )
0 0 · · · 0d3 + 0d3 + · · · + dn
2
 
d21 0 · · · 0
 0 d2 · · · 0 
 2 
=  .. .. .. 
. . .
0 0 · · · d2n
  
d1 0 · · · 0 da1 0 · · · 0
 0 d2 · · · 0   0 da · · · 0 
  2 
D a+1
=  .. .. ..   .. .. .. 
. . .  . . .
0 0 · · · dn 0 0 · · · dan

Page 2 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

( ) 
da+1
1 + 0d1 + · · · + 0d1 ( 0 ) ··· 0
 0 0d2 + da+1 + · · · + 0d ··· 0 
 2 2 
= .. .. .. 
 . . . 
( )
0 0 ··· 0dn + 0dn + · · · + da+1
n
 a+1 
d1 0 ··· 0
 0 da+1
··· 0 
 2 
=  .. .. .. 
 . . . 
0 0 ··· da+1
n

Therefore we can find that the following theorem is true


Theorem 1: Roots of Diagonal Matrices
Let D and E be n × n diagonal matrices. Every entry of E is an nth root of a corresponding
entry in D if and only if E is an nth root of D. That is

∀(0 < i ≤ n) : (eai = di ) ⇐⇒ (E a = D)

The following definition is also useful


Definition 3: Primary Root of a Diagonal Matrix
The primary nth root of a diagonal matrix D is a matrix E whose entries are the primary
nth roots of D. That is
 
d1 0 · · · 0
 0 d2 · · · 0 
 
D =  .. .. .. 
. . .
0 0 · · · dn
√ 
a
d1 √0 · · · 0
 0 a
d2 · · · 0 
 
D =  ..
1/a
.. .. 
 . . . 

0 0 ··· a
dn

Page 3 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

4 Finding Roots of Diagonalizable Matrices


Since we know how to find roots of diagonal matrices the next place to look would be diago-
nalizable matrices. Lets start by looking at the powers of diagonalizable matrices. Let D be a
diagonal matrix.

A = P DP −1
A2 = (P DP −1 )(P DP −1 )
= P D(P −1 P )DP −1
= P DIDP −1
= P D2 P −1
A3 = (P D2 P −1 )(P DP −1 )
= P D2 (P −1 P )DP −1
= P D2 IDP −1
= P D3 P −1
..
.
A = (P Dn−1 P −1 )(P DP −1 )
n

= P Dn−1 (P −1 P )DP −1
= P Dn−1 IDP −1
= P Dn P −1

Based on this we could postulate that if A = P DP −1 , B = P EP −1 , and E n = D, where D and E


are diagonal matrices, then B n = A. We can show this to be true.

B = P EP −1
B n = P E n P −1
= P DP −1
=A

We can now state a new theorem.

Theorem 2: Roots of Diagonalizable Matrices

If A = P DP −1 , B = P EP −1 , and E n = D, where D and E are diagonal matrices, then


B n = A.

Page 4 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

We can also add a new definition.

Definition 4: Principal Roots of Diagonalizable Matrices

If A = P DP −1 , where D is a diagonal matrix, then the principal nth root of A is


A1/n = P D1/n P −1 .

5 Other Methods for Computing The Roots of Matrices


5.1 Calculation by Jordan Normal Form
The Jordan normal form (a.k.a. Jordan canonical form) of a matrix A is some special matrix J
that is similar to A, that is A = P JP −1 for some P . If A a is an n × n matrix with eigenvalues
λ1 , λ2 , . . . , λn , then a Jordan matrix similar to it is an n × n matrix
 
J1
 J2 
 
J = . 
 . . 
Js
Where Ji is an mi × mi matrix such that
 
λi 1 ··· 0
0 λi · · · 0 
 
 .. 
Ji =  ... .. . .
. . .
 
0 0 ··· 1
0 0 · · · λi
Every mi for every Ji in J must also add up to n. That is m1 + m2 + · · · + ms = n. Here is an
example
[ ]
1 1
A=
−1 3
[ ][ ][ ]
1 2 2 1 3 −2
=
1 3 0 2 −1 1
[ ]
2 1
J=
0 2

Page 5 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

We can use a similar approach to the one we used with diagonalization to find the following
theorem to be true

Theorem 3
If an n × n matrix A is similar to E, an n × n matrix B is similar to F , F is an nth root
of E, and A and B have the same similarity matrix P , then B is an nth root of A. A more
direct notation for this is
( )
A = P EP −1 ∧ B = P F P −1 ∧ F n = E =⇒ (B n = A)

Jordan forms are a special case of this, where if A = P JP −1 and B = P J 1/n P −1 , then
B n = A.

We can also find that an n × n Jordan matrix J taken to the ath power is equal to its Jordan
blocks taken to the ath power. That is
 
J1
 J2 
 
J = .. 
 . 
Js
 
J1a
 J2a 
 
Ja =  ... 
 
a
Js

and we have our next theorem.


Theorem 4
Let J is an n × n Jordan matrix with Jordan blocks J1 , . . . Js , and D is a diagonal block
matrix with blocks D1 , . . . , Ds such that Din = Ji for all 1 ≤ i ≤ s. It must then be true
that Dn = J. D is thus an nth root of J.

Page 6 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

Coupled with the fact that any matrix is similar to some Jordan matrix this makes it easy to
find roots of non-diagonalizable matrices. To see why this is true we can square a matrix
[ ]
a b
A=
0 a
[( ) ]
2
a + 0 (ab
( 2 + ab)
)
A2 =
0 a +0
[ ]
a2 2ab
=
0 a2
So if we take
A2 = B
[ ]
c 1
B=
0 c
then
a2 = c

a= c
2ab = 1
1
b=
2a
1
= √
2 c
[√ ( √ )]
c 1/ √2 c
A=
0 c
We can now find square roots of any square matrix with eigenvalues that have a maximum duplicity
of 2, since we can find the square root of its Jordan matrix. Note that the previous case only works
for matrices with one unique eigenvalue. This doesn’t matter, however, since matrices with two
unique eigenvalues can already be diagonalized. Similar methods can be used for higher order
matrices and roots.

5.2 Babylonian Method


The Babylonian method is an iterative method used to calculate the square roots of real numbers,
and is given as
x∈R

Page 7 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

x≥0
a0 ≈ x
( )
1 x
an+1 = an +
2 an

lim an = x
n→∞

A similar approach for matrices is

X ∈ Rn
A0 = In
( )
1 X
An+1 = An +
2 An
lim An = X 1/2
n→∞

This method is very volatile and can diverge from the square root under many circumstances.
These circumstances are very hard to predict. However, this method is also very fast since it
requires only a few operations each iteration.

6 Matrix Roots and Linear Transformations


One application of the roots of matrices is in conjunction with linear transformations. Imagine
this scenario, a programmer has a linear transformation applied to a figure in a video game. The
programmer might then want to animate this transformation. To do this he/she would need to
apply several linear transformations to the figure which culminate in the final transformation. To
have a smooth animation we would also want the sub-transformations to be the same. We can
simulate this with two linear transformations T : R2 7→ R2 and S : R2 7→ R2 , with T (⃗x) = A⃗x
and S(⃗x) = B⃗x. Now lets say we wanted ⃗x to map to T (⃗x) when S was applied to it 5 times. We
would find that
( ( ))
( ( ))
S S S S S (⃗x) = T (⃗x)
( ( ))
( ( ))
B B B B B (⃗x) = A⃗x

B 5⃗x = A⃗x

Page 8 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

B5 = A

Thus B is a 5th root of A.


In general we find that if

T : Rn 7→ Rn
T (⃗x) = A⃗x
S : Rn 7→ Rn
S(⃗x) = A1/n⃗x

then
( ( ( ))
)) (
S S · · · S (⃗x) = A 1/n
A1/n
· · · A (⃗x)
1/n

= (A1/n )n⃗x
= A⃗x
= T (⃗x)

And so we can find a transformation S that when applied to ⃗x n times results in T (⃗x).

6.0.1 Example
It would probably be helpful to demonstrate this effect in action.

T : R2 7→ R2
T (⃗x) = A⃗x
[ ]
2 −1
A=
1 2
[ ][ ][ ]
1 1 2−i 0 0.5 −0.5i
=
i −i 0 2 + i 0.5 0.5i

Page 9 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

y 3

~x
1
T (~x)

0
−1 0 1 2
x

−1

S : R2 7→ R2
A(⃗x) = A1/10⃗x
[ ]
2 −1
A1/10 =
1 2
[ ][ ]1/10 [ ]
1 1 2−i 0 0.5 −0.5i
=
i −i 0 2+i 0.5 0.5i
[ ][ ]1/10 [ ]
1 1 1.08263 − 0.05023i 0 0.5 −0.5i
=
i −i 0 1.08263 + 0.05023i 0.5 0.5i
[ ]
1.082634 −0.050232
=
0.050232 1.082634

Page 10 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

y 3

~x
2 S 1 (~x)
S 2 (~x)
S 3 (~x)
S 4 (~x)
1 S 5 (~x)
S 6 (~x)
S 7 (~x)
S 8 (~x)
0 S 9 (~x)
−1 0 1 2 S 10 (~x) = T (~x)
x

−1

As you can see the series of linear transformations S n forms a smooth path for the vector ⃗x to
travel along, giving rise to potential uses in graphics computing and physics. We can see this path
by connecting the intermediate vectors.

Page 11 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

y 3

1 Path of transformations of S n (~x)

0
−1 0 1 2
x

−1

7 Conclusion
As we can see it is rather simple to calculate the roots of many matrices. This includes matrices
that are diagonalizable or converge under the Babylonian method. For other matrices we would
have to use the Jordan normal form or other methods that are beyond the the authors current
level of mathematics. Using these methods we can reverse most formulas that use the square of a
matrix. We can also estimate the path that a vector takes when a linear transformation is applied
to it. The topic of matrix roots is not usually taught in first year linear algebra classes, and so I
hope that this paper will prove useful to be a useful guide to the roots of matrices.

Page 12 of 13
Taran Lynn MATH 45 - Steve Jackson 2014

8 Bibliography
References
[1] Jean Gallier. Logarithms and Square Roots of Real Matrices Existence, Uniqueness, and Ap-
plications in Medical Imaging. report. University of Pennsylvania, Oct. 21, 2013.
[2] Eric Jarman. Nth Roots of Matrices. thesis. University of Central Missouri, June 2012.
[3] Sam Northshield. Square Roots of 2x2 Matrices. report. Plattsburgh State Univ.

Page 13 of 13

You might also like