Transforming Triangles with ABC Matrix

In summary, the conversation discusses creating a matrix ABC that translates, reflects, and scales vectors in R2 expressed in homogeneous coordinates. The matrix ABC is given as [0 -2 -4; -2 0 2; 0 0 1] and the vertices of a triangle are given as (0,0), (1,2), and (2,3). The conversation also discusses how to apply the ABC matrix to the vertices, which involves transposing the matrix.
  • #1
Lonely Lemon
22
0

Homework Statement



Write down 3x3 matrices A, B, C such that when the vectors in R2 are expressed in homogeneous coordinates, the product ABC first translates vectors by (-1, 2), then reflects them about the line y=-x and finally scales them by 2. using your matrix ABC, determine the image of the triangle with vertices (0,0), (1, 2), (2, 3).


Homework Equations





The Attempt at a Solution



I've already figured out A, B and C and the ABC matrix as [0 -2 -4; -2 0 2; 0 0 1] (each division separated by ';' being a column of the ABC matrix). But I can't figure out how I'm supposed to apply this to the vertices?

The answers are (-4, 2), (-8, 0), (-10, -2)

What should I multiply my ABC matrix by to see what happens to the vertices?
 
Physics news on Phys.org
  • #2
Lonely Lemon said:
What should I multiply my ABC matrix by to see what happens to the vertices?

You should multiply it by the vertices, written as vectors.
Of course, since you have written ABC down in a homogeneous coordinate system, you will also have to write your vertices in homogeneous coordinates first (such that they are represented by 3-vectors rather than 2-vectors).
 
  • #3
I did that, my homogeneous vector matrix for the triangle is, call it P:

P = [0 0 1; 1 2 1; 2 3 1]

But if I multiply the ABC matrix by P such that I get [0 -2 -4; 2 0 2; 0 0 1][0 0 1; 1 2 1; 2 3 1] I end up with [0 0 1; -4 -2 1; -6 -4 -1] which is patently wrong...
 
  • #4
Try multiplying the vertices one by one, i.e. calculate [0 -2 -4; 2 0 2; 0 0 1][0 0 1], [0 -2 -4; 2 0 2; 0 0 1][1 2 1] and [0 -2 -4; 2 0 2; 0 0 1][2 3 1] where the vectors are column vectors, of course.
 
  • #5
That's still not giving me the correct result... If I go [0 -2 -4; -2 0 2; 0 0 1][0 0 1] for example [0 0 1] just shoots back out again, which can't be right when there is a translation involved
 
  • #6
Hmm, now I got confused by the textual representation... is the [0 -2 -4] the first row, or the first column. What happens if you reverse that (i.e. transpose your matrix).
I did get the correct results using your matrix yesterday, namely, but I might have transposed it somewhere along.
 
  • #7
Ah, you're right! My textual representation did read [0 -2 -4] as a column, but if I do transpose the matrix I end up with the correct linear transformation.

I can see how the answer comes about now, but I still don't see why I need to transpose my transformation matrix? Can you explain?
 
  • #8
I can't tell you exactly without seeing the whole calculation, but generally I can tell you this: if you have a basis for your space, and a transformation A on it, then the columns of A are the transformed basis vectors of your space.
Actually they have to be, if you consider a transformation from n to m dimensions: if A multiplies an n-dimensional vector to produce an m-dimensional one, then A has to have n columns with m rows, not vice versa. And if you take [1 0 0 ... 0], [0 1 0 0 ... 0], [0 0 1 0 ... 0], ..., [0 0 ... 0 1] as a basis and multiply with A, you should get the transformed basis (which is again a basis if A is an invertible linear transformation), and you will see that you get precisely the columns of A in this case.

In this case, if you pick your favorite vector and work out by hand what it transforms to, you can easily see what form of A should be the correct one.
 

Related to Transforming Triangles with ABC Matrix

What are linear transformations?

A linear transformation is a mathematical function that maps one vector space to another in a way that preserves the linear structure of the space.

How do linear transformations affect vectors?

Linear transformations can rotate, reflect, scale, or shear vectors in a vector space. They can also change the dimensionality of the vector space.

What is the difference between a linear transformation and a non-linear transformation?

A linear transformation follows the properties of linearity, which include preserving addition and scalar multiplication, while a non-linear transformation does not follow these properties.

What are some real-world applications of linear transformations?

Linear transformations are used in fields such as physics, engineering, computer graphics, and economics to model and analyze real-world systems and phenomena.

How are linear transformations represented and manipulated mathematically?

Linear transformations can be represented by matrices and can be manipulated using matrix operations such as addition, multiplication, and inversion. They can also be represented by linear equations and can be manipulated using algebraic operations.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
589
  • Calculus and Beyond Homework Help
Replies
2
Views
200
  • Calculus and Beyond Homework Help
Replies
2
Views
437
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
611
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
367
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
25
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
Back
Top