In this study, the Lie point symmetries and optimal system have been established. We discuss the biofilm model’s soliton solutions. To examine a nonlinear dynamical biofilm system, which is simply a bistable Allen–Cahn equation with quartic potential, to determine solitary wave profiles using the considered equation, a new auxiliary equation technique is used. A suitable variable transformation is used to convert the governing equation into a nonlinear ordinary differential equation. The unified approach is utilized to evaluate periodic solutions, solitary and soliton solutions as well as several newly discovered exact solitary wave solutions, it can be accomplished via Mathematica (https://www.wolfram.com/mathematica/online/). The new auxiliary equation approach is an efficient method for creating unique wave profiles based on a variety of soliton families. Also, the results are graphically visualized, by using the appropriate parametric settings. The outcomes are shown graphically in two dimensions, three dimensions, and contour form. The Hamiltonian conditions are satisfied by the planer dynamical framework of equations to ensure as the system that was generated is a conservative Hamiltonian dynamical system which includes all traveling wave structures. A sensitivity evaluation is used to explore the governing model’s thoroughly dynamical properties. It is demonstrated that the model becomes more dependent on the beginning conditions than the variables. The strategy could be used to look for exact solutions to various nonlinear evolution equations. We believe that this study will have important applications in different areas of science.