\documentclass{article}
\title{Gauss's Law}
\author{anon}
\date{\vspace{-5ex}}
\begin{document}
\maketitle
\noindent
$\Phi_E$ = Electric Flux \\ E = Electric Field \\ Q = Point Charge \\ $\phi$ = Angle between $\vec E$ and normal
\\normal = a normal is an object such as a line, ray, or vector that is perpendicular to a given object
\section*{BASIC FORMULA}
$$\Phi_E = \oint Ecos\phi ~dA = \frac{Q_{encl}} {\epsilon_0}$$
\section*{basic ideas}
\end{document}
So this is my code. I am very new to LaTeX and I have searched online, however I can't seem to find how to center a single heading. I want the basic formula title to be centered, however I don't want the rest to be.

\maketitle,or not use it at all. In either case you might want to look up the source for\maketitlein article.cls (base folder). – John Kormylo Mar 29 '23 at 02:35