Trapezoid

In geometry, a trapezoid in North American English, or trapezium  in British English,  is a quadrilateral that has one pair of parallel sides.

The parallel sides are called the bases of the trapezoid. The other two sides are called the legs (or the lateral sides) if they are not parallel; otherwise, the trapezoid is a parallelogram, and there are two pairs of bases. A scalene trapezoid is a trapezoid with no sides of equal measure, in contrast with the special cases below.

A trapezoid is usually considered to be a convex quadrilateral in Euclidean geometry, but there are also crossed cases. If ABCD is a convex trapezoid, then ABDC is a crossed trapezoid. The metric formulas in this article apply in convex trapezoids.

Etymology and trapezium versus trapezoid


The ancient Greek mathematician Euclid defined five types of quadrilateral, of which four had two sets of parallel sides (known in English as square, rectangle, rhombus and rhomboid) and the last did not have two sets of parallel sides – a τραπέζια (trapezia literally 'table', itself from τετράς (tetrás) 'four' + πέζα (péza) 'foot; end, border, edge').

Two types of trapezia were introduced by Proclus (AD 412 to 485) in his commentary on the first book of Euclid's Elements:
 * one pair of parallel sides – a trapezium (τραπέζιον), divided into isosceles (equal legs) and scalene (unequal) trapezia
 * no parallel sides – trapezoid (τραπεζοειδή, trapezoeidé, literally 'trapezium-like' (εἶδος means 'resembles'), in the same way as cuboid means 'cube-like' and rhomboid means 'rhombus-like')

All European languages follow Proclus's structure as did English until the late 18th century, until an influential mathematical dictionary published by Charles Hutton in 1795 supported without explanation a transposition of the terms. This was reversed in British English in about 1875, but it has been retained in American English to the present.

The following table compares usages, with the most specific definitions at the top to the most general at the bottom.

Inclusive versus exclusive definition
There is some disagreement whether parallelograms, which have two pairs of parallel sides, should be regarded as trapezoids.

Some define a trapezoid as a quadrilateral having only one pair of parallel sides (the exclusive definition), thereby excluding parallelograms. Some sources use the term proper trapezoid to describe trapezoids under the exclusive definition, analogous to uses of the word proper in some other mathematical objects.

Others define a trapezoid as a quadrilateral with at least one pair of parallel sides (the inclusive definition ), making the parallelogram a special type of trapezoid. The latter definition is consistent with its uses in higher mathematics such as calculus. This article uses the inclusive definition and considers parallelograms as special cases of a trapezoid. This is also advocated in the taxonomy of quadrilaterals.

Under the inclusive definition, all parallelograms (including rhombuses, squares and non-square rectangles) are trapezoids. Rectangles have mirror symmetry on mid-edges; rhombuses have mirror symmetry on vertices, while squares have mirror symmetry on both mid-edges and vertices.

Special cases


A right trapezoid (also called right-angled trapezoid) has two adjacent right angles. Right trapezoids are used in the trapezoidal rule for estimating areas under a curve.

An acute trapezoid has two adjacent acute angles on its longer base edge.

An obtuse trapezoid on the other hand has one acute and one obtuse angle on each base.

An isosceles trapezoid is a trapezoid where the base angles have the same measure. As a consequence the two legs are also of equal length and it has reflection symmetry. This is possible for acute trapezoids or right trapezoids (as rectangles).

A parallelogram is (under the inclusive definition) a trapezoid with two pairs of parallel sides. A parallelogram has central 2-fold rotational symmetry (or point reflection symmetry). It is possible for obtuse trapezoids or right trapezoids (rectangles).

A tangential trapezoid is a trapezoid that has an incircle.

A Saccheri quadrilateral is similar to a trapezoid in the hyperbolic plane, with two adjacent right angles, while it is a rectangle in the Euclidean plane. A Lambert quadrilateral in the hyperbolic plane has 3 right angles.

