\documentclass[a4paper,landscape,10pt]{article}
\usepackage[margin=0.6cm,top=0.5cm,bottom=0.4cm]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{array}
\usepackage{tikz}
\usepackage{tabularx}
\usepackage{colortbl}
\usepackage{xcolor}

\definecolor{teal}{HTML}{1B4965}
\definecolor{teallight}{HTML}{5A8FA3}
\definecolor{tealtint}{HTML}{EBF2F6}
\definecolor{accentorange}{HTML}{E37222}

\pagestyle{empty}
\setlength{\parindent}{0pt}

\newcommand{\sketchgrid}{%
\begin{tikzpicture}[baseline=(current bounding box.center),scale=0.22]
\clip (-5.5,-5.5) rectangle (5.5,5.5);
\draw[gray!25,thin] (-5,-5) grid[step=1] (5,5);
\draw[teal,thick,->] (-5.3,0) -- (5.3,0);
\draw[teal,thick,->] (0,-5.3) -- (0,5.3);
\end{tikzpicture}%
}

\newcommand{\examplegrid}{%
\begin{tikzpicture}[baseline=(current bounding box.center),scale=0.22]
\clip (-5.5,-5.5) rectangle (5.5,5.5);
\draw[gray!25,thin] (-5,-5) grid[step=1] (5,5);
\draw[teal,thick,->] (-5.3,0) -- (5.3,0);
\draw[teal,thick,->] (0,-5.3) -- (0,5.3);
\draw[accentorange,thick,domain=-1.2:5.2,samples=50] plot ({\x},{0.18*(\x*\x - 4*\x - 5)});
\fill[accentorange] (2,{0.18*(-9)}) circle (2.5pt);
\end{tikzpicture}%
}

