# Triangle calculator

You have entered side a, c and angle α.

Triangle has two solutions: a=700; b=100.0769671742; c=800 and a=700; b=1498.956565149; c=800.

### #1 Obtuse scalene triangle.

Sides: a = 700   b = 100.0769671742   c = 800

Area: T = 1396.952247159
Perimeter: p = 1600.076967174
Semiperimeter: s = 800.0354835871

Angle ∠ A = α = 2° = 0.0354906585 rad
Angle ∠ B = β = 0.28658564745° = 0°17'9″ = 0.00549891367 rad
Angle ∠ C = γ = 177.7144143526° = 177°42'51″ = 3.10216969319 rad

Height: ha = 3.9911292776
Height: hb = 27.9219597362
Height: hc = 3.4922381179

Median: ma = 450.0087743935
Median: mb = 749.9987676796
Median: mc = 300.0121615777

Vertex coordinates: A[800; 0] B[0; 0] C[699.9911287998; 3.4922381179]
Centroid: CG[499.9977096; 1.16441270597]
Coordinates of the circumscribed circle: U[400; -10020.81877189]
Coordinates of the inscribed circle: I[699.9655164129; 1.74661145552]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 178° = 0.0354906585 rad
∠ B' = β' = 179.7144143526° = 179°42'51″ = 0.00549891367 rad
∠ C' = γ' = 2.28658564745° = 2°17'9″ = 3.10216969319 rad

# How did we calculate this triangle?

The calculation of the triangle progress in two phases. The first phase is such that we try to calculate all three sides of the triangle from the input parameters. The first phase is different for the different triangles query entered. The second phase is the calculation of other characteristics of the triangle, such as angles, area, perimeter, heights, the center of gravity, circle radii, etc. Some input data also results in two to three correct triangle solutions (e.g., if the specified triangle area and two sides - typically resulting in both acute and obtuse) triangle).

### 1. Input data entered: side a, c and angle α.

$a = 700 \ \\ c = 800 \ \\ α = 2^\circ$

### 2. From angle α, side c and side a we calculate side b - by using the law of cosines and quadratic equation:

$a^2 = c^2 + b^2 - 2c b \cos α \ \\ \ \\ 700^2 = 800^2 + b^2 - 2 \cdot \ 800 \cdot \ b \cdot \ \cos 2^\circ \ \\ \ \\ \ \\ b^2 -1599.025b +150000 =0 \ \\ \ \\ p=1; q=-1599.025; r=150000 \ \\ D = q^2 - 4pr = 1599.025^2 - 4\cdot 1 \cdot 150000 = 1956881.98433 \ \\ D>0 \ \\ \ \\ b_{1,2} = \dfrac{ -q \pm \sqrt{ D } }{ 2p } = \dfrac{ 1599.03 \pm \sqrt{ 1956881.98 } }{ 2 } \ \\ b_{1,2} = 799.51266162 \pm 699.442989873 \ \\ b_{1} = 1498.95565149 \ \\ b_{2} = 100.069671742 \ \\ \ \\ \text{ Factored form of the equation: } \ \\ (b -1498.95565149) (b -100.069671742) = 0 \ \\ \ \\ \ \\ b > 0 \ \\ \ \\ b = 1498.956$

Now we know the lengths of all three sides of the triangle, and the triangle is uniquely determined. Next, we calculate another its characteristics - same procedure as calculation of the triangle from the known three sides SSS.

$a = 700 \ \\ b = 100.07 \ \\ c = 800$

### 3. The triangle perimeter is the sum of the lengths of its three sides

$p = a+b+c = 700+100.07+800 = 1600.07$

### 4. Semiperimeter of the triangle

The semiperimeter of the triangle is half its perimeter. The semiperimeter frequently appears in formulas for triangles that it is given a separate name. By the triangle inequality, the longest side length of a triangle is less than the semiperimeter.

$s = \dfrac{ p }{ 2 } = \dfrac{ 1600.07 }{ 2 } = 800.03$

### 5. The triangle area using Heron's formula

