Triangle
From Academic Kids

 For alternate meanings, such as the musical instrument, see triangle (disambiguation).
A triangle is one of the basic shapes of geometry: a twodimensional figure with three vertices and three sides which are straight line segments.
Contents 
Types of triangles
Triangles can be classified according to the relative lengths of their sides:
 In an equilateral triangle all sides are of equal length. An equilateral triangle is also equiangular, i.e. all its internal angles are equal—namely, 60°.
 In an isosceles triangle two sides are of equal length. An isosceles triangle also has two equal internal angles.
 In a scalene triangle all sides have different lengths. The internal angles in a scalene triangle are all different.
Equilateral  Isosceles  Scalene 
Triangles can also be classified according to the size of their largest internal angle, described below using degrees of arc.
 A right triangle (or rightangled triangle) has one 90° internal angle (a right angle). The side opposite to the right angle is the hypotenuse; it is the longest side in the right triangle. The other two sides are the legs of the triangle.
 An obtuse triangle has one internal angle larger than 90° (an obtuse angle).
 An acute triangle has internal angles that are all smaller than 90° (three acute angles).
Missing image Triangle.Right.png Right triangle 

Right  Obtuse  Acute 
Basic facts
Elementary facts about triangles were presented by Euclid in books 14 of his Elements around 300 BCE.
A triangle is a polygon and a 2simplex (see polytope).
Two triangles are said to be similar if and only if the angles of one are equal to the corresponding angles of the other. In this case, the lengths of their corresponding sides are proportional. This occurs for example when two triangles share an angle and the sides opposite to that angle are parallel.
Using right triangles and the concept of similarity, the trigonometric functions sine and cosine can be defined. These are functions of an angle which are investigated in trigonometry.
In the remainder we will consider a triangle with vertices A, B and C, angles α, β and γ and sides a, b and c. The side a is opposite to the vertex A and angle α and analogously for the other sides.
In Euclidean geometry, the sum of the angles α + β + γ is equal to two right angles (180° or π radians). This allows determination of the third angle of any triangle as soon as two angles are known.
A central theorem is the Pythagorean theorem stating that in any right triangle, the area of the square on the hypotenuse is equal to the sum of the areas of the squares on the other two sides. If vertex C is the right angle, we can write this as
 <math>c^2 = a^2 + b^2<math>
This means that knowing the lengths of two sides of a right triangle is enough to calculate the length of the third—something unique to right triangles. The Pythagorean theorem can be generalized to the law of cosines:
 <math>c^2 = a^2 + b^2  2ab \cos\gamma<math>
which is valid for all triangles, even if γ is not a right angle. The law of cosines can be used to compute the side lengths and angles of a triangle as soon as all three sides or two sides and an enclosed angle are known.
The law of sines states
 <math>\frac{\sin\alpha}a=\frac{\sin\beta}b=\frac{\sin\gamma}c=\frac1d<math>
where d is the diameter of the circumcircle (the smallest circle that completely contains the triangle within itself). The law of sines can be used to compute the side lengths for a triangle as soon as two angles and one side are known. If two sides and an unenclosed angle is known, the law of sines may also be used; however, in this case there may be zero, one or two solutions.
Points, lines and circles associated with a triangle
A perpendicular bisector of a triangle is a straight line passing through the midpoint of a side and being perpendicular to it, i.e. forming a right angle with it. The three perpendicular bisectors meet in a single point, the triangle's circumcenter; this point is the center of the circumcircle, the circle passing through all three vertices. The diameter of this circle can be found from the law of sines stated above.
Thales' theorem states that if the circumcenter is located on one side of the triangle, then the opposite angle is a right one. More is true: if the circumcenter is located inside the triangle, then the triangle is acute; if the circumcenter is located outside the triangle, then the triangle is obtuse.
Triangle.Orthocenter.png
An altitude of a triangle is a straight line through a vertex and perpendicular to (i.e. forming a right angle with) the opposite side. This opposite side is called the base of the altitude, and the point where the altitude intersects the base (or its extension) is called the foot of the altitude. The length of the altitude is the distance between the base and the vertex. The three altitudes intersect in a single point, called the orthocenter of the triangle. The orthocenter lies inside the triangle if and only if the triangle is not obtuse. The three vertices together with the orthocenter are said to form an orthocentric system.
An angle bisector of a triangle is a straight line through a vertex which cuts the corresponding angle in half. The three angle bisectors intersect in a single point, the center of the triangle's incircle. The incircle is the circle which lies inside the triangle and touches all three sides. There are three other important circles, the excircles; they lie outside the triangle and touch one side as well as the extensions of the other two. The centers of the in and excircles form an orthocentric system.
A median of a triangle is a straight line through a vertex and the midpoint of the opposite side, and divides the triangle into two equal areas. The three medians intersect in a single point, the triangle's centroid. This is also the triangle's center of gravity: if the triangle were made out of wood, say, you could balance it on its centroid, or on any line through the centroid. The centroid cuts every median in the ratio 2:1, i.e. the distance between a vertex and the centroid is twice as large as the distance between the centroid and the midpoint of the opposite side.
The midpoints of the three sides and the feet of the three altitudes all lie on a single circle, the triangle's nine point circle. The remaining three points for which it is named are the midpoints of the portion of altitude between the vertices and the orthocenter. The radius of the nine point circle is half that of the circumcircle. It touches the incircle (at the Feuerbach point) and the three excircles.
The centroid (yellow), orthocenter (blue), circumcenter (green) and center of the nine point circle (red point) all lie on a single line, known as Euler's line (red line). The center of the nine point circle lies at the midpoint between the orthocenter and the circumcenter, and the distance between the centroid and the circumcenter is half that between the centroid and the orthocenter.
The center of the incircle is not in general located on Euler's line.
If one reflects a median at the angle bisector that passes through the same vertex, one obtains a symmedian. The three symmedians intersect in a single point, the symmedian point of the triangle.
Computing the area of a triangle
Calculating the area of a triangle is an elementary problem encountered often in many different situations. Various approaches exist, depending on what is known about the triangle. What follows is a selection of frequently used formulae for the area of a triangle.
Using geometry
The area S of a triangle is S = ½bh, where b is the length of any side of the triangle (the base) and h (the altitude) is the perpendicular distance between the base and the vertex not on the base. This can be shown with the following geometric construction.
The triangle is first transformed into a parallelogram 
To find the area of a given triangle (green), first make an exact copy of the triangle (blue), rotate it 180°, and join it to the given triangle along one side to obtain a parallelogram. Cut off a part and join it at the other side of the parallelogram to form a rectangle. Because the area of the rectangle is bh, the area of the given triangle must be ½bh.
Using vectors
The area of the parallelogram is the magnitude 
The area of a parallelogram can also be calculated by the use of vectors. If AB and AC are vectors pointing from A to B and from A to C, respectively, the area of parallelogram ABDC is AB × AC, the magnitude of the cross product of vectors AB and AC. AB × AC is also equal to h × AC, where h represents the altitude h as a vector.
The area of triangle ABC is half of this, or S = ½AB × AC.
Using trigonometry
Applying trigonometry to 
The altitude of a triangle can be found through an application of trigonometry. Using the labelling as in the image on the right, the altitude is h = a sin γ. Substituting this in the formula S = ½bh derived above, the area of the triangle can be expressed as S = ½ab sin γ.
It is of course no coincidence that the area of a parallelogram is ab sin γ.
Using coordinates
If vertex A is located at the origin (0, 0) of a Cartesian coordinate system and the coordinates of the other two vertices are given by B = (x_{1}, y_{1}) and C = (x_{2}, y_{2}), then the area S can be computed as 1/2 times the absolute value of the determinant
 <math>\begin{vmatrix}x_1 & x_2 \\ y_1 & y_2 \end{vmatrix}<math>
