Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Given a lower triangular matrix $M$ of size $m$ by $n$, is there an equation for the number of elements in this matrix that can be non-zero? What if the matrix is strictly lower triangular?

share|improve this question
2  
Are you asking for the number of elements that can (as opposed to 'are') be non-zero? –  copper.hat Nov 6 '12 at 19:10
    
@amWhy I don't think there's a problem. Many people take triangular matrices to simply be matrices which are all zero above or below the main diagonal. –  EuYu Nov 6 '12 at 19:11
2  
Try $\frac{1}{2}(\min(m,n)(\min(m,n)+1))+ n \min(m-n,0)$. –  copper.hat Nov 6 '12 at 19:16
    
@EuYu I deleted my comment; it's probably my issue (triangular only if square)...a non-square triangular matrix just sort of clashes with my intuition! –  amWhy Nov 6 '12 at 19:18
    
@amWhy We should call them "right-trapezoidal" matrices! –  EuYu Nov 6 '12 at 19:22

2 Answers 2

up vote 2 down vote accepted

In case your matrix is lower triangular It is a square matrix.

I agree with @copper.hat 37 comment. The number of non-zero entries isn't determenistic. As long as all the entries above the main diagonal are zeros you can put a zero wherever you want and therefore It can be changed.

For example for two 3x3 lower triangular matrices : \begin{bmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & 1 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 1 & 1 & 1 \end{bmatrix}

you have different number of non-zeors entries.

It is possible though, to calculate the minimum number of zeros of a lower triangular matrix. In order to do so you just have to understand how's the number of elements above the main diagonal grows, these must be zeros.

For example 3x3, 4x4, 5x5:

\begin{bmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & 1 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 1 & 1 & 0\\ 1 & 1 & 1 & 1 \end{bmatrix}

\begin{bmatrix} 1 & 0 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 & 0\\ 1 & 1 & 1 & 0 & 0\\ 1 & 1 & 1 & 1 & 0 \\ 1 & 1 & 1 & 1 & 1 \end{bmatrix}

If you count how much zeros (minimum case) you have, you'll get 3,6,10 respectively to the matrices above.

If this is the case a fourmla can be extracted.

Hope It helps =]

share|improve this answer
    
Yes, this helps to shed light on the issue. Thank you. –  Nicholas Kinar Nov 6 '12 at 20:16
    
No problem. If there's anything else you need clarification let me know. –  SyndicatorBBB Nov 6 '12 at 20:21

It is possible to calculate the number of the maximum amount of non-zero elements in a lower (or upper) triangular matrix.

The simplest way to do it is to write a $N\times N$ matrix:

$$ \mathbb{A}=\left[\begin{array}{cccc} a_{1,1}&a_{1,2}&\cdots&a_{1,N}\\ a_{2,1}&a_{2,2}&\cdots&a_{2,N}\\ \vdots&\vdots&\vdots&\vdots\\ a_{N,1}&a_{N,2}&\cdots&a_{N,N}\\ \end{array}\right], $$

and notice that for a lower triangular matrix, the non-zero elements $a_{i,j}$ have $i\geq j$. Thus, the indices of the non-zero elements are identified by the unique ordered pairs, $(i,j)$, with $i\in[1,N]$ and $j\in[1,N]$, such that $i\geq j$.

So you have the pairs:

$$ \overbrace{(1,1)}^{1 pair}\\ \overbrace{(2,1)\ (2,2)}^{2 pairs}\\ \vdots\\ \overbrace{(N,1)\ (N,2)\ \cdots\ (N,N)}^{N pairs}, $$

and the amount of non-zero elements, $E$, is exactly the amount of unique pairs you have. Now you just have to sum:

$$ E=\sum\limits_{n=1}^{N}n=\dfrac{\left(1+N\right)N}{2} $$

share|improve this answer
1  
Great answer; what makes this answer particularly appealing is that the summation is very intuitive. –  Nicholas Kinar Jul 19 at 16:38
    
yes, but only then I noticed you actually wanted it for a $m\times n$ matrix. There a comment in your question which generalizes the formula I worked out, considering the square part (and thus triangular part) of the general $m\times n$ matrix. –  Girardi Jul 20 at 16:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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