# Vector into a diagonal Matrix

1. Aug 1, 2011

### MehranMo

I think this is a pretty simple question. I need a transformation that will take a Column vector e.g.: <a,b,c> and turn it into a 3x3 matrix where a is in position 1,1 and b in position 2,2 and c in position 3,3. i.e.: a diagonal matrix.

Any help?

2. Aug 1, 2011

### Fredrik

Staff Emeritus
What kind of transformation? You can define the function by saying that for each i,j we define $X_{ij}=\delta_{ij}x_i$. (There's no summation over the repeated indices). Do you need to define the function by matrix multiplication alone, or is it OK to use addition too?

3. Aug 2, 2011

### I like Serena

You could pick a 3 dimensional matrix (a 3x3x3 cube) with 1's on the main diagonal.

4. Aug 4, 2011

### JG89

There is a linear isomorphism $\alpha$ such that for any vector $(a, b, c)$ $\alpha$ will take $(a,b,c)$ to the 3 by 3 matrix, whose main-diagonal entries are a, b, and c, with all other entries being 0.

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook