The sides of a triangle have lengths , and , where . The largest and smallest angles of the triangle are and , respectively. Show by means of the cosine rule that
In the case , show that and hence find the ratio of the lengths of the sides of the triangle.