Abstract
With the aid of a computer algebra system, we present lump solutions to a (2+1)-dimensional extended Kadomtsev–Petviashvili equation (eKP) and give the sufficient and necessary conditions to guarantee analyticity and rational localization of the solutions. We plot a few solutions for some specific values of the free parameters involved and finally derive one of the lump solutions of the Kadomtsev–Petviashvili (KP) equations from the lump solutions of the eKP equation.