Equivalence of Definitions of Convex Polygon

$(1)$ implies $(2)$
Let $P$ be a convex polygon by definition $1$.

Thus $P$ is a convex polygon by definition $2$.

$(2)$ implies $(1)$
Let $P$ be a convex polygon by definition $2$.

Thus $P$ is a convex polygon by definition $1$.