  In this paper we discuss the explicit solution of certain extremal problems
in Bergman spaces. In order to do this, we develop methods to calculate the
Bergman projections of various functions. As a special case, we deal with
canonical divisors for certain values of $p$.
