Illustration of the construction used to create a perpendicular to a straight line from a given point…