Heron's formula gives the area of a triangle when the length of all three sides are known. There is no need to calculate angles or other distances in the triangle first. Heron's formula works equally well in all cases and types of triangles.

$T = \sqrt{ s(s-a)(s-b)(s-c) } \ \\ T = \sqrt{ 800.03(800.03-700)(800.03-100.07)(800.03-800) } \ \\ T = \sqrt{ 1951476.21 } = 1396.95$

### 6. Calculate the heights of the triangle from its area.

There are many ways to find the height of the triangle. The easiest way is from the area and base length. The area of a triangle is half of the product of the length of the base and the height. Every side of the triangle can be a base; there are three bases and three heights (altitudes). Triangle height is the perpendicular line segment from a vertex to a line containing the base.

$T = \dfrac{ a h _a }{ 2 } \ \\ \ \\ h _a = \dfrac{ 2 \ T }{ a } = \dfrac{ 2 \cdot \ 1396.95 }{ 700 } = 3.99 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 1396.95 }{ 100.07 } = 27.92 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 1396.95 }{ 800 } = 3.49$

### 7. Calculation of the inner angles of the triangle using a Law of Cosines

The Law of Cosines is useful for finding the angles of a triangle when we know all three sides. The cosine rule, also known as the law of cosines, relates all three sides of a triangle with an angle of a triangle. The Law of Cosines is the extrapolation of the Pythagorean theorem for any triangle. Pythagorean theorem works only in a right triangle. Pythagorean theorem is a special case of the Law of Cosines and can be derived from it because the cosine of 90° is 0. It is best to find the angle opposite the longest side first. With the Law of Cosines, there is also no problem with obtuse angles as with the Law of Sines, because cosine function is negative for obtuse angles, zero for right, and positive for acute angles. We also use inverse cosine called arccosine to determine the angle from cosine value.

$a^2 = b^2+c^2 - 2bc \cos α \ \\ \ \\ α = \arccos(\dfrac{ b^2+c^2-a^2 }{ 2bc } ) = \arccos(\dfrac{ 100.07^2+800^2-700^2 }{ 2 \cdot \ 100.07 \cdot \ 800 } ) = 2^\circ \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 700^2+800^2-100.07^2 }{ 2 \cdot \ 700 \cdot \ 800 } ) = 0^\circ 17'9" \ \\ γ = 180^\circ - α - β = 180^\circ - 2^\circ - 0^\circ 17'9" = 177^\circ 42'51"$

An incircle of a triangle is a circle which is tangent to each side. An incircle center is called incenter and has a radius named inradius. All triangles have an incenter, and it always lies inside the triangle. The incenter is the intersection of the three angle bisectors. The product of the inradius and semiperimeter (half the perimeter) of a triangle is its area.

$T = rs \ \\ r = \dfrac{ T }{ s } = \dfrac{ 1396.95 }{ 800.03 } = 1.75$

The circumcircle of a triangle is a circle that passes through all of the triangle's vertices, and the circumradius of a triangle is the radius of the triangle's circumcircle. Circumcenter (center of circumcircle) is the point where the perpendicular bisectors of a triangle intersect.

$R = \dfrac{ a b c }{ 4 \ r s } = \dfrac{ 700 \cdot \ 100.07 \cdot \ 800 }{ 4 \cdot \ 1.746 \cdot \ 800.035 } = 10028.8$

### 10. Calculation of medians

A median of a triangle is a line segment joining a vertex to the midpoint of the opposite side. Every triangle has three medians, and they all intersect each other at the triangle's centroid. The centroid divides each median into parts in the ratio 2:1, with the centroid being twice as close to the midpoint of a side as it is to the opposite vertex. We use Apollonius's theorem to calculate the length of a median from the lengths of its side.

$m_a = \dfrac{ \sqrt{ 2b^2+2c^2 - a^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 100.07^2+2 \cdot \ 800^2 - 700^2 } }{ 2 } = 450.008 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 800^2+2 \cdot \ 700^2 - 100.07^2 } }{ 2 } = 749.998 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 700^2+2 \cdot \ 100.07^2 - 800^2 } }{ 2 } = 300.012$

