Illustration used to show how to draw a perpendicular to a straight line from a given point on the line…