I'm trying to figure out the relation between the diagonals of a regular octagon from a point. Can any one help me out?

In the attached image, please help me to find out the relation between the lengths of a,b,c with respect to diameter d of the circle to which it's inscribed