Critical points with applications in PDEs