Log in Sign up
Back to Discover
🔢

Affine transformation

math Maturity 7-9

You can move shapes in new ways.

Geometric affine transformation example.png
Geometric affine transformation example.png
You can slide them or turn them. You can even make them look stretched. Lines that stay side by side stay that way. It helps us make art. Do you like to move shapes?
Fractal fern explained.png
Fractal fern explained.png

48 words

Imagine you have a shape on a piece of paper.

Geometric affine transformation example.png
Geometric affine transformation example.png
You can move that shape in many ways. You can slide it to a new spot. You can turn it or make it look stretched.
Affine transform sheared circle.png
Affine transform sheared circle.png
Even when you change the shape, some things stay the same. If lines were side by side, they stay side by side. They stay parallel. This helps us study patterns in nature.
Fractal fern explained.png
Fractal fern explained.png
It is a way to see how shapes change.

84 words

Imagine you have a shape on a sheet of paper.

Geometric affine transformation example.png
Geometric affine transformation example.png
You can move that shape in many ways. You can slide it to a new spot. You can turn it or stretch it.
Affine transform sheared circle.png
Affine transform sheared circle.png
These movements are called affine transformations. An affine transformation is a way to change a shape while keeping certain rules.

One rule is that straight lines stay straight. If three points are on one line, they stay on a line. Another rule is about parallel lines. If two lines never touch, they will still never touch after the change. This is called preserving parallelism.

Fractal fern explained.png
Fractal fern explained.png
Even though the shape changes, these parts stay the same.

An affine transformation is made of two steps. First, there is a linear transformation. This part can rotate, flip, or stretch the shape. Second, there is a translation. A translation is just a slide to a new place. These two steps work together. They can even change where the center of the shape is. This is different from a purely linear map. Scientists use these math ideas in many ways. They help with computer graphics, robots, and seeing how things move.

196 words

Imagine you have a drawing on a piece of paper. You can move that drawing in many different ways. You might slide it across the table to a new spot. You could spin it around or stretch it to make it look taller.

Geometric affine transformation example.png
Geometric affine transformation example.png
These types of movements are called affine transformations. They are special because they follow very strict rules. Even when the shape changes, certain things stay the same. This makes them very useful for understanding how space works.
Affine transform sheared circle.png
Affine transform sheared circle.png

There are two main rules that an affine transformation must follow. First, straight lines must always stay straight. If three points sit on one line, they will still be on a line after the move.

Checkerboard rotate.svg
Checkerboard rotate.svg
Second, the transformation must preserve parallelism. This means if two lines never touch, they will still never touch after you move them.
Checkerboard scale.svg
Checkerboard scale.svg
The transformation might change the distance between points or the angles between lines. However, it will always keep the ratio of lengths on parallel lines the same.
Hyperbolic rotation.gif
Hyperbolic rotation.gif

Every affine transformation is actually made of two separate steps. The first step is called a linear transformation. This part can rotate, flip, or stretch your shape.

Checkerboard reflection.svg
Checkerboard reflection.svg
The second step is called a translation. A translation is simply a slide that moves everything to a new location.
Checkerboard shear.svg
Checkerboard shear.svg
While a purely linear transformation must keep the center point at zero, an affine transformation does not have to. By combining these two steps, you can move a shape anywhere and change its look.
Central dilation.svg
Central dilation.svg

Mathematicians use special tools called matrices to handle these changes. A matrix is a grid of numbers that acts like a set of instructions.

2D affine transformation matrix.svg
2D affine transformation matrix.svg
To make everything work together, they use something called an augmented matrix. This is a larger grid that combines the linear part and the translation part into one single step.
Affine transformations.ogv
Affine transformations.ogv
This trick allows people to do many changes at once by multiplying the matrices together. It is a very efficient way to handle complex math. This method is used by people working in many different fields.

These math ideas are used in many parts of our modern world. Computer graphics experts use them to create moving images in movies and games.

Fractal fern explained.png
Fractal fern explained.png
Engineers who build robots use these rules to help machines move through space. People who study computer vision use them to help computers see the world.
White on black circle image 256 by 256.png
White on black circle image 256 by 256.png
Even when you look at a fractal, like a fern, you might see these transformations at work. The math helps us describe how shapes can be related to one another in many ways.

445 words

An affine transformation is a geometric operation that changes the position or shape of an object while following specific rules. In Euclidean geometry, these transformations are often called affinities, a word derived from the Latin "affinis," meaning connected with.

