How to Prove Certain Matrix Operations and Understand Their Properties?

In summary: So the operations for an inner product are:m*(m additions + m multiplications) = m*(2m-1) = 2m^2-mSo, the total flops for (A*x) would be 2m^2-m, and the total flops for (x*A) would be m^2 (since every entry of the resulting mx1 matrix would have to be calculated, and there are m of them).Therefore, the total operations for both (A*x) and (x*A) would be:2m^2-m + m^2 = 3m^2-m.
  • #1
akerman
27
0
1. So firstly I would like to show that product of the matrices L21,L31,... in the derivation of the LU decmoposition is lower triangular. I have already shown that product of upper and lower triandular matices is upper or lower. Now I don't know how to show the derivation.

2. I have been given I - ab^T which are member or reals ^n*n. I is identity and a,b are vectors. I need to show what conditions on a and b does the inverse have the form I + ab^T ? Can anyone help me with this as well?

3. I have been given that A=uv^T and both u and v are vectors. I need to find out number of floating point operations required to compute (uv^T)x and how many operations are needed for u(v^Tx). I know that operation on uv^T is outer product of u and v but how do I show the number of floating points?

Thanks
 
Last edited:
Physics news on Phys.org
  • #2
Re: matrix operations proofs

akerman said:
1. So firstly I would like to show that product of the matrices L21,L31,... in the derivation of the LU decmoposition is lower triangular. I have already shown that product of upper and lower triandular matices is upper or lower. Now I don't know how to show the derivation.

2. I have been giver I - ab^T which are member or reals ^n*n. I is identity and a,b are vectors. I need to show what conditions on a and be does the inverse have the form I + ab^T ? Can anyone help me with this as well?

Thanks
Hint for 2.: $(I - ab^{\mathrm{\small T}})(I + ab^{\mathrm{\small T}}) = I - a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}}$.
 
  • #3
Re: matrix operations proofs

Opalg said:
Hint for 2.: $(I - ab^{\mathrm{\small T}})(I + ab^{\mathrm{\small T}}) = I - a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}}$.

but I still don't get how to show the conditions on a and be does and why the inverse have the form I + ab^T?
 
  • #4
Not sure if this is what Opalg was getting at, but note that $b^Ta$ is a scalar...
 
  • #5
akerman said:
2. I have been given $I - ab^T$ which are member or reals ${}^{n \times n}$. I is identity and $a,b$ are vectors. I need to show what conditions on $a$ and $b$ does the inverse have the form $I + ab^T$ ? Can anyone help me with this as well?

akerman said:
but I still don't get how to show the conditions on a and be does and why the inverse have the form $I + ab^T$?

If $I - ab^T$ has an inverse of the form $I + ab^T$, then their product has to be the identity matrix $I$...
3. I have been given that $A=uv^T$ and both $u$ and $v$ are vectors. I need to find out number of floating point operations required to compute $(uv^T)x$ and how many operations are needed for $u(v^Tx)$. I know that operation on $u^{}v^T$ is outer product of $u$ and $v$ but how do I show the number of floating points?

Suppose $u=(u_1, u_2, u_3)$ and suppose $v=(v_1, v_2, v_3)$, what are the components of the matrix $u^{}v^T$?
How many multiplications will it take as a minimum to calculate all the elements (hint: it is less than $3 \times 3$)?
 
  • #6
I like Serena said:
If $I - ab^T$ has an inverse of the form $I + ab^T$, then their product has to be the identity matrix $I$...

Suppose $u=(u_1, u_2, u_3)$ and suppose $v=(v_1, v_2, v_3)$, what are the components of the matrix $u^{}v^T$?
How many multiplications will it take as a minimum to calculate all the elements (hint: it is less than $3 \times 3$)?

For the second one I need to say what conditions a and b have to have. Does that mean given a proof of the rank? Or Can it be enough just to show the product of $I - ab^T$ and $I + ab^T$

Some more help?

For the third question is it good to show something such as the m×n matrix A has rank 1. Then any two rows of A are linearly dependent and that A must have some non-zero row. Let vt be a non-zero row of A so that v ∈ Rn. But I still don't get how to show the number of floating points?
 
  • #7
To calculate the "outer product" of 2 3-vectors you need 9 separate multiplications, that is all products $u_iv_j,\ i,j = 1,2,3$.

In your "inverse" question, what happens if $a,b$ are orthogonal?

For an actual calculation try $a = (1,1), b = (-1,1)$.
 
  • #8
Deveno said:
To calculate the "outer product" of 2 3-vectors you need 9 separate multiplications, that is all products $u_iv_j,\ i,j = 1,2,3$.

In your "inverse" question, what happens if $a,b$ are orthogonal?

For an actual calculation try $a = (1,1), b = (-1,1)$.

So for this one A=uv^T would it be ok to give this answer? View attachment 1998

But it only gives the floating operations for (uv^T) does it change if we have (uv^T)x ? In fact I need to show how many FLOPs are needed to compute (uvT)x and u(vTx) taking into account brakets... How does that change the calculation I have attached?
 

Attachments

  • Screenshot 2014-02-19 17.20.44 (2).png
    Screenshot 2014-02-19 17.20.44 (2).png
    13.3 KB · Views: 79
Last edited:
  • #9
Well, yes, any time you compute something else you're going to have more operations.