### #2 Obtuse scalene triangle.

Sides: a = 700   b = 1498.956565149   c = 800

Area: T = 20925.11991265
Perimeter: p = 2998.956565149
Semiperimeter: s = 1499.478782574

Angle ∠ A = α = 2° = 0.0354906585 rad
Angle ∠ B = β = 175.7144143526° = 175°42'51″ = 3.06767903468 rad
Angle ∠ C = γ = 2.28658564745° = 2°17'9″ = 0.04398957217 rad

Height: ha = 59.78660546472
Height: hb = 27.9219597362
Height: hc = 52.31327978163

Median: ma = 1149.319893857
Median: mb = 57.29773709474
Median: mc = 1099.288796162

Vertex coordinates: A[800; 0] B[0; 0] C[-698.0432528206; 52.31327978163]
Centroid: CG[33.98658239312; 17.43875992721]
Coordinates of the circumscribed circle: U[400; 10020.81877189]
Coordinates of the inscribed circle: I[0.52221742556; 13.9554937357]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 178° = 0.0354906585 rad
∠ B' = β' = 4.28658564745° = 4°17'9″ = 3.06767903468 rad
∠ C' = γ' = 177.7144143526° = 177°42'51″ = 0.04398957217 rad

# How did we calculate this triangle?

The calculation of the triangle progress in two phases. The first phase is such that we try to calculate all three sides of the triangle from the input parameters. The first phase is different for the different triangles query entered. The second phase is the calculation of other characteristics of the triangle, such as angles, area, perimeter, heights, the center of gravity, circle radii, etc. Some input data also results in two to three correct triangle solutions (e.g., if the specified triangle area and two sides - typically resulting in both acute and obtuse) triangle).

### 1. Input data entered: side a, c and angle α.

$a = 700 \ \\ c = 800 \ \\ α = 2^\circ$

### 2. From angle α, side c and side a we calculate side b - by using the law of cosines and quadratic equation:

$a^2 = c^2 + b^2 - 2c b \cos α \ \\ \ \\ 700^2 = 800^2 + b^2 - 2 \cdot \ 800 \cdot \ b \cdot \ \cos 2^\circ \ \\ \ \\ \ \\ b^2 -1599.025b +150000 =0 \ \\ \ \\ p=1; q=-1599.025; r=150000 \ \\ D = q^2 - 4pr = 1599.025^2 - 4\cdot 1 \cdot 150000 = 1956881.98433 \ \\ D>0 \ \\ \ \\ b_{1,2} = \dfrac{ -q \pm \sqrt{ D } }{ 2p } = \dfrac{ 1599.03 \pm \sqrt{ 1956881.98 } }{ 2 } \ \\ b_{1,2} = 799.51266162 \pm 699.442989873 \ \\ b_{1} = 1498.95565149 \ \\ b_{2} = 100.069671742 \ \\ \ \\ \text{ Factored form of the equation: } \ \\ (b -1498.95565149) (b -100.069671742) = 0 \ \\ \ \\ \ \\ b > 0 \ \\ \ \\ b = 1498.956$

Now we know the lengths of all three sides of the triangle, and the triangle is uniquely determined. Next, we calculate another its characteristics - same procedure as calculation of the triangle from the known three sides SSS.

$a = 700 \ \\ b = 1498.96 \ \\ c = 800$

### 3. The triangle perimeter is the sum of the lengths of its three sides

$p = a+b+c = 700+1498.96+800 = 2998.96$

### 4. Semiperimeter of the triangle

The semiperimeter of the triangle is half its perimeter. The semiperimeter frequently appears in formulas for triangles that it is given a separate name. By the triangle inequality, the longest side length of a triangle is less than the semiperimeter.

$s = \dfrac{ p }{ 2 } = \dfrac{ 2998.96 }{ 2 } = 1499.48$

### 5. The triangle area using Heron's formula

Heron's formula gives the area of a triangle when the length of all three sides are known. There is no need to calculate angles or other distances in the triangle first. Heron's formula works equally well in all cases and types of triangles.

