Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 4 17F Solution Created 2026-09-24 Updated 2026-10-14
Extremal graph theory asks how many edges a graph can have while avoiding a prescribed subgraph. Define as the maximum number of edges of an -vertex simple graph containing no copy of ; copies need not be induced. The extremal graph often reveals the structural reason a forbidden configuration must appear.
A complete proof of Mantel theorem illustrates this principle. In a triangle-free graph, the neighborhoods of the endpoints of any edge are disjoint, so . Summing over edges gives , where is the edge count. By Cauchy-Schwarz inequality,Thus when , and the zero-edge case is immediate. A balanced complete bipartite graph is triangle-free and has edges. ThereforeThe proof links a local forbidden triangle to a global degree inequality.
The general Turan theorem states that the balanced complete -partite graph maximizes the edge count among -free graphs. Its leading density is . A standard symmetrization explanation is to replace a lower-degree vertex by a twin of a nonadjacent higher-degree vertex: no is created and the edge count does not decrease. Iterating at the level of twin classes produces a complete multipartite graph with at most parts. Moving vertices between parts then balances the part sizes and maximizes the number of cross edges. This provides structural intuition beyond the preceding exact triangle proof.
For any fixed graph with chromatic number , the Erdős-Stone theorem isThe lower bound is the Turan construction: an -partite graph cannot contain . To describe the upper-bound proof, fix an edge-density excess above . Apply a regularity partition with an error parameter much smaller than that excess and a positive density threshold. Delete irregular and low-density pairs; the resulting reduced graph still has density above the Turan threshold, so it contains . The corresponding vertex classes form pairwise regular, positive-density pairs. The embedding argument successively chooses vertices with large neighborhoods in every remaining class; regularity discards only a small exceptional set at each choice. With the parameters sufficiently small and sufficiently large, this embeds a complete -partite graph with vertices in each part, and therefore a properly colored copy of . This explains why chromatic number, rather than the exact shape of , controls the leading quadratic term.
For example , so forbidding a five-cycle still allows asymptotically edges, and exceeding that density by any fixed positive fraction eventually forces a five-cycle. For the exact Turan theorem strengthens the asymptotic statement. For bipartite , the theorem gives only , leaving an important finer problem: for example -free graphs have upper bounds of order from counting common neighborhoods. Extremal results consequently range from exact finite bounds to asymptotic density thresholds and stability questions about near-extremal structure.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 110 2 Solution Created 2026-10-03 Updated 2026-10-14
Symmetrization for an arbitrary real coefficient. Among graphs maximizing , choose one maximizingFor a vertex , put . This is the contribution of edges and triangles in a graph containing . If are nonadjacent, Zykov symmetrization replacing by a clone of changes by ; the opposite replacement changes it by . Maximality implies , so both changes preserve .
Let and . In the first replacement the vertex degrees in increase by one and those in decrease by one; in the opposite replacement these changes reverse. The changes to cancel when the two replacements are added. Since ,If the two vertex neighbourhoods differ, one replacement increases , a contradiction. Thus every pair of nonadjacent vertices has the same vertex neighbourhood. Nonadjacency, with equality allowed, is an equivalence relation: if and are nonadjacent and and are nonadjacent, their identical vertex neighbourhoods forbid as well. Its classes are independent sets and every cross-class edge is present. ThereforeThis edge-triangle symmetrization works for either sign of .
The exact supporting line. For , writeWe prove the triangle support line between bipartite and tripartite Turan graphs by maximizing . First . For , its values are respectively . For , the exact balancing of the Turán graph gives , while and the arithmetic-geometric mean inequality gives . Hence
By edge-triangle symmetrization a maximizing graph can be taken complete multipartite graph; among such maximizers use one with the fewest nonempty parts. If there are at least four parts, let be the two smallest sizes. Then . Merging them loses edges and triangles in a graph, so the objective changes byThis contradicts the choice of the number of parts. Thus at most three parts remain.
For three part sizes , the objective isIf , merging the parts of sizes does not decrease it, again contradicting minimality. If and , transferring one vertex from the largest to the smallest part raises by and strictly increases the objective. Thus a three-part maximizer has all sizes differing by at most one, and is . A maximizer with at most two parts has objective at most , since it has no triangles in a graph and the Mantel theorem bounds its edges. Finally,Therefore every graph satisfies . At the prescribed edge count this givesFor , the conclusion is simply the nonnegative lower bound zero. All rounding in the Turán graphs has been retained.
One edge above the bipartite threshold. Write . We prove the Triangle lower bound one edge above the Mantel threshold by induction on , allowing at least edges. For , five edges on four vertices give two triangles in a graph, and adding edges preserves this bound.
We will also use the following consequence of an inductive bound: on vertices, at least edges, for an integer , force at least triangles in a graph. Delete surplus edges first to leave exactly . Repeatedly delete an edge in a triangle in a graph until edges remain. The Mantel theorem guarantees such a triangle in a graph at every step; each deletion destroys at least one distinct triangle in a graph. Apply the inductive bound to the remaining graph.
Now take exactly edges. If every edge lies in a triangle in a graph, the edge-triangle incidence bound gives . This is at least for ; the base case was handled separately.
Otherwise choose an edge in no triangle in a graph. Its endpoints have disjoint vertex neighbourhoods, so . Deleting removes exactly edges and leaves at least edges. If , it leaves at least edges, and the strengthened inductive bound gives at least triangles in a graph already.
If , induction gives at least triangles in a graph after deletion. There must be an additional triangle in a graph containing or . Otherwise both and are independent sets; since they are disjoint and cover all vertices, would be bipartite graph, contradicting by the Mantel theorem. HenceThe bound is sharp: add one internal edge to one class of the complete bipartite graph . Its triangles in a graph are precisely that edge together with each of the vertices in the other class.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 110 3 Solution Created 2026-10-03 Updated 2026-10-05
Statement and definitions. For disjoint nonempty sets of vertices, their edge density of a bipartite graph is . They form a regular pair of vertex sets, or an -uniform pair, ifwhenever , , and .
The Szemerédi regularity lemma states that for every and positive integer , there are integers such that every graph of order has a set partitionwith , , equal nonzero sizes , and at most unordered pairs , , that fail to be -uniform. It is enough to prove this for , since decreasing the parameter strengthens the conclusion.
Energy increment. For the proof, regard each exceptional vertex as a singleton part and use the equitable regularity energyThe sum is over ordered pairs, including diagonal pairs; for those pairs define as the mean adjacency indicator on . Thus . Under a refinement, the subrectangle densities have the original density as their weighted mean. The Cauchy-Schwarz inequality, equivalently the nonnegativity of their weighted variance, gives .
Suppose there are more than irregular pairs, with main cell size . For each such pair choose witnesses , of sizes at least and with . Refine every main cell by all its witness subsets. Each splits into at most atoms, and we may use the larger bound .
For an ordered irregular rectangle, write its refined densities as and relative areas as . The energy gain on that rectangle isThe witness rectangle has relative area at least . Applying the Cauchy-Schwarz inequality to the subrectangles it contains shows that this expression is greater than . There are two orientations of each irregular pair. Since , the total gain is greater than
Restoring equal sizes without losing energy. Put , assuming . Split every refined atom into sets of size , putting its leftover fewer than vertices into the exceptional set as singleton parts. This is a further refinement, so the energy cannot decrease. The number of new exceptional vertices is at mostThe number of new main cells satisfiesFor the first inequality, in each old cell the leftovers have total size less than , so at least one full chunk survives. All previous exceptional singleton parts are kept. Treating leftovers as singleton parts is what makes the energy increment survive equitabilization exactly.
Take and choose so large that . Start with equal main cells, with fewer than exceptional vertices. Define a finite bound by iterating a total of times, starting from . Choose sufficiently large that and whenever .
At each of the first refinements, the exceptional set has size at mostthe cell count is between and , and , so all the chunk sizes above are valid. But unsuccessful refinements would raise by more than , which is impossible. Thus the procedure terminates at a partition satisfying the Szemerédi regularity lemma.
Three linearly large uniform sets. Apply the Szemerédi regularity lemma withFor , delete all edges touching , all internal main-cell edges, all edges of irregular pairs, and all edges of regular pairs whose edge density of a bipartite graph is less than . The respective losses are bounded byThus the total loss is at most , and the remaining graph has at leastedges. Form the reduced graph of a regularity partition , joining two main cells precisely when they are -uniform and have edge density of a bipartite graph at least . If their common size is , the remaining edge count is at most . Since , we obtain . The Mantel theorem gives a triangle in a graph in . Its three cells have the required pairwise density and are -uniform: an -uniform pair is uniform for any larger parameter.
Each selected cell has size . ChooseFor , the Mantel theorem gives a triangle in a graph in the original graph, since its edge count exceeds ; take its three singleton vertices. Their pairs have density one and are uniform for every positive parameter, and . Therefore in all casesThe constant is absolute; the energy proof gives a very large bound for , which does not affect its positivity.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 17G ii Solution Created 2026-09-24 Updated 2026-09-29
Here and . By Mantel theorem, a triangle-free graph of this order has at mostedges, so contains a triangle in a graph.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 17G i Solution Created 2026-09-24 Updated 2026-10-14
Turan theorem states that among all -vertex graphs containing no , the maximum number of edges is attained by the Turán graph , the complete multipartite graph whose part sizes differ by at most one.
Here is the Zykov symmetrization proof. Start with an extremal -free graph. If nonadjacent vertices have different neighbourhoods, replace the lower-degree vertex by a clone of the higher-degree one: delete all its incident edges and join it to precisely the neighbours of the other vertex. This does not decrease the number of edges and cannot create a , because a clique using the clone corresponds to one using the original vertex. Repeating the operation, with the standard tie-breaking that merges equal-neighbourhood classes, produces a complete multipartite extremal graph. It has at most nonempty parts, since choosing one vertex from each part gives a clique.
If two part sizes satisfy , moving one vertex from the larger part to the smaller changes the number of cross-edges byThus an extremal partition has exactly parts whose sizes differ by at most one. This is and proves the theorem. For it is Mantel theorem: a triangle-free graph on vertices has at most edges.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 2 17F a Solution Created 2026-09-24 Updated 2026-10-03
The extremal number is the maximum number of edges in an -vertex graph containing no subgraph isomorphic to .
Let be triangle-free with edges. For every edge , the neighbourhoods of and are disjoint apart from their endpoints, so
. Summing over edges and applying Cauchy-Schwarz inequality giveswhileThus , proving the required Mantel theorem bound.
. Summing over edges and applying Cauchy-Schwarz inequality giveswhileThus , proving the required Mantel theorem bound.
Triangle deletion in the alteration method 2026-10-14
If a graph has edges and triangles, successively delete one edge from a remaining triangle. No new triangle is created and at most deletions are needed, so a triangle-free subgraph has at least edges. A random-graph expectation lower bound on therefore proves existence of a large triangle-free graph. With edge probability , the expectation is ; this is a useful existence bound but is not within a constant factor of the sharp quadratic Mantel theorem bound.
Turán's theorem Created 2026-10-14 Updated 2026-10-14
How many edges can we retain while excluding a prescribed clique? For integers and , every simple graph on vertices containing no complete subgraph satisfiesEquality holds exactly for the Turán graph , up to graph isomorphism. Thus the extremal number is .[ref]
For example, has independent sets of sizes and edges, as counted in Turán graph. It contains triangles in a graph, but no four-vertex clique. Consequently any simple graph on eight vertices with edges contains , while edges alone do not force one. Excluding larger cliques permits denser graphs; Mantel theorem is precisely the first nontrivial case.
A short proof outline uses Zykov symmetrization. If an extremizer is not a complete multipartite graph, it has vertices with absent and present. If either or has larger vertex degree than , clone that vertex in place of . Otherwise replace both by nonadjacent clones of , gaining edges. Both contradict extremality; balancing the resulting at most parts gives .[ref]
The vertex cloning in a graph step preserves clique exclusion because any clique using a clone can substitute its original vertex; nonadjacent clones cannot occur together in a clique. At most parts can be nonempty, since selecting one vertex from each gives a clique. If fewer than parts are nonempty and one has at least two vertices, splitting it creates more edges, so it cannot be extremal. For the bound is zero. For , the Turán graph is , and the bound is the total possible edges.