Friday, October 24, 2008

Solution of Triangle

From Wikipedia, the free encyclopedia

(Redirected from Triangles)
Jump to: navigation, search

A triangle is one of the basic shapes of geometry: a polygon with three corners or vertices and three sides or edges which are line segments. A triangle with vertices A, B, and C is denoted ABC.


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 an equiangular polygon, i.e. all its internal angles are equal—namely, 60°; it is a regular polygon.[1]
  • In an isosceles triangle, two sides are of equal length (originally and conventionally limited to exactly two).[2] An isosceles triangle also has two equal angles: the angles opposite the two equal sides.
  • In a scalene triangle, all sides have different lengths. The internal angles in a scalene triangle are all different.[3]
Equilateral Triangle Isosceles triangle Scalene triangle
Equilateral Isosceles Scalene

Triangles can also be classified according to their internal angles, described below using degrees of arc:

  • A right triangle (or right-angled triangle, formerly called a rectangled 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 or catheti (singular: cathetus) of the triangle.
  • An oblique triangle has no internal angle equal to 90°.
  • An obtuse triangle is an oblique triangle with one internal angle larger than 90° (an obtuse angle).
  • An acute triangle is an oblique triangle with internal angles all smaller than 90° (three acute angles). An equilateral triangle is an acute triangle, but not all acute triangles are equilateral triangles.
Right triangle Obtuse triangle Acute triangle
Right Obtuse Acute
\underbrace{\qquad \qquad \qquad \qquad \qquad \qquad}_{}
Oblique


Computing the area of a triangle

Calculating the area of a triangle is an elementary problem encountered often in many different situations. The best known and simplest formula is:

S=\frac{1}{2}bh

where S is area, b is the length of the base of the triangle, and h is the height or altitude of the triangle. The term 'base' denotes any side, and 'height' denotes the length of a perpendicular from the point opposite the side onto the side itself.

Although simple, this formula is only useful if the height can be readily found. For example, the surveyor of a triangular field measures the length of each side, and can find the area from his results without having to construct a 'height'. Various methods may be used in practice, depending on what is known about the triangle. The following is a selection of frequently used formulae for the area of a triangle.[4]

[edit] Using vectors

The area of a parallelogram can be calculated using vectors. Let vectors AB and AC point respectively from A to B and from A to C. The area of parallelogram ABDC is then |{AB}\times{AC}|, which is the magnitude of the cross product of vectors AB and AC. |{AB}\times{AC}| is equal to |{h}\times{AC}|, where h represents the altitude h as a vector.

The area of triangle ABC is half of this, or S = \frac{1}{2}|{AB}\times{AC}|.

The area of triangle ABC can also be expressed in terms of dot products as follows:

\frac{1}{2} \sqrt{(\mathbf{AB} \cdot \mathbf{AB})(\mathbf{AC} \cdot \mathbf{AC}) -(\mathbf{AB} \cdot \mathbf{AC})^2} =\frac{1}{2} \sqrt{ |\mathbf{AB}|^2 |\mathbf{AC}|^2 -(\mathbf{AB} \cdot \mathbf{AC})^2} \, .
Applying trigonometry to find the altitude h.
Applying trigonometry to find the altitude h.

[edit] Using trigonometry

The height of a triangle can be found through an application of trigonometry. Using the labelling as in the image on the left, 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 =  \frac{1}{2}ab\sin \gamma = \frac{1}{2}bc\sin \alpha  = \frac{1}{2}ca\sin \beta.

Furthermore, since sin α = sin (π - α) = sin (β + γ), and similarly for the other two angles:

S = \frac{1}{2}ab\sin (\alpha+\beta) = \frac{1}{2}bc\sin (\beta+\gamma) = \frac{1}{2}ca\sin (\gamma+\alpha).

[edit] 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 = (xB, yB) and C = (xC, yC), then the area S can be computed as ½ times the absolute value of the determinant

S=\frac{1}{2}\left|\det\begin{pmatrix}x_B & x_C \\ y_B & y_C \end{pmatrix}\right| = \frac{1}{2}|x_B y_C - x_C y_B|.

For three general vertices, the equation is:

S=\frac{1}{2} \left| \det\begin{pmatrix}x_A & x_B & x_C \\  y_A & y_B & y_C \\ 1 & 1 & 1\end{pmatrix} \right| = \frac{1}{2} \big| x_A y_C - x_A y_B + x_B y_A - x_B y_C + x_C y_B - x_C y_A \big|
S= \frac{1}{2} \big| (x_C - x_A) (y_B - y_A) - (x_B - x_A) (y_C - y_A) \big|.

In three dimensions, the area of a general triangle {A = (xA, yA, zA), B = (xB, yB, zB) and C = (xC, yC, zC)} is the Pythagorean sum of the areas of the respective projections on the three principal planes (i.e. x = 0, y = 0 and z = 0):

S=\frac{1}{2} \sqrt{ \left( \det\begin{pmatrix} x_A & x_B & x_C \\ y_A & y_B & y_C \\ 1 & 1 & 1 \end{pmatrix} \right)^2 + \left( \det\begin{pmatrix} y_A & y_B & y_C \\ z_A & z_B & z_C \\ 1 & 1 & 1 \end{pmatrix} \right)^2 + \left( \det\begin{pmatrix} z_A & z_B & z_C \\ x_A & x_B & x_C \\ 1 & 1 & 1 \end{pmatrix} \right)^2 }.

Using Heron's formula

The shape of the triangle is determined by the lengths of the sides alone. Therefore the area S also can be derived from the lengths of the sides. By Heron's formula:

S = \sqrt{s(s-a)(s-b)(s-c)}

where s = ½ (a + b + c) is the semiperimeter, or half of the triangle's perimeter.

Three equivalent ways of writing Heron's formula are

 S = \frac{1}{4} \sqrt{(a^2+b^2+c^2)^2-2(a^4+b^4+c^4)}
 S = \frac{1}{4} \sqrt{2(a^2b^2+a^2c^2+b^2c^2)-(a^4+b^4+c^4)}
 S = \frac{1}{4} \sqrt{(a+b-c) (a-b+c) (-a+b+c) (a+b+c)}.

Computing the sides and angles

In general, there are various accepted methods of calculating the length of a side or the size of an angle. Whilst certain methods may be suited to calculating values of a right-angled triangle, others may be required in more complex situations.

[edit] The sine and cosine rules

Main articles: Law of sines and Law of cosines

The law of sines, or sine rule[5], states that the ratio of the length of a side a to its corresponding angle A is equal to the ratio of the length of a side b to its corresponding angle B.

\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}
A triangle.
A triangle.