Condition of existence
Four lengths a, c, b, d can constitute the consecutive sides of a non-parallelogram trapezoid with a and b parallel only when
 * $$\displaystyle |d-c| < |b-a| < d+c.$$

The quadrilateral is a parallelogram when $$d-c = b-a = 0$$, but it is an ex-tangential quadrilateral (which is not a trapezoid) when $$|d-c| = |b-a| \neq 0$$.

Characterizations
Given a convex quadrilateral, the following properties are equivalent, and each implies that the quadrilateral is a trapezoid:
 * It has two adjacent angles that are supplementary, that is, they add up to 180 degrees.
 * The angle between a side and a diagonal is equal to the angle between the opposite side and the same diagonal.
 * The diagonals cut each other in mutually the same ratio (this ratio is the same as that between the lengths of the parallel sides).
 * The diagonals cut the quadrilateral into four triangles of which one opposite pair have equal areas.
 * The product of the areas of the two triangles formed by one diagonal equals the product of the areas of the two triangles formed by the other diagonal.
 * The areas S and T of some two opposite triangles of the four triangles formed by the diagonals satisfy the equation


 * $$\sqrt{K} = \sqrt{S}+\sqrt{T},$$


 * where K is the area of the quadrilateral.


 * The midpoints of two opposite sides of the trapezoid and the intersection of the diagonals are collinear.
 * The angles in the quadrilateral ABCD satisfy $$\sin A\sin C=\sin B\sin D.$$
 * The cosines of two adjacent angles sum to 0, as do the cosines of the other two angles.
 * The cotangents of two adjacent angles sum to 0, as do the cotangents of the other two adjacent angles.
 * One bimedian divides the quadrilateral into two quadrilaterals of equal areas.
 * Twice the length of the bimedian connecting the midpoints of two opposite sides equals the sum of the lengths of the other sides.

Additionally, the following properties are equivalent, and each implies that opposite sides a and b are parallel:
 * The consecutive sides a, c, b, d and the diagonals p, q satisfy the equation
 * $$p^2+q^2=c^2+d^2+2ab.$$


 * The distance v between the midpoints of the diagonals satisfies the equation
 * $$v=\frac{|a-b|}{2}.$$

Midsegment and height
The midsegment (also called the median or midline) of a trapezoid is the segment that joins the midpoints of the legs. It is parallel to the bases. Its length m is equal to the average of the lengths of the bases a and b of the trapezoid,
 * $$m = \frac{a + b}{2}.$$

The midsegment of a trapezoid is one of the two bimedians (the other bimedian divides the trapezoid into equal areas).

The height (or altitude) is the perpendicular distance between the bases. In the case that the two bases have different lengths (a ≠ b), the height of a trapezoid h can be determined by the length of its four sides using the formula
 * $$h= \frac{\sqrt{(p-a)(p-b)(p-b-d)(p-b-c)}}{2|b-a|}$$

where c and d are the lengths of the legs and $$p = a+b+c+d$$.

Area
The area K of a trapezoid is given by
 * $$K = \frac{a + b}{2} \cdot h = mh$$

where a and b are the lengths of the parallel sides, h is the height (the perpendicular distance between these sides), and m is the arithmetic mean of the lengths of the two parallel sides. In 499 AD Aryabhata, a great mathematician-astronomer from the classical age of Indian mathematics and Indian astronomy, used this method in the Aryabhatiya (section 2.8). This yields as a special case the well-known formula for the area of a triangle, by considering a triangle as a degenerate trapezoid in which one of the parallel sides has shrunk to a point.

The 7th-century Indian mathematician Bhāskara I derived the following formula for the area of a trapezoid with consecutive sides a, c, b, d:
 * $$K=\frac{1}{2}(a+b)\sqrt{c^2-\frac{1}{4}\left((b-a)+\frac{c^2-d^2}{b-a}\right)^2}$$