or S = ½ x_{1}y_{2} − x_{2}y_{1}.
Using Heron's formula
Yet another way to compute S is Heron's formula:
 <math>S = \sqrt{s(sa)(sb)(sc)}<math>
where s = ½ (a + b + c) is the semiperimeter, or one half of the triangle's perimeter.
Using the side lengths and a numerically stable formula
Heron's formula is numerically unstable for triangles with a very small angle. A stable alternative involves arranging the lengths of the sides so that: a<i> ≥ <i>b<i> ≥ <i>c<i> and computing
 <math>S = 1/4\sqrt{(a+(b+c)) (c(ab)) (c+(ab)) (a+(bc))}<math>
The brackets in the above formula are required in order to prevent numerical instability in the evaluation.
Nonplanar triangles
If any four of a triangle's elements (vertices, and/or elements of its sides) are plane to each other, the triangle is called plane. Geometers also study nonplanar triangles in noneuclidean geometries, such as spherical triangles in spherical geometry and hyperbolic triangles in hyperbolic geometry.
See also
 CPCTC
 Synthetic geometry
 Pedoe's inequality
 Triangle inequality
 Spherical triangle
 Pythagorean theorem
 Pons Asinorum
 Simplex
 Malfatti circles
 Desargues' theorem
External links
 Triangle Calculator (http://ostermiller.org/calc/triangle.html)  solves for remaining sides and angles when given three sides or angles, supports degrees and radians.
 Napoleon's theorem (http://agutie.homestead.com/files/Napoleon0.htm) A triangle with three equilateral triangles. A purely geometric proof. It uses the Fermat point to prove Napoleon's theorem without transformations by Antonio Gutierrez from "Geometry Step by Step from the Land of the Incas"
 William Kahan: Miscalculating Area and Angles of a Needlelike Triangle (http://http.cs.berkeley.edu/~wkahan/Triangle.pdf).
 Clark Kimberling: Encyclopedia of triangle centers (http://faculty.evansville.edu/ck6/encyclopedia/ETC.html). Lists some 1600 interesting points associated with any triangle.
 Christian Obrecht: Eukleides (http://perso.wanadoo.fr/obrecht/). Software package for creating illustrations of facts about triangles and other theorems in Euclidean geometry.
 Triangle constructions, remarkable points and lines, and metric relations in a triangle (http://www.cuttheknot.org/triangle). From Interactive Mathematics Miscellany and Puzzles.
 Printable Worksheet on Types of Triangles (http://www.kwiznet.com/p/takeQuiz.php?ChapterID=1469&CurriculumID=4)Template:Polygons
ar:مثلث ca:Triangle cs:Trojúhelník da:Trekant de:Dreieck et:Kolmnurk es:Triángulo eo:Triangulo fr:Triangle gl:Triángulo io:Triangulo is:Þríhyrningur id:Segi Tiga it:Triangolo he:משולש lt:Trikampis nl:Driehoek ja:三角形 pl:Trójkąt (geometria) pt:Triângulo (polígono) ru:Треугольник sl:Trikotnik fi:Kolmio sv:Triangel th:รูปสามเหลี่ยม vi:Tam giác tr:Üçgen uk:Трикутник zh:三角形