Am I right in saying that the unit ball is convex if for any 2 points in the unit ball, the straight line segment between them is also in the unit ball?

The book uses Cauchy-Schwarz to prove convexity of the ball. Then they do the following:

hence which proves convexity of the ball.

How did they deduce the above inequality?

where .