A ball of radius $r_0$ starts from rest at point $A$ on the inside of a track of radius $R_0$. The question is what will its speed be when it reaches the lowest point of the track, point $B$, assuming it is rolling without slipping?
My textbook has this as answer. We use conversation of mechanical energy to find the speed at the lowest point, and since the ball is rolling without slipping, we can use $\omega = v/r_0$. Call the zero level for gravitational potential energy to be the lowest point on which the ball rolls. Hence we have \begin{align*} mgR_0 &= mgr_0 + \frac{1}{2} m v_B^2 + \frac{1}{2} I \omega^2 \\ &= mgr_0 + \frac{1}{2} mv_B^2 + \frac{1}{2}(\frac{2}{5} mr_0^2) (\frac{v_B}{r_0})^2. \end{align*} It follows that $v_B = \sqrt{10/7 g(R_0 - r_0)}$.
My question is why do we have to add the factor '$mgr_0$' in the calculation? I thought all the gravitational potential energy was transformed into kinetic energy at the lowest point of the track? How can the ball have potential energy there when we set $y=0$ at that point?