Right triangle and "b" are the legs of the triangle. If the incircle is tangent to the hypotenuse AB at point P, then denoting the semi-perimeter as "s", we have and , and the area is given by This formula only applies to right triangles. If an altitude is drawn from the vertex with the right angle to the hypotenuse then the triangle is divided into two smaller triangles which are both similar to the original and therefore similar to each other. From this: In equations, where "a", "b", "c", "d", "e", "f" are as shown in the diagram. Thus Moreover, the
Heronian triangle triangles with these sidelengths, and joins them together along the sides of length "a", to obtain a triangle with integer side lengths "c", "e", and "b" + "d", and with area If "a" is even then the area "A" is an integer. Less obviously, if "a" is odd then "A" is still an integer, as "b" and "d" must both be even, making "b"+"d" even too. Some Heronian triangles cannot be obtained by joining together two right-angled triangles with integer sides as described above. For example, a 5, 29, 30 Heronian triangle with area 72 cannot be constructed from two