Existence of weak solutions to degenerate p-Laplacian equations and integral formulas