This is intended to help my students better understand how a potentiometer give the analog information it does.
Thanks RBEbook for the difficult calculations