So now you have an mxm matrix times an mx1 vector. How many operations? Can you count them?
 
  • #10
Deveno said:
Well, yes, any time you compute something else you're going to have more operations.

So now you have an mxm matrix times an mx1 vector. How many operations? Can you count them?

So if we have MxM and Mx1 then will it be just M^3? But about the brackets does that add anything to the FLOPs?

What about the other one is it just (2M-1)* M ?
 
  • #11
To calculate the product of an mxm matrix with an mx1 vector, we need to do the following:

Take the inner product of each row of the matrix with the vector. We need to do this m times, so the total flops will be:

m*(whatever it takes to do an inner product of two m-vectors).

To take the inner product, we need to form m terms of a sum (the product of each row-entry by each entry of the m-vector (mx1 matrix)), and then sum them.(which will result in m-1 additional flops).

You do the math.
 
  • #12
Deveno said:
To calculate the product of an mxm matrix with an mx1 vector, we need to do the following:

Take the inner product of each row of the matrix with the vector. We need to do this m times, so the total flops will be:

m*(whatever it takes to do an inner product of two m-vectors).

To take the inner product, we need to form m terms of a sum (the product of each row-entry by each entry of the m-vector (mx1 matrix)), and then sum them.(which will result in m-1 additional flops).

You do the math.
So for (uv^T)x I found that for uv^T part we are doing M*M operations then we doing matrix times vector which gave me 2m^2-M. So now do I just add M*M + 2m^2-M? Which will result M^3-M is that correct?

I also got 2m-1 + m which is 3m-1 Flops for u(v^Tx) is this correct as well?
 
Last edited:
  • #13
Opalg said:
Hint for 2.: $(I - ab^{\mathrm{\small T}})(I + ab^{\mathrm{\small T}}) = I - a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}}$.

akerman said:
For the second one I need to say what conditions a and b have to have. Does that mean given a proof of the rank? Or Can it be enough just to show the product of $I - ab^T$ and $I + ab^T$

Some more help?

If $I + ab^T$ is the inverse of $I - ab^T$, then we must have:
$$I - a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}} = I$$

In other words, since $ (b^{\mathrm{\small T}}a)$ is a scalar:
$$a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}} = (b^{\mathrm{\small T}}a)ab^{\mathrm{\small T}} = 0$$
This will only be the case if either $b^{\mathrm{\small T}}a = 0$ or $ab^{\mathrm{\small T}} = \vec 0$. Or in other words, if their dot product is zero. This happens exactly when the vectors are perpendicular to each other, or if either of them is the zero vector.
akerman said:
So for (uv^T)x I found that for uv^T part we are doing M*M operations then we doing matrix times vector which gave me 2m^2-M. So now do I just add M*M + 2m^2-M? Which will result M^3-M is that correct?

$m \times m + 2m^2-m = 3m^2 - m$

As you can see, this is different from $m^3-m$.

I also got 2m-1 + m which is 3m-1 Flops for u(v^Tx) is this correct as well?

This is correct.
It would appear this is way cheaper to evaluate! ;)
 
  • #14
I like Serena said:
If $I + ab^T$ is the inverse of $I - ab^T$, then we must have:
$$I - a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}} = I$$

In other words, since $ (b^{\mathrm{\small T}}a)$ is a scalar:
$$a(b^{\mathrm{\small T}}a)b^{\mathrm{\small T}} = (b^{\mathrm{\small T}}a)ab^{\mathrm{\small T}} = 0$$
This will only be the case if either $b^{\mathrm{\small T}}a = 0$ or $ab^{\mathrm{\small T}} = \vec 0$. Or in other words, if their dot product is zero. This happens exactly when the vectors are perpendicular to each other, or if either of them is the zero vector.

$m \times m + 2m^2-m = 3m^2 - m$

As you can see, this is different from $m^3-m$.
This is correct.
It would appear this is way cheaper to evaluate! ;)

Oh yes, thanks you I just added it incorrectly but rest of it is really useful and thanks again.
 

FAQ: How to Prove Certain Matrix Operations and Understand Their Properties?

What are matrix operations proofs?

Matrix operations proofs are mathematical calculations that involve performing operations on matrices, such as addition, subtraction, multiplication, and inversion, to prove a certain property or relationship between matrices.

Why are matrix operations proofs important?

Matrix operations proofs are important because they allow us to understand the properties and behaviors of matrices, which are essential in various fields such as engineering, physics, and computer science. They also provide a rigorous and logical foundation for solving complex problems involving matrices.

What are some common properties proved using matrix operations?

Some common properties proved using matrix operations include commutativity, associativity, distributivity, and the existence of an identity element for addition and multiplication. These properties are crucial in simplifying and manipulating matrices in various applications.

What are the steps involved in a matrix operations proof?

The steps involved in a matrix operations proof typically include defining the matrices involved, stating the given information, performing the necessary operations, and arriving at the desired conclusion. It is also important to show all the intermediate steps and justify each step using the properties of matrix operations.

Are there any tips for successfully completing a matrix operations proof?

Some tips for successfully completing a matrix operations proof include being familiar with the properties of matrix operations, carefully labeling the matrices and their elements, and paying attention to details such as the dimensions of the matrices and the order of operations. It is also helpful to practice and understand the logic behind each step rather than memorizing formulas.

Back
Top