A solution to a Dirichlet problem for the complex Monge-Ampere operator is characterized as a minimizer of an energy functional. A mutual energy estimate and a generalization of Holder's inequality is proved. A comparison is made with corresponding results in classical potential theory.