Geometric affine transformation example.png
Geometric affine transformation example.png
While these movements can change the distance between points or the angles between lines, they must preserve certain fundamental properties. Most importantly, they preserve lines and parallelism. This means that if you start with a straight line, it remains a straight line after the transformation. If two lines are parallel and never meet, they will remain parallel afterward.
Checkerboard rotate.svg
Checkerboard rotate.svg

To understand the mechanism, it is helpful to view an affine transformation as a combination of two distinct mathematical actions. Every affine transformation is the composition of a linear transformation and a translation. A linear transformation is a function that can rotate, scale, reflect, or shear a shape. However, a purely linear transformation is restricted because it must always keep the origin, or the zero point, in its original place.

Checkerboard reflection.svg
Checkerboard reflection.svg
A translation solves this problem by acting as a simple slide that moves every point by a specific vector. By combining these two steps, an affine transformation can move a shape anywhere in space and change its orientation or size.
Central dilation.svg
Central dilation.svg

There are many different types of affine transformations that can be applied to a space. Common examples include translation, which slides an object, and scaling, which changes its size. Rotation spins an object around a point, while reflection flips it over a line. Another type is called a shear mapping, which slides parts of an object in a way that tilts its shape.

Checkerboard shear.svg
Checkerboard shear.svg
You can also have a homothety, which is a specific type of scaling. Furthermore, you can combine these transformations in any sequence to create complex new movements. Because these transformations are invertible, you can always perform the exact opposite movement to return to the original state.
Hyperbolic rotation.gif
Hyperbolic rotation.gif

Mathematically, these transformations are described using the language of affine spaces and vector spaces. An affine space is a set of points where you can subtract one point from another to find a vector. An affine map between two different spaces is a function that acts linearly on these vectors.

2D affine transformation matrix.svg
2D affine transformation matrix.svg
If the dimension of the space is at least two, a semiaffine transformation is a specific type of bijection. This type of map must send every $k$-dimensional subspace to another $k$-dimensional subspace. For example, it must send points to points, lines to lines, and planes to planes. In spaces where the field has at least three elements, this is often referred to as a collineation.

In modern mathematics, we represent these complex movements using augmented matrices. In standard vector algebra, a matrix handles linear maps and a vector handles translations. To combine them, mathematicians use a technique involving homogeneous coordinates. They append a "1" to the end of every vector and add an extra row and column to the matrix.

Affine transformations.ogv
Affine transformations.ogv
This allows a single matrix multiplication to perform both the linear change and the translation at once. This method effectively treats the original space as a subset of a higher-dimensional space. This higher-dimensional view is a core concept in projective geometry.

These mathematical tools are highly significant in technical fields like computer graphics and robotics. Using augmented matrices allows computers to combine many different transformations into one single operation. Instead of calculating ten different moves separately, a computer can multiply ten matrices together to get one final instruction.

2D affine transformation matrix.svg
2D affine transformation matrix.svg
This efficiency is vital for real-time rendering in video games and for helping robots navigate through physical environments. Computer vision researchers also rely on these principles to help machines interpret and process visual data from the real world.
White on black circle image 256 by 256.png
White on black circle image 256 by 256.png

Beyond engineering, affine transformations reveal beautiful patterns in nature and mathematics. One striking example is found in fractals, such as the Barnsley fern.

Fractal fern explained.png
Fractal fern explained.png
In such a fractal, each small part of the shape is related to the whole through a series of affine transformations. This creates a sense of self-similarity, where the pattern repeats at different scales. By studying these transformations, we gain a deeper understanding of how complex structures can be built from simple, repeatable geometric rules.

717 words
🖼️ Images & Media (13)
File:Fractal fern explained.png
Fractal fern explained.png
Affine transformations.ogv
File:Hyperbolic_rotation.gif
Hyperbolic_rotation.gif
File:Checkerboard identity.svg
Checkerboard identity.svg
File:Checkerboard reflection.svg
Checkerboard reflection.svg
File:Checkerboard scale.svg
Checkerboard scale.svg
File:Checkerboard rotate.svg
Checkerboard rotate.svg
File:Checkerboard shear.svg
Checkerboard shear.svg
File:White_on_black_circle_image_256_by_256.png
White_on_black_circle_image_256_by_256.png
File:Affine_transform_sheared_circle.png
Affine_transform_sheared_circle.png
File:Central dilation.svg
Central dilation.svg
File:Geometric affine transformation example.png
Geometric affine transformation example.png

+ 1 more

Up Next
🔢
Affine space
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.