A ladder rests against a vertical wall at an inclination α to the horizontal. Its foot is pulled away from the wall through a distance p, so that its upper end slides a distance q down the wall and then the ladder makes an angle to the horizontal, show that =.