# What is a quadratic matrix to the 0th power?

**URL:** <https://community.wolfram.com/t/what-is-a-quadratic-matrix-to-the-0th-power/17137>\
**Category:** Questions\
**Tags:** algebra\
**Created:** [December 5, 2020, 2:31am UTC](https://community.wolfram.com/t/what-is-a-quadratic-matrix-to-the-0th-power/17137 "2020-12-05T02:31:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiwee](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kiwee/32/9383_2.png) [@kiwee](https://community.wolfram.com/u/kiwee)\
**Post date:** [December 5, 2020, 2:31am UTC](https://community.wolfram.com/t/what-is-a-quadratic-matrix-to-the-0th-power/17137/1 "2020-12-05T02:31:03Z")

</div>

m^0 should be the [identity matrix](https://mathworld.wolfram.com/MatrixPower.html). but most of my test matrices return a 0^0 Indeterminate error .

```
m={{1,-\[Sqrt]3,0},{\[Sqrt]3,-1,0},{0,0,1}};
m^0

```

I am just wondering what’s going on here.  
Where I encountered this funny behavior:  
I want to check if the infinite power series of a matrix returns the MatrixExp[]. The series starts with the 0th power.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [December 5, 2020, 2:55am UTC](https://community.wolfram.com/t/what-is-a-quadratic-matrix-to-the-0th-power/17137/2 "2020-12-05T02:55:21Z")

</div>

Hi Raspi,

`m^0` raises each element of the matrix to the power `0`, which causes the `Indeterminate`. Use [`MatrixPower`](http://reference.wolfram.com/language/ref/MatrixPower.html).

```
MatrixPower[m, 0]
(* {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} *)

```

---

<div class="post-metadata">

**Author:** ![kiwee](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kiwee/32/9383_2.png) [@kiwee](https://community.wolfram.com/u/kiwee)\
**Post date:** [December 5, 2020, 8:06pm UTC](https://community.wolfram.com/t/what-is-a-quadratic-matrix-to-the-0th-power/17137/3 "2020-12-05T20:06:20Z")

</div>

Hi Rohit, thanks so much for the helpful answer! I am feeling so beginner haha. I haven’t been doing maths with _Mathematica_ other than high school level maths, the language keeps me busy already. I must have heard of **MatrixPower** before, but totally forgot about it. That happens when I only _read_ about a function but never was in a RL case scenario where I had to come up with it on my own.

```
In[1]:= m = {{1, -\[Sqrt]3, 0}, {\[Sqrt]3, -1, 0}, {0, 0, 1}}
Out[1]= {{1, -Sqrt[3], 0}, {Sqrt[3], -1, 0}, {0, 0, 1}}

In[2]:= MatrixExp[m] // Simplify // N
Out[2]= {{0.8544, -1.20976, 0.}, {1.20976, -0.542512, 0.}, {0., 0., 2.71828}}

In[3]:= \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(k = 0\), \(Infinity\)]
\*FractionBox[\(MatrixPower[m, k]\), \(k!\)]\) // FullSimplify // N
Out[3]= {{0.8544, -1.20976, 0.}, {1.20976, -0.542512, 0.}, {0., 0., 2.71828}}

```

My active vocabulary is growing very slowly. But with this thread I am sure that I won’t forget about the existence of the function in future.

Happy Holidays!!
