This follows from combining Heron's formula for the area of a triangle in terms of the sides with the area formula (1/2)×base×height, where the base is taken as side a and the height is the altitude from A.