\documentclass[a4paper]{article}
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tcolorbox}
\usepackage{fancyhdr}
\usepackage{pgfplots}
\usepackage{tabularx}
\usepackage{keystroke}
\usepackage{listings}
\usepackage{xcolor} % used only to show the phantomed stuff
\definecolor{cas}{HTML}{e6f0fe}

\pagestyle{fancy}
\fancyhead[LO,LE]{Year 12 Specialist - Dynamics}
\fancyhead[CO,CE]{Andrew Lorimer}

\setlength\parindent{0pt}

\begin{document}

  \title{Dynamics}
  \author{}
  \date{}
  \maketitle

  \section{Forces}

  \subsection{Resolution of forces}

  The resolved part of a force \(P\) at angle \(\theta\) is equal to \(P \cos \Theta\)

\end{document}
