This is because the inscribed angle of the circle or angle EFG is equal to the twice of the degree of the arc EG. Therefore, we can create this equation:
Since the slope of a line perpendicular to a line is always the negative inverse of that slope, you just switch the numerator and denominator around and add or omit the negative sign to the original slope.