\newcommand{\solsketch}[4]{%
\begin{tikzpicture}[baseline=(current bounding box.center),scale=0.17]
\clip (-5.5,-5.5) rectangle (5.5,5.5);
\draw[gray!25,thin] (-5,-5) grid[step=1] (5,5);
\draw[teal,thick,->] (-5.3,0) -- (5.3,0);
\draw[teal,thick,->] (0,-5.3) -- (0,5.3);
\draw[accentorange,thick,domain=#1,samples=50] plot ({\x},{#2});
\fill[accentorange] (#3,#4) circle (3pt);
\end{tikzpicture}%
}

\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}

\newcommand{\tealbar}[1]{%
\noindent\colorbox{teal}{\parbox{\dimexpr\textwidth-2\fboxsep}{%
\centering\vspace{4pt}{\Large\bfseries\color{white}#1}\vspace{4pt}}}%
}

\newcommand{\jmathsfooter}{%
\noindent\textcolor{teal}{\rule{\textwidth}{0.8pt}}%
\smallskip
\noindent\hfill{\footnotesize\textcolor{teallight}{jmaths.xyz}}%
}

\newcommand{\headerrow}{%
\noalign{\hrule height 0.8pt}
\rowcolor{tealtint}
\rule{0pt}{1.6em}\textbf{\#} &
\textbf{Equation} &
\textbf{$y$-int} &
\textbf{Shape} &
$\boldsymbol{\Delta = b^2 - 4ac}$ &
\textbf{Factorised} &
\textbf{Roots} &
\textbf{Vertex Form} &
\textbf{Vertex} &
\textbf{Sketch}\rule[-0.5em]{0pt}{0pt} \\
\noalign{\hrule height 0.8pt}
}

\begin{document}

% ============ PAGE 1 ============
\tealbar{Quadratic Functions --- Graphical \& Algebraic Forms}
\vspace{4pt}
\noindent
\begin{minipage}[t]{0.55\textwidth}
{\small Complete the table. Each row represents a single quadratic.\\ Some information is given; fill in the rest.}
\end{minipage}\hfill
\begin{minipage}[t]{0.43\textwidth}
\raggedleft{\small Name: \rule{4cm}{0.4pt} \quad Date: \rule{2.2cm}{0.4pt}}
\end{minipage}
\vspace{6pt}
\setlength{\tabcolsep}{3pt}

{\small
\begin{tabularx}{\textwidth}{|M{0.5cm}|C|C|C|C|C|C|C|C|C|}
\headerrow
\rowcolor{tealtint!40}
\textcolor{teal}{\textbf{e.g.}} & $y = x^2 - 4x - 5$ & $(0,-5)$ & Concave up & $36$ & $y=(x-5)(x+1)$ & $(5,0)$ \par $(-1,0)$ & $y=(x-2)^2 - 9$ & $(2,-9)$ & \examplegrid \\
\hline
1 & $y = x^2 + 2x - 3$ &&&&&&&& \sketchgrid \\
\hline
2 &&&& & $y=(x-2)(x-10)$ &&&& \sketchgrid \\
\hline
3 &&&&& & & $y=(x+4)^2 - 9$ && \sketchgrid \\
\hline
4 && $(0,3)$ && $4$ &&&&& \sketchgrid \\
\hline
5 && $(0,9)$ && $< 0$ & Does not factorise && & $(-2,5)$ & \sketchgrid \\
\hline
\end{tabularx}
}

\vfill
\jmathsfooter

% ============ PAGE 2 ============
\newpage
\tealbar{Quadratic Functions --- Graphical \& Algebraic Forms \emph{(continued)}}
\vspace{6pt}

{\small
\begin{tabularx}{\textwidth}{|M{0.5cm}|C|C|C|C|C|C|C|C|C|}
\headerrow
6 & $y=-x^2+6x-16$ &&&&&&&& \sketchgrid \\
\hline
7 &&&&& $y=(1-x)(x+7)$ &&&& \sketchgrid \\
\hline
8 & $y=-x^2+4x+5$ &&&&&&&& \sketchgrid \\
\hline
9 &&& Concave down & $\Delta = 0$ && $(2,0)$ &&& \sketchgrid \\
\hline
10 &&&& $\Delta = 36$ &&&& $(3,9)$ & \sketchgrid \\
\hline
\end{tabularx}
}

\vfill
\noindent\textcolor{teal}{\rule{\textwidth}{0.8pt}}
\smallskip
\noindent{\small\itshape\textcolor{teal}{Can you draw any general conclusions from the table?}}\hfill{\footnotesize\textcolor{teallight}{jmaths.xyz}}

% ============ PAGE 3: SOLUTIONS ============
\newpage
\tealbar{Quadratic Functions --- SOLUTIONS}
\vspace{6pt}
\renewcommand{\arraystretch}{1.5}

{\footnotesize
\begin{tabularx}{\textwidth}{|M{0.5cm}|C|C|C|C|C|C|C|C|C|}
\headerrow
\rowcolor{tealtint!40}
\textcolor{teal}{\textbf{e.g.}} & $y = x^2 - 4x - 5$ & $(0,-5)$ & Concave up & $36$ & $y=(x-5)(x+1)$ & $(5,0)$ \par $(-1,0)$ & $y=(x-2)^2-9$ & $(2,-9)$ &
\solsketch{-1.2:5.2}{0.18*(\x*\x-4*\x-5)}{2}{-1.62} \\
\hline
1 & $y = x^2 + 2x - 3$ & $(0,-3)$ & Concave up & $16$ & $y=(x+3)(x-1)$ & $(-3,0)$ \par $(1,0)$ & $y=(x+1)^2-4$ & $(-1,-4)$ &
\solsketch{-3.8:1.8}{0.22*(\x*\x+2*\x-3)}{-1}{-0.88} \\
\hline
2 & $y = x^2 - 12x + 20$ & $(0,20)$ & Concave up & $64$ & $y=(x-2)(x-10)$ & $(2,0)$ \par $(10,0)$ & $y=(x-6)^2-16$ & $(6,-16)$ &
\solsketch{1:11}{0.03*(\x*\x-12*\x+20)}{6}{-0.48} \\
\hline
3 & $y = x^2 + 8x + 7$ & $(0,7)$ & Concave up & $36$ & $y=(x+7)(x+1)$ & $(-7,0)$ \par $(-1,0)$ & $y=(x+4)^2-9$ & $(-4,-9)$ &
\solsketch{-7.8:-0.2}{0.12*(\x*\x+8*\x+7)}{-4}{-1.08} \\
\hline
4 & $y = x^2 - 4x + 3$ & $(0,3)$ & Concave up & $4$ & $y=(x-3)(x-1)$ & $(3,0)$ \par $(1,0)$ & $y=(x-2)^2-1$ & $(2,-1)$ &
\solsketch{0.1:3.9}{0.5*(\x*\x-4*\x+3)}{2}{-0.5} \\
\hline
5 & $y = x^2 + 4x + 9$ & $(0,9)$ & Concave up & $-20$ & Does not factorise & None & $y=(x+2)^2+5$ & $(-2,5)$ &
\solsketch{-4.5:0.5}{0.15*(\x*\x+4*\x+9)}{-2}{0.75} \\
\hline
\end{tabularx}
}

\vfill
\jmathsfooter

% ============ PAGE 4: SOLUTIONS CONTINUED ============
\newpage
\tealbar{Quadratic Functions --- SOLUTIONS \emph{(continued)}}
\vspace{6pt}

{\footnotesize
\begin{tabularx}{\textwidth}{|M{0.5cm}|C|C|C|C|C|C|C|C|C|}
\headerrow
6 & $y=-x^2+6x-16$ & $(0,-16)$ & Concave down & $-28$ & Does not factorise & None & $y=-(x-3)^2-7$ & $(3,-7)$ &
\solsketch{0.5:5.5}{-0.12*(\x*\x-6*\x+16)}{3}{-0.84} \\
\hline
7 & $y=-x^2-6x+7$ & $(0,7)$ & Concave down & $64$ & $y=(1-x)(x+7)$ & $(1,0)$ \par $(-7,0)$ & $y=-(x+3)^2+16$ & $(-3,16)$ &
\solsketch{-7.8:1.8}{-0.06*(\x*\x+6*\x-7)}{-3}{0.96} \\
\hline
8 & $y=-x^2+4x+5$ & $(0,5)$ & Concave down & $36$ & $y=-(x-5)(x+1)$ & $(5,0)$ \par $(-1,0)$ & $y=-(x-2)^2+9$ & $(2,9)$ &
\solsketch{-1.5:5.5}{-0.12*(\x*\x-4*\x-5)}{2}{1.08} \\
\hline
9 & $y=-x^2+4x-4$ & $(0,-4)$ & Concave down & $0$ & $y=-(x-2)^2$ & $(2,0)$ & $y=-(x-2)^2$ & $(2,0)$ &
\solsketch{-0.5:4.5}{-0.2*(\x-2)*(\x-2)}{2}{0} \\
\hline
10 & $y=-x^2+6x$ & $(0,0)$ & Concave down & $36$ & $y=-x(x-6)$ & $(0,0)$ \par $(6,0)$ & $y=-(x-3)^2+9$ & $(3,9)$ &
\solsketch{-0.5:6.5}{-0.1*\x*(\x-6)}{3}{0.9} \\
\hline
\end{tabularx}
}

\vfill
\jmathsfooter

\end{document}