where a and b are parallel and b > a. This formula can be factored into a more symmetric version
 * $$K = \frac{a+b}{4|b-a|}\sqrt{(-a+b+c+d)(a-b+c+d)(a-b+c-d)(a-b-c+d)}.$$

When one of the parallel sides has shrunk to a point (say a = 0), this formula reduces to Heron's formula for the area of a triangle.

Another equivalent formula for the area, which more closely resembles Heron's formula, is
 * $$K = \frac{a+b}{|b-a|}\sqrt{(s-b)(s-a)(s-b-c)(s-b-d)}$$

where $$s = \tfrac{1}{2}(a + b + c + d)$$ is the semiperimeter of the trapezoid. (This formula is similar to Brahmagupta's formula, but it differs from it, in that a trapezoid might not be cyclic (inscribed in a circle). The formula is also a special case of Bretschneider's formula for a general quadrilateral).

From Bretschneider's formula, it follows that
 * $$K= \sqrt{\frac{(ab^2-a^2 b-ad^2+bc^2)(ab^2-a^2 b-ac^2+bd^2)}{4(b-a)^2} - \left(\frac{c^2+d^2-a^2-b^2}{4}\right)^2}.$$

The line that joins the midpoints of the parallel sides, bisects the area.

Diagonals
The lengths of the diagonals are
 * $$p= \sqrt{\frac{ab^2-a^2b-ac^2+bd^2}{b-a}},$$
 * $$q= \sqrt{\frac{ab^2-a^2b-ad^2+bc^2}{b-a}}$$

where a is the short base, b is the long base, and c and d are the trapezoid legs.

If the trapezoid is divided into four triangles by its diagonals AC and BD (as shown on the right), intersecting at O, then the area of is equal to that of, and the product of the areas of  and  is equal to that of  and. The ratio of the areas of each pair of adjacent triangles is the same as that between the lengths of the parallel sides.

Let the trapezoid have vertices A, B, C, and D in sequence and have parallel sides AB and DC. Let E be the intersection of the diagonals, and let F be on side DA and G be on side BC such that FEG is parallel to AB and CD. Then FG is the harmonic mean of AB and DC:
 * $$\frac{1}{FG}=\frac{1}{2} \left( \frac{1}{AB}+ \frac{1}{DC} \right).$$

The line that goes through both the intersection point of the extended nonparallel sides and the intersection point of the diagonals, bisects each base.

Other properties
The center of area (center of mass for a uniform lamina) lies along the line segment joining the midpoints of the parallel sides, at a perpendicular distance x from the longer side b given by
 * $$x = \frac{h}{3} \left( \frac{2a+b}{a+b}\right).$$

The center of area divides this segment in the ratio (when taken from the short to the long side)


 * $$\frac{a+2b}{2a+b}.$$

If the angle bisectors to angles A and B intersect at P, and the angle bisectors to angles C and D intersect at Q, then
 * $$PQ=\frac{|AD+BC-AB-CD|}{2}.$$

Architecture
In architecture the word is used to refer to symmetrical doors, windows, and buildings built wider at the base, tapering toward the top, in Egyptian style. If these have straight sides and sharp angular corners, their shapes are usually isosceles trapezoids. This was the standard style for the doors and windows of the Inca.

Geometry
The crossed ladders problem is the problem of finding the distance between the parallel sides of a right trapezoid, given the diagonal lengths and the distance from the perpendicular leg to the diagonal intersection.

Biology


In morphology, taxonomy and other descriptive disciplines in which a term for such shapes is necessary, terms such as trapezoidal or trapeziform commonly are useful in descriptions of particular organs or forms.

Computer engineering
In computer engineering, specifically digital logic and computer architecture, trapezoids are typically utilized to symbolize multiplexors. Multiplexors are logic elements that select between multiple elements and produce a single output based on a select signal. Typical designs will employ trapezoids without specifically stating they are multiplexors as they are universally equivalent.