$T = \sqrt{ s(s-a)(s-b)(s-c) } \ \\ T = \sqrt{ 1499.48(1499.48-700)(1499.48-1498.96)(1499.48-800) } \ \\ T = \sqrt{ 437860610.46 } = 20925.12$

### 6. Calculate the heights of the triangle from its area.

There are many ways to find the height of the triangle. The easiest way is from the area and base length. The area of a triangle is half of the product of the length of the base and the height. Every side of the triangle can be a base; there are three bases and three heights (altitudes). Triangle height is the perpendicular line segment from a vertex to a line containing the base.

$T = \dfrac{ a h _a }{ 2 } \ \\ \ \\ h _a = \dfrac{ 2 \ T }{ a } = \dfrac{ 2 \cdot \ 20925.12 }{ 700 } = 59.79 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 20925.12 }{ 1498.96 } = 27.92 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 20925.12 }{ 800 } = 52.31$

### 7. Calculation of the inner angles of the triangle using a Law of Cosines

The Law of Cosines is useful for finding the angles of a triangle when we know all three sides. The cosine rule, also known as the law of cosines, relates all three sides of a triangle with an angle of a triangle. The Law of Cosines is the extrapolation of the Pythagorean theorem for any triangle. Pythagorean theorem works only in a right triangle. Pythagorean theorem is a special case of the Law of Cosines and can be derived from it because the cosine of 90° is 0. It is best to find the angle opposite the longest side first. With the Law of Cosines, there is also no problem with obtuse angles as with the Law of Sines, because cosine function is negative for obtuse angles, zero for right, and positive for acute angles. We also use inverse cosine called arccosine to determine the angle from cosine value.

$a^2 = b^2+c^2 - 2bc \cos α \ \\ \ \\ α = \arccos(\dfrac{ b^2+c^2-a^2 }{ 2bc } ) = \arccos(\dfrac{ 1498.96^2+800^2-700^2 }{ 2 \cdot \ 1498.96 \cdot \ 800 } ) = 2^\circ \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 700^2+800^2-1498.96^2 }{ 2 \cdot \ 700 \cdot \ 800 } ) = 175^\circ 42'51" \ \\ γ = 180^\circ - α - β = 180^\circ - 2^\circ - 175^\circ 42'51" = 2^\circ 17'9"$

An incircle of a triangle is a circle which is tangent to each side. An incircle center is called incenter and has a radius named inradius. All triangles have an incenter, and it always lies inside the triangle. The incenter is the intersection of the three angle bisectors. The product of the inradius and semiperimeter (half the perimeter) of a triangle is its area.

$T = rs \ \\ r = \dfrac{ T }{ s } = \dfrac{ 20925.12 }{ 1499.48 } = 13.95$

The circumcircle of a triangle is a circle that passes through all of the triangle's vertices, and the circumradius of a triangle is the radius of the triangle's circumcircle. Circumcenter (center of circumcircle) is the point where the perpendicular bisectors of a triangle intersect.

$R = \dfrac{ a b c }{ 4 \ r s } = \dfrac{ 700 \cdot \ 1498.96 \cdot \ 800 }{ 4 \cdot \ 13.955 \cdot \ 1499.478 } = 10028.8$

### 10. Calculation of medians

A median of a triangle is a line segment joining a vertex to the midpoint of the opposite side. Every triangle has three medians, and they all intersect each other at the triangle's centroid. The centroid divides each median into parts in the ratio 2:1, with the centroid being twice as close to the midpoint of a side as it is to the opposite vertex. We use Apollonius's theorem to calculate the length of a median from the lengths of its side.

$m_a = \dfrac{ \sqrt{ 2b^2+2c^2 - a^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 1498.96^2+2 \cdot \ 800^2 - 700^2 } }{ 2 } = 1149.319 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 800^2+2 \cdot \ 700^2 - 1498.96^2 } }{ 2 } = 57.297 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 700^2+2 \cdot \ 1498.96^2 - 800^2 } }{ 2 } = 1099.288$