Everything from the 2 lessons of this topic on a few pages: the key idea of each lesson, the diagram to remember, the points to learn and the traps examiners set. Read it, cover it, test yourself.
For a discrete random variable \(X\) taking values \(0, 1, 2, \ldots\), the probability generating function is \(G_X(t) = E(t^{X}) = \displaystyle\sum_{x} P(X = x)\,t^{x}\). The coefficient of \(t^{r}\) is \(P(X = r)\), so \(P(X = r) = \dfrac{G^{(r)}(0)}{r!}\), and \(G(1) = \sum P(X = x) = 1\). The standard PGFs are: discrete uniform on \(1, \ldots, n\): \(\dfrac{t(1 - t^{n})}{n(1 - t)}\); \(\mathrm{B}(n, p)\): \((q + pt)^{n}\); \(\mathrm{Geo}(p)\): \(\dfrac{pt}{1 - qt}\); \(\mathrm{Po}(\lambda)\): \(e^{\lambda(t - 1)}\), where \(q = 1 - p\). For \(Y = aX + b\), \(G_Y(t) = t^{b}\,G_X(t^{a})\).
It is \(G(1) = 1\), not \(G(0) = 1\). \(G(0)\) is just \(P(X = 0)\), which is often zero. Using \(G(0) = 1\) to find \(k\) in \(k(1 + 2t)^{3}\) would give \(k = 1\), and then the probabilities would add up to 27.
Cambridge's geometric distribution counts the trials up to and including the first success, so \(X\) starts at 1 and the PGF has a factor \(t\) on top: \(\dfrac{pt}{1 - qt}\), not \(\dfrac{p}{1 - qt}\). In the binomial PGF the \(t\) goes with \(p\), the probability of success: \((q + pt)^{n}\), not \((p + qt)^{n}\).
For \(Y = aX + b\) the PGF is \(t^{b}G_X(t^{a})\): the \(b\) becomes a power of \(t\) outside, and the \(a\) becomes a power of \(t\) inside. It is NOT \(G_X(at + b)\), and NOT \(aG_X(t) + b\), which would not even satisfy \(G(1) = 1\).
For \(G(t) = E(t^{X}) = \sum p_{r}t^{r}\): \(G(1) = 1\), \(E(X) = G'(1)\) and \(\operatorname{Var}(X) = G''(1) + G'(1) - [G'(1)]^{2}\) (both in MF19). Differentiate FIRST, then put \(t = 1\). If \(X\) and \(Y\) are independent, \(G_{X+Y}(t) = G_{X}(t)\,G_{Y}(t)\), and the same holds for any number of independent variables. \(P(X + Y = k)\) is the coefficient of \(t^{k}\) in the product.
\(G''(1)\) is \(E\big(X(X-1)\big)\), NOT \(E(X^{2})\). Writing \(\operatorname{Var}(X) = G''(1) - [G'(1)]^{2}\) drops the \(+\,G'(1)\) and gives \(\tfrac{17}{4} - \tfrac{25}{4} = -2\) in the first example: a negative variance is a sure sign of this slip. Also differentiate BEFORE putting \(t = 1\); \(G(1)\) is always 1 and tells you nothing about the mean.
In 9231 the geometric variable counts trials up to and INCLUDING the first success (\(r = 1, 2, \dots\)), so its PGF has \(t\) on top: \(\dfrac{pt}{1 - qt}\). Leaving out that \(t\) gives \(\dfrac{p}{1 - qt}\), the PGF of the number of failures, with mean \(\dfrac{q}{p}\), not \(\dfrac{1}{p}\).
Multiply PGFs, never add them: \(G_{X}(t) + G_{Y}(t)\) equals 2 at \(t = 1\), so it is not a PGF at all. The result needs INDEPENDENCE. And a sum of two copies is not \(2X\): if \(X_{1}\) and \(X_{2}\) are independent with PGF \(G(t)\), then \(X_{1} + X_{2}\) has PGF \([G(t)]^{2}\), but \(2X_{1}\) has PGF \(G(t^{2})\).