Thomas' Calculus 13th Edition

Since there is no horizontal line that intersects the graph of $f(x)$ at more than point, then the function is one-to-one.