The energy density for a tetragonal crystal is
Note that the  term, the one that determines the basal plane anisotropy, is fourth order (same as the  term). The definition of  may vary by a constant multiple between publications.
The energy density for a rhombohedral crystal is