It is natural to ask which convex optimization problems can be formulated as semidefinite programs. If such a formulation exists, how can we find it? The answer to these questions is equivalent to finding an exact representation of a convex set as a spectrahedron or projected spectrahedron. Whenever this can be done, we say that the convex set has a semidefinite representation or it is semidefinite representable.