# Similarity (geometry)

In Euclidean geometry, two objects are similar if they have the same shape, or if one has the same shape as the mirror image of the other. More precisely, one can be obtained from the other by uniformly scaling (enlarging or reducing), possibly with additional translation, rotation and reflection. This means that either object can be rescaled, repositioned, and reflected, so as to coincide precisely with the other object. If two objects are similar, each is congruent to the result of a particular uniform scaling of the other.
| Translation | Rotation | Reflection | Scaling |
For example, all circles are similar to each other, all squares are similar to each other, and all equilateral triangles are similar to each other. On the other hand, ellipses are not all similar to each other, rectangles are not all similar to each other, and isosceles triangles are not all similar to each other. This is because two ellipses can have different width to height ratios, two rectangles can have different length to breadth ratios, and two isosceles triangles can have different base angles.
If two angles of a triangle have measures equal to the measures of two angles of another triangle, then the triangles are similar. Corresponding sides of similar polygons are in proportion, and corresponding angles of similar polygons have the same measure.
Two congruent shapes are similar, with a scale factor of 1. However, some school textbooks specifically exclude congruent triangles from their definition of similar triangles by insisting that the sizes must be different if the triangles are to qualify as similar.

## Similar triangles

Two triangles, △ABC and △A'B'C' are similar if and only if corresponding angles have the same measure: this implies that they are similar if and only if the lengths of corresponding sides are proportional. It can be shown that two triangles having congruent angles (equiangular triangles) are similar, that is, the corresponding sides can be proved to be proportional. This is known as the AAA similarity theorem. Note that the "AAA" is a mnemonic: each one of the three A's refers to an "angle". Due to this theorem, several authors simplify the definition of similar triangles to only require that the corresponding three angles are congruent.
There are several criteria each of which is necessary and sufficient for two triangles to be similar:
* Any two pairs of angles are congruent, which in Euclidean geometry implies that all three angles are congruent:
       If ∠BAC is equal in measure to ∠B'A'C', and ∠ABC is equal in measure to ∠A'B'C', then this implies that ∠ACB is equal in measure to ∠A'C'B' and the triangles are similar.
* All the corresponding sides are proportional:
${\frac {\overline {AB}}{\overline {A'B'}}}={\frac {\overline {BC}}{\overline {B'C'}}}={\frac {\overline {AC}}{\overline {A'C'}}}.$
    This is equivalent to saying that one triangle (or its mirror image) is an enlargement of the other.
* Any two pairs of sides are proportional, and the angles included between these sides are congruent:
${\frac {\overline {AB}}{\overline {A'B'}}}={\frac {\overline {BC}}{\overline {B'C'}}},\quad \angle ABC\cong \angle A'B'C'.$
    This is known as the SAS similarity criterion. The "SAS" is a mnemonic: each one of the two S's refers to a "side"; the A refers to an "angle" between the two sides.
