Math & ScienceMatrix power

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
adnaniut
Posts: 11
Joined: Tue Aug 10, 2010 1:23 am

Matrix power

Post by adnaniut »

I want to write a matrix raised to some power; and error in the other part of code. Can anyone help me please

Adnan

Code: Select all

\left[
\begin{array}{c | c}
A  & B \\ \hline
C  & D
\end{array}
\right]^{-1}

Code: Select all

\begin{align*}
& \left[
\displaystyle \begin{array}{c c c c c c c c c c c}
\frac{1-q_2^}{q_2^n} & \frac{1-q_2}{q_2^{n-1}} & \frac{1-q_2}{q_2^{n-2}}  &\cdots & \frac{1-q_2}{q_2} & \frac{1}{q_2} & 1 & 0 & \cdots &0
\end{array}\right] \times
\left[
\begin{array}{c}
1 \\
\vdots \\
\vdots \\
\vdots \\
1 \\
\end{array}\right] \\
& = \frac{(1-q_2)+(q_2-q_2^2)+(q_2^2-q_2^3)+ \cdots +(q_2^{n-2}-q_2^{n-1})+(q_2^{n-1})+q_2^n+0+ \cdots +0}{q_2^n} \\
& = \frac{1 + q_2^n}{q_2^n}
\end{align*}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Matrix power

Post by gmedina »

Hi,

please post complete, minimal code and not just snippets.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Matrix power

Post by gmedina »

adnaniut wrote:

Code: Select all

\begin{align*}
& \left[
\displaystyle \begin{array}{c c c c c c c c c c c}
\frac{1-q_2^}{q_2^n} & \frac{1-q_2}{q_2^{n-1}} & \frac{1-q_2}{q_2^{n-2}}  ...
In the quoted code, there's a missing power (or an extra ^ character) in the numerator of the first \frac command.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply