A circular ring of charge with radius R lies in the xy plane with its center at the origin. The ring carries a charge density λ(φ) = A cos^2(φ). Find the potential at a distance z above the center of the ring. What is the potential in terms of Q, the total charge of the loop?