The triangle is called isosceles if it has two equal parties. They are called side. The third party is called the basis of an isosceles triangle. Such triangle has a number of specific properties. The medians which are carried out to sides are equal. Thus in an isosceles triangle two different medians, one is carried out to the triangle basis, the second - to side.

## Instruction

1. Let the triangle of ABC which is isosceles be given. Lengths of its side and the basis are known. It is necessary to find the median lowered on the basis of this triangle. In an isosceles triangle this median is at the same time a median, a bisector and height. Thanks to this property, it is very simple to find a median to the triangle basis. Use Pythagorean theorem for a rectangular triangle of ABD: AB² = BD² + AD² where BD is a required median, AB - side (for convenience let it is equal a), and AD - a half of the basis (for convenience take the basis equal b). Then BD² = a² - b²/4. Find a root from this expression and receive median length.

2. A little more difficult the situation with the median which is carried out to side is. For a start represent both such medians in the drawing. These medians are equal. Designate side by letter a, and the basis - b. Designate equal corners at the basis α. Each of medians divides side into two equal parts of a/2. Designate length of a required median x.

3. According to the theorem of cosines it is possible to express any party of a triangle through two others and a cosine of the angle between them. Let's write down the theorem of cosines for AEC triangle: AE² = AC² + CE² - 2AC·CE·cos∠ACE. Or that the same, (3x)² = (a/2)² + b² - 2·ab/2·cosα = a²/4 + b² - ab · cosα. Under the terms of a task of the party are known, and here the corner at the basis is not present therefore calculations continue.

4. Now apply the theorem of cosines to a triangle of ABC to find a corner at the basis: AB² = AC² + BC² - 2AC·BC·cos∠ACB. In other words, a² = a² + b² - 2ab·cosα. Then cosα = b / (2a). Substitute this expression in previous: x \= to a²/4 + b² - ab · cosα = a²/4 + b² - ab·b/(2a) = a²/4 + b² - b²/2 = (a²+2b²)/4. Having calculated a root of the right part of expression, you will find the median which is carried out to side.