In Euclidean geometry, a square is a regular quadrilateral, which means that it has four sides of equal length and four equal angles (90-degree angles, π/2 radian angles, or right angles). It can also be defined as a rectangle with two equal-length adjacent sides. It is the only regular polygon whose internal angle, central angle, and external angle are all equal (90°), and whose diagonals are all equal in length. A square with vertices ABCD would be denoted .[1]
A quadrilateral is a square if and only if it is any one of the following:[2] [3]
A=\tfrac{1}{2}(a2+c2)=\tfrac{1}{2}(b2+d2).
A square is a special case of a rhombus (equal sides, opposite equal angles), a kite (two pairs of adjacent equal sides), a trapezoid (one pair of opposite sides parallel), a parallelogram (all opposite sides parallel), a quadrilateral or tetragon (four-sided polygon), and a rectangle (opposite sides equal, right-angles), and therefore has all the properties of all these shapes, namely:[5]
A square has Schläfli symbol . A truncated square, t, is an octagon, . An alternated square, h, is a digon, . The square is the n = 2 case of the families of n-hypercubes and n-orthoplexes.
The perimeter of a square whose four sides have length
\ell
P=4\ell
and the area A is
A=\ell2.
Since four squared equals sixteen, a four by four square has an area equal to its perimeter. The only other quadrilateral with such a property is that of a three by six rectangle.
In classical times, the second power was described in terms of the area of a square, as in the above formula. This led to the use of the term square to mean raising to the second power.
The area can also be calculated using the diagonal d according to
A= | d2 |
2 |
.
In terms of the circumradius R, the area of a square is
A=2R2;
since the area of the circle is
\piR2,
2/\pi ≈ 0.6366
In terms of the inradius r, the area of the square is
A=4r2;
hence the area of the inscribed circle is
\pi/4 ≈ 0.7854
Because it is a regular polygon, a square is the quadrilateral of least perimeter enclosing a given area. Dually, a square is the quadrilateral containing the largest area within a given perimeter.[6] Indeed, if A and P are the area and perimeter enclosed by a quadrilateral, then the following isoperimetric inequality holds:
16A\leP2
\sqrt{2}
2(PH2-PE2)=PD2-PB2.
di
R
| |||||||
4 |
+3R4=\left(
| |||||||
4 |
+R2\right)2.
L
di
2 | |
d | |
1 |
+
2 | |
d | |
3 |
=
2 | |
d | |
2 |
+
2 | |
d | |
4 |
=2(R2+L2)
and
2 | |
d | |
3 |
+
2 | |
d | |
4 |
=2(R4+L4),
where
R
The coordinates for the vertices of a square with vertical and horizontal sides, centered at the origin and with side length 2 are (±1, ±1), while the interior of this square consists of all points (xi, yi) with and . The equation
max(x2,y2)=1
specifies the boundary of this square. This equation means "x2 or y2, whichever is larger, equals 1." The circumradius of this square (the radius of a circle drawn through the square's vertices) is half the square's diagonal, and is equal to
\sqrt{2}.
x2+y2=2.
Alternatively the equation
\left|x-a\right|+\left|y-b\right|=r.
can also be used to describe the boundary of a square with center coordinates (a, b), and a horizontal or vertical radius of r. The square is therefore the shape of a topological ball according to the L1 distance metric.
The following animations show how to construct a square using a compass and straightedge. This is possible as 4 = 22, a power of two.
The square has Dih4 symmetry, order 8. There are 2 dihedral subgroups: Dih2, Dih1, and 3 cyclic subgroups: Z4, Z2, and Z1.
A square is a special case of many lower symmetry quadrilaterals:
These 6 symmetries express 8 distinct symmetries on a square. John Conway labels these by a letter and group order.[11]
Each subgroup symmetry allows one or more degrees of freedom for irregular quadrilaterals. r8 is full symmetry of the square, and a1 is no symmetry. d4 is the symmetry of a rectangle, and p4 is the symmetry of a rhombus. These two forms are duals of each other, and have half the symmetry order of the square. d2 is the symmetry of an isosceles trapezoid, and p2 is the symmetry of a kite. g2 defines the geometry of a parallelogram.
Only the g4 subgroup has no degrees of freedom, but can be seen as a square with directed edges.
Every acute triangle has three inscribed squares (squares in its interior such that all four of a square's vertices lie on a side of the triangle, so two of them lie on the same side and hence one side of the square coincides with part of a side of the triangle). In a right triangle two of the squares coincide and have a vertex at the triangle's right angle, so a right triangle has only two distinct inscribed squares. An obtuse triangle has only one inscribed square, with a side coinciding with part of the triangle's longest side.
The fraction of the triangle's area that is filled by the square is no more than 1/2.
Squaring the circle, proposed by ancient geometers, is the problem of constructing a square with the same area as a given circle, by using only a finite number of steps with compass and straightedge.
In 1882, the task was proven to be impossible as a consequence of the Lindemann–Weierstrass theorem, which proves that pi is a transcendental number rather than an algebraic irrational number; that is, it is not the root of any polynomial with rational coefficients.
In non-Euclidean geometry, squares are more generally polygons with 4 equal sides and equal angles.
In spherical geometry, a square is a polygon whose edges are great circle arcs of equal distance, which meet at equal angles. Unlike the square of plane geometry, the angles of such a square are larger than a right angle. Larger spherical squares have larger angles.
In hyperbolic geometry, squares with right angles do not exist. Rather, squares in hyperbolic geometry have angles of less than right angles. Larger hyperbolic squares have smaller angles.
Examples:
A crossed square is a faceting of the square, a self-intersecting polygon created by removing two opposite edges of a square and reconnecting by its two diagonals. It has half the symmetry of the square, Dih2, order 4. It has the same vertex arrangement as the square, and is vertex-transitive. It appears as two 45-45-90 triangles with a common vertex, but the geometric intersection is not considered a vertex.
A crossed square is sometimes likened to a bow tie or butterfly. the crossed rectangle is related, as a faceting of the rectangle, both special cases of crossed quadrilaterals.[12]
The interior of a crossed square can have a polygon density of ±1 in each triangle, dependent upon the winding orientation as clockwise or counterclockwise.
A square and a crossed square have the following properties in common:
It exists in the vertex figure of a uniform star polyhedra, the tetrahemihexahedron.
The K4 complete graph is often drawn as a square with all 6 possible edges connected, hence appearing as a square with both diagonals drawn. This graph also represents an orthographic projection of the 4 vertices and 6 edges of the regular 3-simplex (tetrahedron).