The law of cosines, or cosine rule, connects the length of an unknown side of a triangle to the length of the other sides and the angle opposite to the unknown side. As shown in the accompanying diagram, given two known lengths of a triangle a and b, and the angle between the two known sides γ (or the angle opposite to the unknown side c), to calculate the third side c, the following formula can be used:

c^2\ = a^2 + b^2 - 2ab\cos(\gamma)


[edit] Trigonometric ratios in right triangles

A right triangle always includes a 90° (π/2 radians) angle, here labeled C. Angles A and B may vary. Trigonometric functions specify the relationships among side lengths and interior angles of a right triangle.
A right triangle always includes a 90° (π/2 radians) angle, here labeled C. Angles A and B may vary. Trigonometric functions specify the relationships among side lengths and interior angles of a right triangle.

In right triangles, the trigonometric ratios of sine, cosine and tangent can be used to find unknown angles and the lengths of unknown sides. The sides of the triangle are known as follows:

  • The hypotenuse is the side opposite the right angle, or defined as the longest side of a right-angled triangle, in this case h.
  • The opposite side is the side opposite to the angle we are interested in, in this case a.
  • The adjacent side is the side that is in contact with the angle we are interested in and the right angle, hence its name. In this case the adjacent side is b.

[edit] Sine, cosine and tangent

The sine of an angle is the ratio of the length of the opposite side to the length of the hypotenuse. In our case

\sin A = \frac {\textrm{opposite}} {\textrm{hypotenuse}} = \frac {a} {h}\,.

Note that this ratio does not depend on the particular right triangle chosen, as long as it contains the angle A, since all those triangles are similar.

The cosine of an angle is the ratio of the length of the adjacent side to the length of the hypotenuse. In our case

\cos A = \frac {\textrm{adjacent}} {\textrm{hypotenuse}} = \frac {b} {h}\,.

The tangent of an angle is the ratio of the length of the opposite side to the length of the adjacent side. In our case

\tan A = \frac {\textrm{opposite}} {\textrm{adjacent}} = \frac {a} {b}\,.

The acronym "SOHCAHTOA" is a useful mnemonic for these ratios.

[edit] Inverse functions

The inverse trigonometric functions can also be useful when trying to determine the remaining two angles of a right triangle when you already know the length of the sides of the triangle. Using the inverse sine or arcsine, we can use a simple ratio to calculate an angle from the ratio of two sides:

\theta = \arcsin \left( \frac{\text{opposite}}{\text{hypotenuse}} \right).

Often, the hypotenuse is unknown and would need to be calculated before using arcsin or arccos. Arctan comes in handy in this situation. You can compute the angle of the triangles without knowing the length of the hypotenuse.

\theta = \arctan \left( \frac{\text{opposite}}{\text{adjacent}} \right).
Right triangle

For example, you can calculate the slope of a roof line if you know the rise and run of the roof. If the roof drops 8 feet (a negative rise of 8) as it runs out 20 feet (a positive run of 20), then your roof is angled θ degrees up from horizontal, where θ may be computed as follows:

\begin{align}  \theta &{}= \arctan \left( \frac{\text{opposite}}{\text{adjacent}} \right)          &{}= \arctan \left( \frac{\text{rise}}{\text{run}} \right)          &{}= \arctan \left( \frac{8}{20} \right)          &{}= 21.8^{\circ}. \end{align}

No comments: