% script.
tex: Expanding Brackets Lesson
\documentclass[12pt]{article}
% Packages for math, color, and formatting
\usepackage{amsmath, amssymb}
\usepackage[dvipsnames]{xcolor}
\usepackage{geometry}
\geometry{margin=1in}
\begin{document}
\begin{center}
{\LARGE \bfseries Expanding Brackets: Product of Two Binomials}\\[1em]
{\large Edexcel A-Level}\
\end{center}
\section*{Objectives}
\begin{itemize}
\item Expand the product of two brackets (binomials).
\item Recognize and combine like terms in expanded expressions.
\item Simplify expressions through addition and subtraction.
\end{itemize}
\section*{Diagnostic Questions}
\begin{enumerate}
\item $2 \times 3 = \underline{\hspace{1cm}}$
\item $a \times b = \underline{\hspace{1cm}}$
\end{enumerate}
\section*{Key Rule}
Holding one term fixed while distributing over a sum:
\[
a \times (b + 1) = a\times b + a.\]
\section*{Worked Example 1: Substitution Method}
\textbf{Goal:} Expand $(a + 2)(b + 1)$ by introducing $A = a + 2$.\\[0.5em]
\begin{align*}
A &= a + 2,\\
(a + 2)(b + 1) &= A(b + 1) \quad\rightarrow\quad \color{OliveGreen}{Ab} + \
color{OliveGreen}{A} \\
&= (a + 2)b + (a + 2) \\
&= \underbrace{ab}_{\color{Red}{\text{from }a\times b}} + \underbrace{2b}_{\
color{Blue}{\text{from }2\times b}} + \underbrace{a}_{\color{Red}{\text{from }a\
times1}} + \underbrace{2}_{\color{Blue}{\text{from }2\times1}} \\
&= ab + 2b + a + 2.
\end{align*}
\section*{Worked Example 2: FOIL/Distribution}
Apply the direct distribution method to $(a + 2)(b + 1)$:
\begin{align*}
(a + 2)(b + 1) &= a\cdot b + a\cdot1 + 2\cdot b + 2\cdot1 \\
&= ab + a + 2b + 2.
\end{align*}
Compare with Example 1: both give $ab + 2b + a + 2$.
\section*{Practice}
Expand and simplify the following expressions. Use colors to highlight like terms.
\begin{enumerate}
\item $(x + 2)(4x - 3y - 6)$\\
\color{Red}{$x\times$}\color{OliveGreen}{terms} $+$ \dots then combine like
terms.\\[1em]
\item $(3m - 1)(2m + 5)$
\item $(p + 4)(p - 2)$
\end{enumerate}
\section*{Summary}
We explored two methods:
\begin{enumerate}
\item \textbf{Substitution:} Let $A$ represent one bracket, distribute, then
substitute back.
\item \textbf{FOIL/Distribution:} Multiply each term in the first bracket by each
in the second.
\end{enumerate}
Combining like terms after distribution yields the simplified result in both
approaches.
\end{document}