Topics (349k) Articles (361k) Users (405) Discussions (237) Comments (383) Files (12k) New article
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 3 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
The Horn copositive matrix is invariant under cyclic permutation of its five coordinates: its negative entries correspond precisely to neighboring indices on the five-cycle. For any , cyclically relabel the coordinates so that is a smallest coordinate. In particular, .
Using the stated identity in this coordinate order,The square is nonnegative, and both remaining terms are nonnegative since and . Cyclic invariance means the relabeling has not changed the quadratic form. Thus is a copositive matrix for every original ordering of .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 3 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
First suppose , with a real positive semidefinite matrix and a symmetric nonnegative matrix. Factor , and write . ThenEach term is a square multiplied by a nonnegative scalar, so is a sum of squares polynomial.
Conversely, suppose . Because is a degree-four homogeneous polynomial, the homogeneous sum of squares representation allows every to be quadratic and homogeneous. Explicitly, higher-degree parts cannot cancel in a sum of squares; constant parts vanish because , and the degree-two part forces all linear parts to vanish. WriteSince is invariant under every coordinate sign change, sign averaging of a sum of squares over independent Rademacher random variables givesThe cross terms vanish because their sign products contain an odd power of at least one independent sign. SetThen is a positive semidefinite matrix and is a symmetric nonnegative matrix. Comparing the coefficients of and gives . This proves the sum of squares criterion for a biquadratic form.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
For , define . Then lies in the nonnegative orthant andIf is a copositive matrix, this is nonnegative for every , so is a globally nonnegative polynomial. Conversely, every has the form by taking . If is globally nonnegative, then for every such , proving that is a copositive matrix. The map covers the entire nonnegative orthant, which is the key to both directions.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 2 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
For a proper three-graph colouring , associate the colors with the three roots of unity , viewed as unit vectors in . Define using the real inner product.
This is twice a Gram matrix, so it is a positive semidefinite matrix. Its diagonal is . On every edge, the endpoint colors differ, so their vectors make angle or and . Thus and this are feasible in the second semidefinite program, provingThis is the regular simplex construction of a strict vector coloring.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 2 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Let be the all-ones matrix. Every feasible block matrix in the first formulation has , because its principal submatrix on indices is and is a positive semidefinite matrix. In particular, .
By the Schur complement,Set . Then , , and on every edge. Conversely, for a feasible in the second formulation, its nonnegative diagonal gives , and has , on edges, and .
Both transformations preserve the objective . Hence the two semidefinite programs defining the complement theta number have the same feasible objective values and the same minimum.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 1 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Replace coordinate inequalities by the Loewner order and coordinate sums by matrix trace. The maximizing semidefinite program isIts feasible set is the fantope. In an orthonormal eigenbasis of , its objective is , and the diagonal entries of belong to the capped simplex. Choosing as the orthogonal projection matrix onto the largest eigenvectors attains the sum of the largest eigenvalues, as in the Ky Fan maximum principle.
The minimizing semidefinite program isFor example, its Lagrangian arises by assigning to , keeping in the domain, and using free for . Finiteness of the supremum over requires .
Equality follows directly by choosing to have eigenvalues in the same orthonormal eigenbasis, with between the th and st eigenvalues, or below the smallest one for . This is the threshold semidefinite program for the largest eigenvalues, and it also verifies the endpoint case .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 1 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Substitute the dual linear program from the previous part and optimize jointly over . The result isThe objective is linear, and the constraints are equalities or inequalities between affine functions, so this is a linear program. For each fixed feasible , minimizing over gives exactly by the threshold formula for the sum of the largest components; hence the reformulation preserves the optimal value and optimal whenever an optimum exists.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 1 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Keep as the domain restriction, introduce nonnegative Lagrange multipliers for , and introduce a free multiplier for . The maximizing Lagrangian isIts supremum over is finite exactly when , and then equals . By linear programming duality, since the primal is feasible and bounded,Minimizing over for fixed gives , the positive part of a real-valued function. Thus the threshold formula for the sum of the largest components isFor a direct attainment check, order the coordinates . Any is optimal for , while any is optimal for .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 1 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
The required linear program isThere are inequality constraints and one equality constraint, all independent of .
The feasible set is the capped simplex, a nonempty compact set. A linear function attains its maximum at an extreme point; the previous part identifies these as the indicators of -element subsets. At such a vector, the objective is the sum of the selected coordinates. Maximizing selects the largest coordinates, including when some are negative or tied. Equivalently, is the support function called the sum of the largest components.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 339 1 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Suppose in the capped simplex has a coordinate strictly between zero and one. Since is an integer, it cannot have exactly one such coordinate: the other coordinates would contribute an integer sum. Hence there are distinct with .
Choose and set , where are standard basis vectors. Both perturbed vectors satisfy the coordinate bounds and have the same coordinate sum. They are distinct and , so is not an extreme point.
Conversely, every zero-one vector in this convex polytope is an extreme point. If it were a nontrivial convex combination of two feasible vectors, each coordinate equal to zero would force both corresponding coordinates to be zero, and each coordinate equal to one would force both to be one. Thus the two vectors would equal the original one. The extreme points are therefore exactly the indicators of -element subsets.
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





