This article is about the geometric shape. For the drafting tool, see Triangle (tool).
A triangle is a two dimensional polygon with three sides meeting at three corners. Alternatively it is three distinct points connected by straight lines called sides.
Several different types of triangles exist:
In Euclidian geometry, the sum of the three interior angles of any triangle is 180 degrees. The area of a triangle is equal to one-half times the length of one side times the altitude relative to that side. (Altitude is the distance of the corner opposite the base from the line which contains the base. In an obtuse triangle, the altitude may be measured from a point not in the base.) In a right triangle, the base and the altitude are the two sides which meet at the right angle.
Heron's formula for the area of a triangle uses only the lengths of the sides, and is:
where and are the lengths of the three sides.
A circle can be drawn through all three vertices of any triangle. The center of the circle lies on the point where the perpendicular bisectors of the three sides meet. Similarly, a circle can be inscribed within a triangle; the center of the circle lies on the point where the bisectors of the three angles meet.
A right triangle is a triangle where one of the interior angles is a right angle, measuring 90 degrees (or π/2 radians). The two sides which meet at the right angle are called legs, and the remaining side, opposite the right angle, is called the hypotenuse.
The Pythagorean Theorem states that the length of the sides of a right triangle are related; where a and b are the lengths of the legs, and c the length of the hypotenuse, . Cases where a, b, and c are all small integers include the sets {3, 4, 5}, {5, 12, 13}, and {7, 24, 25}. The first relation was known to the ancient Egyptians.
The area of a right triangle with legs a and b is
The relationships between the angles and relative lengths of sides of a right triangle form the basis of trigonometry. Three basic trigonometric functions are defined for an angle between 0 and 90 degrees creating one corner of a right triangle. The sine of an angle is the ratio of the length of the opposite leg to the length of the hypotenuse; the cosine is the ratio of the length of the adjacent leg to the length of the hypotenuse; and the tangent is the ratio of the length of the opposite leg to the length of the adjacent leg. The secant is the reciprocal of the cosine, the cosecant is the reciprocal of the sine, and the cotangent is the reciprocal of the tangent.
The trigonometric functions have other definitions which allow their use for angles outside the range 0 - 90 degrees, including definitions on a circle, and analytic definitions which do not rely on geometry.