A doubly nonlinear parabolic equation with a singular potential