General background field calculations with fermion fields