The study of nonlinear evolution equations is a subject of active interest in different fields including physics, chemistry, and engineering. The exact solutions to nonlinear evolution equations provide insightful details and physical descriptions into many problems of interest that govern the real world. The Kadomtsev–Petviashvili (kp) equation, which has been widely used as a model to describe the nonlinear wave and the dynamics of soliton in the field of plasma physics and fluid dynamics, is discussed in this article in order to obtain solitary solutions and explore their physical properties. We obtain several new optical traveling wave solutions in the form of trigonometric, hyperbolic, and rational functions using two separate direct methods: the (w/g)-expansion approach and the Addendum to Kudryashov method (akm). The nonlinear partial differential equation (nlpde) is reduced into an ordinary differential equation (ode) via a wave transformation. The derived optical solutions are graphically illustrated using Maple 15 software for specific parameter values. The traveling wave solutions discovered in this work can be viewed as an example of solutions that can empower us with great flexibility in the systematic analysis and explanation of complex phenomena that arise in a variety of problems, including protein chemistry, fluid mechanics, plasma physics, optical fibers, and shallow water wave propagation.