Symbolically, we write the similarity and dissimilarity of two triangles △ABC and △A'B'C' as follows:
${\begin{aligned}\triangle ABC&\sim \triangle A'B'C'\\\triangle ABC&\nsim \triangle A'B'C'\end{aligned}}$
There are several elementary results concerning similar triangles in Euclidean geometry:
* Any two equilateral triangles are similar.
* Two triangles, both similar to a third triangle, are similar to each other (transitivity of similarity of triangles).
* Corresponding altitudes of similar triangles have the same ratio as the corresponding sides.
* Two right triangles are similar if the hypotenuse and one other side have lengths in the same ratio. There are several equivalent conditions in this case, such as the right triangles having an acute angle of the same measure, or having the lengths of the legs (sides) being in the same proportion.
Given a triangle △ABC and a line segment DE one can, with a ruler and compass, find a point F such that △ABC ~ △DEF. The statement that point F satisfying this condition exists is Wallis's postulate and is logically equivalent to Euclid's parallel postulate. In hyperbolic geometry (where Wallis's postulate is false) similar triangles are congruent.
In the axiomatic treatment of Euclidean geometry given by George David Birkhoff (see Birkhoff's axioms) the SAS similarity criterion given above was used to replace both Euclid's parallel postulate and the SAS axiom which enabled the dramatic shortening of Hilbert's axioms.
Similar triangles provide the basis for many synthetic (without the use of coordinates) proofs in Euclidean geometry. Among the elementary results that can be proved this way are: the angle bisector theorem, the geometric mean theorem, Ceva's theorem, Menelaus's theorem and the Pythagorean theorem. Similar triangles also provide the foundations for right triangle trigonometry.

## Other similar polygons

The concept of similarity extends to polygons with more than three sides. Given any two similar polygons, corresponding sides taken in the same sequence (even if clockwise for one polygon and counterclockwise for the other) are proportional and corresponding angles taken in the same sequence are equal in measure. However, proportionality of corresponding sides is not by itself sufficient to prove similarity for polygons beyond triangles (otherwise, for example, all rhombi would be similar). Likewise, equality of all angles in sequence is not sufficient to guarantee similarity (otherwise all rectangles would be similar). A sufficient condition for similarity of polygons is that corresponding sides and diagonals are proportional.
For given n, all regular n-gons are similar.

## Similar curves

Several types of curves have the property that all examples of that type are similar to each other. These include:
* Lines (any two lines are even congruent)
* Line segments
* Circles
* Parabolas
* Hyperbolas of a specific eccentricity
* Ellipses of a specific eccentricity
* Catenaries
* Graphs of the logarithm function for different bases
* Graphs of the exponential function for different bases
* Logarithmic spirals are self-similar

## In Euclidean space

A similarity (also called a similarity transformation or similitude) of a Euclidean space is a bijection f from the space onto itself that multiplies all distances by the same positive real number r, so that for any two points x and y we have
    $d(f(x),f(y))=r\,d(x,y),$
where d(x,y) is the Euclidean distance from x to y. The scalar r has many names in the literature including; the ratio of similarity, the stretching factor and the similarity coefficient. When r = 1 a similarity is called an isometry (rigid transformation). Two sets are called similar if one is the image of the other under a similarity.
As a map ⁠$f:\mathbb {R} ^{n}\to \mathbb {R} ^{n},$⁠ a similarity of ratio r takes the form
    $f(x)=rAx+t,$
where ⁠$A\in O^{n}(\mathbb {R} )$⁠ is an n × n orthogonal matrix and ⁠$t\in \mathbb {R} ^{n}$⁠ is a translation vector.
Similarities preserve planes, lines, perpendicularity, parallelism, midpoints, inequalities between distances and line segments. Similarities preserve angles but do not necessarily preserve orientation, direct similitudes preserve orientation and opposite similitudes change it.
The similarities of Euclidean space form a group under the operation of composition called the similarities group S. The direct similitudes form a normal subgroup of S and the Euclidean group E(n) of isometries also forms a normal subgroup. The similarities group S is itself a subgroup of the affine group, so every similarity is an affine transformation.
One can view the Euclidean plane as the complex plane, that is, as a 2-dimensional space over the reals. The 2D similarity transformations can then be expressed in terms of complex arithmetic and are given by
* $f(z)=az+b$ (direct similitudes), and
* $f(z)=a{\overline {z}}+b$ (opposite similitudes),
where a and b are complex numbers, a ≠ 0. When |a|= 1, these similarities are isometries.

## Area ratio and volume ratio

The ratio between the areas of similar figures is equal to the square of the ratio of corresponding lengths of those figures (for example, when the side of a square or the radius of a circle is multiplied by three, its area is multiplied by nine — i.e. by three squared). The altitudes of similar triangles are in the same ratio as corresponding sides. If a triangle has a side of length b and an altitude drawn to that side of length h then a similar triangle with corresponding side of length kb will have an altitude drawn to that side of length kh. The area of the first triangle is $A={\tfrac {1}{2}}bh,$ while the area of the similar triangle will be $A'={\frac {1}{2}}\cdot kb\cdot kh=k^{2}A.$ Similar figures which can be decomposed into similar triangles will have areas related in the same way. The relationship holds for figures that are not rectifiable as well.
The ratio between the volumes of similar figures is equal to the cube of the ratio of corresponding lengths of those figures (for example, when the edge of a cube or the radius of a sphere is multiplied by three, its volume is multiplied by 27 — i.e. by three cubed).
Galileo's square–cube law concerns similar solids. If the ratio of similitude (ratio of corresponding sides) between the solids is k, then the ratio of surface areas of the solids will be k$^2$, while the ratio of volumes will be k$^3$.

## Similarity with a center

If a similarity has exactly one invariant point: a point that the similarity keeps unchanged, then this only point is called "center" of the similarity.
On the first image below the title, on the left, one or another similarity shrinks a regular polygon into a concentric one, the vertices of which are each on a side of the previous polygon. This rotational reduction is repeated, so the initial polygon is extended into an abyss of regular polygons. The center of the similarity is the common center of the successive polygons. A red segment joins a vertex of the initial polygon to its image under the similarity, followed by a red segment going to the following image of vertex, and so on to form a spiral. Actually we can see more than three direct similarities on this first image, because every regular polygon is invariant under certain direct similarities, more precisely certain rotations the center of which is the center of the polygon, and a composition of direct similarities is also a direct similarity. For example we see the image of the initial regular pentagon under a homothety of negative ratio –k, which is a similarity of ±180° angle and a positive ratio equal to k.
Below the title on the right, the second image shows a similarity decomposed into a rotation and a homothety. Similarity and rotation have the same angle of +135 degrees modulo 360 degrees. Similarity and homothety have the same ratio of ⁠${\tfrac {\sqrt {2}}{2}},$⁠ multiplicative inverse of the ratio ⁠${\sqrt {2}}$⁠ (square root of 2) of the inverse similarity. Point S is the common center of the three transformations: rotation, homothety and similarity. For example point W is the image of F under the rotation, and point T is the image of W under the homothety, more briefly $T=H(W)=(R(F))=(H\circ R)(F)=D(F),$ by naming R, H and D the previous rotation, homothety and similarity, with “D" like "Direct".
This direct similarity that transforms triangle △EFA into triangle △ATB can be decomposed into a rotation and a homothety of same center S in several manners. For example, D = R ○ H = H ○ R, the last decomposition being only represented on the image. To get D we can also compose in any order a rotation of –45° angle and a homothety of ratio ⁠${\tfrac {-{\sqrt {2}}}{2}}.$⁠
With "M" like "Mirror" and "I" like "Indirect", if M is the reflection with respect to line CW, then M ○ D = I is the indirect similarity that transforms segment BF like D into segment CT, but transforms point E into B and point A into A itself. Square ACBT is the image of ABEF under similarity I of ratio ⁠${\tfrac {1}{\sqrt {2}}}.$⁠ Point A is the center of this similarity because any point K being invariant under it fulfills $AK={\tfrac {AK}{\sqrt {2}}},$ only possible if AK = 0, otherwise written A = K.
How to construct the center S of direct similarity D from square ABEF, how to find point S center of a rotation of +135° angle that transforms ray ⁠${\overset{\overrightarrow {SE}}}$⁠ into ray ⁠${\overset{\overrightarrow {SA}}}$⁠? This is an inscribed angle problem plus a question of orientation. The set of points P such that ${\overset{{\overrightarrow {PE}},{\overrightarrow {PA}}=+135^{\circ }}}$ is an arc of circle EA that joins E and A, of which the two radius leading to E and A form a central angle of 2(180° – 135°) = 2 × 45° = 90°. This set of points is the blue quarter of circle of center F inside square ABEF. In the same manner, point S is a member of the blue quarter of circle of center T inside square BCAT. So point S is the intersection point of these two quarters of circles.

## In general metric spaces

In a general metric space (X, d), an exact similitude is a function f from the metric space X into itself that multiplies all distances by the same positive scalar r, called f 's contraction factor, so that for any two points x and y we have
$d(f(x),f(y))=rd(x,y).$
Weaker versions of similarity would for instance have f be a bi-Lipschitz function and the scalar r a limit
$\lim {\frac {d(f(x),f(y))}{d(x,y)}}=r.$
This weaker version applies when the metric is an effective resistance on a topologically self-similar set.
A self-similar subset of a metric space (X, d) is a set K for which there exists a finite set of similitudes { f$_s$}$_{s∈S}$ with contraction factors 0 ≤ r$_s$ < 1 such that K is the unique compact subset of X for which
    A self-similar set constructed with two similitudes: ${\begin{aligned}z'&=0.1[(4+i)z+4]\\z'&=0.1[(4+7i)z^{*}+5-2i]\end{aligned}}$
$\bigcup _{s\in S}f_{s}(K)=K.$
These self-similar sets have a self-similar measure μ$^D$ with dimension D given by the formula
$\sum _{s\in S}(r_{s})^{D}=1$
which is often (but not always) equal to the set's Hausdorff dimension and packing dimension. If the overlaps between the f$_s$(K) are "small", we have the following simple formula for the measure:
$\mu ^{D}(f_{s_{1}}\circ f_{s_{2}}\circ \cdots \circ f_{s_{n}}(K))=(r_{s_{1}}\cdot r_{s_{2}}\cdots r_{s_{n}})^{D}.\,$

## Topology

In topology, a metric space can be constructed by defining a similarity instead of a distance. The similarity is a function such that its value is greater when two points are closer (contrary to the distance, which is a measure of dissimilarity: the closer the points, the lesser the distance).
The definition of the similarity can vary among authors, depending on which properties are desired. The basic common properties are
* Positive defined:
$\forall (a,b),S(a,b)\geq 0$
* Majored by the similarity of one element on itself (auto-similarity):
$S(a,b)\leq S(a,a)\quad {\text{and}}\quad \forall (a,b),S(a,b)=S(a,a)\Leftrightarrow a=b$
More properties can be invoked, such as:
* Reflectivity: $\forall (a,b)\ S(a,b)=S(b,a),$ or
* Finiteness: $\forall (a,b)\ S(a,b)<\infty .$
The upper value is often set at 1 (creating a possibility for a probabilistic interpretation of the similitude).
Note that, in the topological sense used here, a similarity is a kind of measure. This usage is not the same as the similarity transformation of the § In Euclidean space and § In general metric spaces sections of this article.

## Self-similarity

Self-similarity means that a pattern is non-trivially similar to itself, e.g., the set {..., 0.5, 0.75, 1, 1.5, 2, 3, 4, 6, 8, 12, ...} of numbers of the form {2$^i$, 3·2$^i$} where i ranges over all integers. When this set is plotted on a logarithmic scale it has one-dimensional translational symmetry: adding or subtracting the logarithm of two to the logarithm of one of these numbers produces the logarithm of another of these numbers. In the given set of numbers themselves, this corresponds to a similarity transformation in which the numbers are multiplied or divided by two.

## Psychology

The intuition for the notion of geometric similarity already appears in human children, as can be seen in their drawings.