Linear Transformation to Shrinking/Expand along a given direction

In summary, Harald found a matrix that has squares and products of the e_i and would contain complex numbers for \lambda<1. He was looking for something simpler, but did not find it.
  • #1
birulami
155
0
Assuming that shrinking/expanding in a given direction is a linear transformation in [itex]R^3[/itex], what would be the matrix to perform it?

To be more precise, given a vector

[tex]e=\left(\begin{array}{c}e_1\\e_2\\e_3\end{array}\right)[/tex]

with a length of 1, i.e. [tex]||e||=1[/tex] and a factor [itex]\lambda[/itex], I am looking for a matrix [itex]A[/itex] such that for every vector x the vector [itex]y=A\cdot[/itex]x has a projection on e that is longer than the projection of x by the factor [itex]\lambda[/itex], while all sizes orthogonal to e are kept unchanged.

I came up with a matrix [itex]A[/itex] that contains squares and products of the [itex]e_i[/itex] and, worse, would contain complex numbers for [itex]\lambda<1[/itex]. I expected something simpler? Any ideas?

Thanks,
Harald.
 
Physics news on Phys.org
  • #2
A fairly standard way of writing a linear transformation as a matrix is to see what it does to each of your basis vectors. The coefficients of the basis vectors when the result of applying the transformation to [itex]\vec{i}[/itex] is written as a linear combination of the basis vectors are the first column, etc. In this case, applying this linear transformation to [itex]\vec{i}[/itex] is the projection of [itex]\vec{i}[/itex] on [itex]\vec{e}[/itex] multiplied by [itex]\lambda[/itex].

In particular, since [itex][e_1, e_2, e_]3][/itex] has length 1, the projection of [itex]\vec{i}[/itex] on it is [itex][e_1^2, e_1e_2,e_1e3][/itex], the projection of [itex]\vec{j}[/itex] is [itex][e_1e_2, e_2^2, e_2e_3][/itex], and the projection of [itex]\vek{k}[/itex] is [itex][e_1e_3, e_2e_3, e_3^2][/itex]. The matrix is
[tex]\left[\begin{array}{ccc} \lambda e_1^2 & \lambda e_1e_2 & \lambda e_1e_3 \\ \lambda e_1e_2 & \lambda e_2^2 & \lambda e_2e_3 \\ \lambda e_1e_3 & \lambda e_2e_3 & \lambda e_3^2 \end{array}\right][/tex]

If you have only squares and products, as my formula does, I don't see how you could possibly get complex numbers!
 
  • #3
Something is missing in your matrix, it seems. Try e=(1,0,0). The matrix will have just [itex]\lambda[/itex] in the top left corner. Now apply to vector (1,1,1). The result is [itex](\lambda,0,0)[/itex], so the coordinates orthogonal to e are not kept but killed.-(

Harald.
 
  • #4
Your right- I just calculated the projection onto [itex][e_1, e_2, e_3][/itex]. I'll try again. The vector [1, 0, 0] has projection [itex][e_1^2, e_1e_2,e_1e3][/itex] onto [itex][e_1, e_2, e_3][/itex] and orthogonal projection [itex][e_1^2-1, e_1e_2,e_1e3][/itex] so your transformation maps [1, 0, 0] to [itex][(\lambda-1)e_1^2- 1, (\lambda-1)e_1e_2, (\lambda-1)e_1e_3)[/itex] and similarly for the [0, 1, 0] and [0, 0, 1].

Unless I have made another silly error (quite possible) the matrix is:
[tex]\left[\begin{array}{ccc} (\lambda-1)e_1^2-1 & (\lambda-1)e_1_e2 & (\lambda-1)e_1e_3 \\ (\lambda-1)e_1e_2 & (\lambda-1)e_2^2- 1 &(\lambda-1)e_2e_3 \\(\lambda-1)e_1e_3 & (\lambda-1)e_2e_3 & (\lambda-1)e_3^2-1\end{array}\right][/tex]
 
  • #5
Great, thanks. I thought I made a mistake, because I hoped for something simpler.

The reason why I was talking about complex numbers was that I started from a vector [itex]k[/itex] which, in your notation, would now be [itex]k=\sqrt{\lambda-1}\cdot e[/itex]. This vector formally combines the direction e and the shrink/expand factor [itex]\lambda[/itex]. Obviously the square root wil go complex for [itex]\lambda<1[/itex]. But of course the complex numbers disappear again in the matrix itself.

The matrix can be written as [itex]k\cdot k^T-1_{diag}[/itex] --- Not that this tells me anything interesting, though:-)

Seasons Greetings,
Harald.
 

FAQ: Linear Transformation to Shrinking/Expand along a given direction

What is a linear transformation?

A linear transformation is a mathematical function that maps one vector space to another vector space. It takes in a vector as an input and produces a new vector as an output, while preserving the basic properties of the vector space such as linearity and composition.

What does it mean to shrink/expand along a given direction?

Shrinking or expanding along a given direction refers to changing the length of a vector in that particular direction while keeping its direction unchanged. This can be visualized as stretching or compressing an object in a specific direction.

How is a linear transformation represented?

A linear transformation can be represented using a matrix. The columns of the matrix represent the images of the standard basis vectors of the input vector space. The product of this matrix and a vector will result in the transformed vector.

What is the role of eigenvalues and eigenvectors in linear transformations?

Eigenvalues and eigenvectors play a crucial role in linear transformations. Eigenvalues represent the scaling factor by which a vector is expanded or shrunk, while eigenvectors represent the direction in which the transformation occurs. They can also be used to find the principle axes of a transformation, which can help identify the main directions of expansion or contraction.

Can a linear transformation only shrink or expand along a single direction?

No, a linear transformation can shrink or expand along multiple directions simultaneously. This can be achieved by combining different transformations, each with a specific direction and magnitude. For example, a shear transformation can both expand and shrink along two different directions simultaneously.

Back
Top