Choose with
Restrict to the line segment between them:
This is continuous, with . The intermediate value theorem gives a with . Therefore
is the required zero on a line segment.