Convex functions aren't the only functions with a single local (and global) minimum - consider sqrt(|x|) for a simple 1d example.
Define the epigraph of a function to be the set given by {(x, t) | f(x) ≤ t}. Then, we say f is a convex function iff the epigraph is a convex set.
This is equivalent (exercise for the reader!) to the usual definition that a function f is convex iff f((1-t)x + ty) ≤ (1-t)f(x) + tf(y), for all 0 ≤ t ≤ 1, with x, y in the domain of f.
Note that neither of these two definitions require differentiability (or twice-differentiability), but the definitions are equivalent in this case.[0]
---
[0] For proofs of all of these statements see B&V's Convex Optimization.