the graphing function is shown in red