The UTokyo Mathematical Informatics Exam
A study guide for the entrance exam of the Department of Mathematical Informatics (数理情報学専攻) at the University of Tokyo: three hours, five problems, answer three. Every past problem from 2020 to 2026 is restated here with hints and a full solution, grouped by the idea it tests. Each group opens with the tools those problems keep reaching for, an interactive figure, and concept checks. The last module prepares the doctoral keyword essay.
Built from the department's published past papers (master's 2020 and 2023–2026, the 2021–2022 report assignments, and the 2026 doctoral papers), its 2026 statement of what the exam is meant to test (出題の意図), its sample problems, and the 2027 application guide. Problem numbers match the papers; the statements are restated in our own words, so check the official PDFs for exact wording. Books are from the department's recommended list; modules 2, 3, 4, 5 and 8 also cite one standard book each (Horn and Johnson, Strogatz, Boyd and Vandenberghe, Stein and Shakarchi, Kleinberg and Tardos) by result number, with a set of each book's exercises restated and solved. Related pages here: Linear Algebra, Real Analysis, High-Dimensional Probability, Markov Chains, Gradient Flows.
The exam and its patterns
Twenty-five problems in five papers are enough to see the shape of the exam. Problem 1 is usually linear algebra, Problem 4 is usually probability, and Problem 5 has been an algorithms problem every year. The middle two rotate through differential equations, analysis and optimization.
The idea
The department's statement of intent names five areas, linear algebra, differential equations, optimization, probability and statistics, and algorithms, and three abilities: computing and proving accurately, seeing the mathematical model behind a phenomenon, and designing algorithms. The papers match it closely. Several problems end with a part that asks what the mathematics means for the application (2025 P2(4) on phase separation is the clearest), and their sample problems ask where a matrix comes from as well as how to compute with it.
Three habits pay off on every paper:
- Read all five first. Spend ten minutes; pick the three whose last part you can see a route to. That leaves about 55 minutes each.
- Parts are a staircase. Later parts almost always use earlier ones. If you can't prove (2), say "by (2)" and use it in (3): you still earn (3).
- Read the other language when wording looks odd. In 2024 P1(2) the English says "min tr(PXYᵀ)" but the Japanese says max, and only max is correct (see module 2).
In 2021 and 2022 the written exam was replaced by take-home report assignments (an essay on a concept you find important, a research survey and plan, and an essay on how mathematical informatics can address COVID-19, carbon neutrality, digital transformation or an ageing society). They are good practice for the screening essay.
Explore
Mock exam
Draws five past problems in the exam's usual slots: linear algebra, two from differential equations, analysis and optimization, probability, then algorithms. Choose three, work on paper, and open the solutions only when the clock stops.
A twelve-week plan
For someone starting from a solid undergraduate background, about ten hours a week. The order follows how often each area appears: the guaranteed slots (Problems 1, 4 and 5) first, then the rotating middle. Each week: read the module's idea section and the book sections, do the worked example and quizzes, then the past problems timed (55 minutes each, on paper, before opening any hint), then the book exercises. Keep a list of every step you got stuck on, and redo those problems a week later.
Weeks 1–2: symmetric matrices
Module 2; Horn and Johnson §§4.1, 7.1–7.2, 7.7. Past problems 2020 P1, 2024 P1, 2025 P1, 2026 P1, then the six book exercises. Goal: diagonalize-first becomes automatic.
Weeks 3–4: probability and statistics
Module 6 and module 7, with a standard probability text from the department's list (伏見 or Grimmett and Welsh) for transforms, the exponential and Poisson families, and maximum likelihood. Six past problems. Goal: change of variables, memorylessness, first-step analysis and Chernoff bounds without notes.
Weeks 5–6: algorithms
Week 7: differential equations
Module 3; Strogatz §§2.5, 6.3–6.5, 7.2. Four past problems and five book exercises. Goal: for any planar system, find the fixed points, a conserved or decreasing quantity, and the long-run behaviour.
Week 8: analysis
Module 5; Stein and Shakarchi Ch. 2 §4 and Ch. 3 §§1–2, 7. Four past problems and four book exercises.
Week 9: optimization, and algebra
Weeks 10–12: full mock exams
Two mock exams a week from the generator above, three hours each, choosing three of five under exam conditions, then marking against the solutions. Spend the days in between on the stuck-list. In the final week, redo one full real paper (2026 or 2025) cold.
Applying to the doctoral program instead? Replace weeks 10–12 with module 10: one keyword essay a day from the drill, written in 30 minutes, with the five-part outline.
Words worth knowing in Japanese
Answers in English are fine, but reading the Japanese statement settles ambiguities. These terms come up on the papers above.
Check your understanding
Which problem slot has been an algorithms problem on every paper from 2020 to 2026?
- Problem 1Problem 1 is usually linear algebra (four of five papers).
- Problem 3The middle slots rotate between differential equations, analysis, optimization and algebra.
- Problem 5
You cannot prove part (2) but can see how (3) follows from it. What should you write?
- Skip (3) as well, since it depends on (2).Graders mark each part. A correct (3) that cites (2) earns its marks.
- Answer (3), stating clearly that you are using the result of (2).
- Prove a weaker version of (2) and stop.Worth doing if you have time, but don't let it cost you (3).
The 2027 guide says the written exam draws on algebraic, analytic, geometric, discrete, probabilistic, statistical and algorithmic methods. How many problems must you answer?
- All five.Five are set, but you choose.
- Three of the five.
- One from each area.There is no per-area requirement.
Reading
From the department's recommended list, the books that match these papers most closely (◎ marks the department's "standard" level):
- Linear algebra: Horn and Johnson, Matrix Analysis, Chapters 2, 4 and 7 (used in module 2); 室田・杉原『線形代数 I・II』◎.
- Differential equations: Strogatz, Nonlinear Dynamics and Chaos, §§2.5, 6.3–6.5, 7.2 (used in module 3). Not on the department's list, which has no ODE book, but the exam's phase-plane and Lyapunov questions come straight from this material.
- Analysis and complex analysis: Stein and Shakarchi, Complex Analysis, Chapters 2–3 (used in module 5); 杉浦『解析入門 I・II』◎; 森・杉原『複素関数論』◎; Ahlfors, Complex Analysis.
- Optimization: Boyd and Vandenberghe, Convex Optimization, §§2.6, 3.1, 5.2, 8.1 (used in module 4; free from the authors); 寒野・土谷『最適化と変分法』◎; Matoušek and Gärtner, Understanding and Using Linear Programming.
- Probability and statistics: 伏見『確率と確率過程』◎; 東京大学教養学部統計学教室『自然科学の統計学』◎; Grimmett and Welsh, Probability: An Introduction.
- Algorithms: Kleinberg and Tardos, Algorithm Design, §§3.6, 6.8–6.10, 7.1–7.5, 11.1 (used in module 8); 渋谷『アルゴリズム』◎; Cormen, Leiserson, Rivest and Stein, Introduction to Algorithms.
- Algebra and discrete mathematics: 伊理・藤重『応用代数』◎; Lidl and Pilz, Applied Abstract Algebra.
Symmetric matrices and the PSD cone
Four of the five Problem 1s are about real symmetric matrices. Almost every part yields to the same move: diagonalize the symmetric matrix with an orthogonal change of basis, and see what the question says about eigenvalues.
The idea
Change basis first. (Sylvester's theorem, H&J 2.4.4.1, is the general form: is uniquely solvable for every exactly when and share no eigenvalue.) For an equation like , put and . The equation becomes , which is entrywise: . Commuting with becomes .
Projection onto the PSD cone. With the inner product , the nearest PSD matrix to a symmetric clips the negative eigenvalues: . Like every projection onto a closed convex set, it is characterized by the variational inequality for all in the set. The same inequality reappears for isotonic regression in module 8.
Explore
Worked example
2025 P1(4): find symmetric with .
Why must and fail to commute?
If they diagonalize in a common basis, and gives . So the counterexample needs tilted axes, as in the second preset above.
Take and . Check .
with , which is PSD. is PSD. So .
Compute and decide.
, , so with determinant . One eigenvalue is negative, so . Writing out the matrices and the determinant is a complete answer for a "false" part.
Check your understanding
If , which of these must hold?
- The worked example above is a counterexample.
- need not even be symmetric when they don't commute.
and . What follows?
- or , .
- is singularThe same example gives .
What is the nearest PSD matrix to in the Frobenius norm?
- That flips the sign. It is at distance 4, while clipping gives distance 2.
- Clipping only touches negative eigenvalues.
Practice
Past problems
Restated in our own words. Official statements: 2020, 2024, 2025, 2026.
2020 Problem 1The equation BC + CB = A
is a real matrix and is symmetric positive definite. (1) Show there is exactly one real with ; call it . (2) Show if and only if .
Hint
(1) Change to the eigenbasis of . (2) For one direction, show also solves the equation and use uniqueness.
Solution
(1) Write with all . With and , the equation is equivalent to for all . Since , the unique solution is , and is real. (Equivalently, the linear map has eigenvalues , so it is invertible.)
(2) If then , and . Conversely, if , let . Then , so by uniqueness, which says .
2024 Problem 1Orthogonal Procrustes
Let , , and let be the set of minimizers of over with . (1) Given with columns and weights , find so that is the set of minimizers of . (2) Show is the set of maximizers of over orthogonal . (3) If is an SVD, give an element of .
A note on the wording
The English paper prints "min" in (2); the Japanese paper says 最大化 (max). Only max is right, as the solution shows. When something looks off, read the other version.
Hint
(1) Scale the columns. (2) Expand the square; when is orthogonal. (3) Write with orthogonal.
Solution
(1) , with . Column of is , so for every .
(2) , using and . The first two terms don't depend on , so minimizing the left side is the same as maximizing .
(3) with orthogonal. Entries of an orthogonal matrix satisfy , so the trace is at most , with equality at , i.e. . This is in . Horn and Johnson (7.4.5) state the same answer through the polar decomposition: if with , orthogonal, then .
2025 Problem 1True or false for the Loewner order
For real symmetric matrices (), prove or give a counterexample: (1) . (2) and or . (3) for every PSD . (4) . (5) .
Hint
(5) Reduce to the case by congruence with .
Solution
(1) True. , and since . Its trace is a sum of nonnegative eigenvalues.
(2) False. , .
(3) True. For any , , and .
(4) False. The worked example above, padded with zeros for .
(5) True. gives (congruence preserves ), so every eigenvalue of is at least 1 and every eigenvalue of is at most 1, i.e. . Congruence with gives .
2026 Problem 1Projection onto the PSD cone
is the space of real symmetric matrices with , and the PSD ones. (1) Show is convex. (2) Show has a unique minimizer over and write it using the eigen-decomposition of . (3) Show for all . (4) For , show if and only if .
Hint
(2) In the eigenbasis of , the squared distance is at least the sum of squared diagonal differences. (4) First prove the converse of (3): a PSD satisfying the inequality must be .
Solution
(1) .
(2) Write . For PSD , is PSD (so ) and . Equality holds throughout exactly when is diagonal with . So the minimizer exists and is unique: , where are orthonormal eigenvectors.
(3) Let . Then and (they live on orthogonal eigenvectors), so by the trace fact. (A general proof: for , is PSD by (1), so ; expand, divide by , let .)
(4) First, if is PSD and for all PSD , then , so by uniqueness. Now take , : the inequality reads for all PSD .
(i)⇒(ii): if , this is , true by the trace fact, so . (ii)⇒(i): if , (3) gives the inequality for all PSD . With : . The trace fact gives . So .
From Horn and Johnson, Matrix Analysis (2nd ed., Cambridge, 2013)
Numbers match the book, which works over with Hermitian matrices; read "real symmetric" and if you prefer. Each problem is restated in our own words; the hints and solutions are written for this page.
Problem 2.4.P13Sylvester's equation by eigenvalues (the engine of 2020 P1)
Let and have no eigenvalue in common. Show that is invertible on matrices, by showing that and commute and that the eigenvalues of are differences of eigenvalues of and .
Hint
acts on each column of by ; acts on each row by . Commuting linear maps can be triangularized in one basis (H&J 2.3.3).
Solution
. Acting column by column, is , with the eigenvalues of ; acting row by row, is , with the eigenvalues of . Triangularize and simultaneously: the diagonal of then consists of differences , none of which is 0. So is invertible.
For 2020 P1, is : the relevant differences are . The eigenbasis computation in that solution is this argument made explicit.
Problem 7.2.P26(a)A two-sided bound on tr AB
For PSD , show (the book writes as the spectral norm ).
Hint
Move the square root of to both sides and use .
Solution
. Since , congruence gives , and the trace is monotone for (the difference has non-negative eigenvalues). Taking traces gives both inequalities. The lower one is 2025 P1(1).
Problem 7.7.P6A bigger matrix has a bigger range
If , show .
Hint
Compare null spaces, then take orthogonal complements.
Solution
If , then , so and . Hence . For symmetric matrices , so . In the ellipse picture: wherever is degenerate, its "ellipse" runs off to infinity, and since it must fit inside 's, is degenerate in that direction too.
Problem 7.7.P21(a, b)How much must A be scaled to dominate B?
Let and . Show that for some , and that the smallest such is the spectral radius .
Hint
Congruence by .
Solution
. The matrix is PSD and similar to , so its largest eigenvalue is . This generalized eigenvalue is a quick test for : it holds exactly when (H&J 7.7.3).
Problem 7.7.P44Inverses reverse the order, from the definition
If , prove directly: show for every , starting from .
Hint
Expand the square, use on the term, then choose .
Solution
Expanding, , i.e. , the last step because . With the right side is . This is a second proof of 2025 P1(5), and it needs no square roots at all: a good one to have if you blank on the congruence argument.
Problem 7.7.P45One block matrix, two Schur complements
For , let . Compute the Schur complements of and of in , and explain why .
Hint
If , then if and only if .
Solution
and . The hint follows from the congruence . Applying it with either diagonal block as the pivot gives . A third proof of 2025 P1(5), and the standard way this fact is used in semidefinite programming.
Differential equations: what never increases
The exam rarely asks you to solve a nonlinear equation outright. It asks what the solution does in the long run, and the answer comes from a quantity you can track: one that is conserved, one that only decreases, or a Fourier mode that decays at a known rate.
The idea
Gradient flows. The Allen–Cahn equation is the steepest descent of the energy : a double well that prefers , plus a penalty on gradients. That structure is why never increases (2025 P2(1)), and it is the picture to draw in (4). For more on gradient flows, see the Gradient Flows page.
Explore: an epidemic in the phase plane
Explore: phase separation
Worked example
2026 P3(3): start with , . Can lie in ?
Find a conserved quantity.
, so . Check: has .
Show the limits , exist, with and .
From (2), , so strictly decreases and is bounded below: exists. decreases () and is bounded below, so it has a limit and ; with converging (as the difference of convergent functions), . Finally , which stays bounded, so .
Use to locate .
Let , which decreases on and increases on . Conservation gives . If , then and increasing there gives , a contradiction. So always, and no such solution exists.
In epidemic terms, is the herd-immunity threshold (); the outbreak always overshoots it. Drag the starting point above to watch this.
Check your understanding
Along solutions of with , which quantity is constant?
- , which is why in (2).
- , not zero in general.
Linearize at on with zero-flux ends. When does the mode grow?
- When
- Always: the reaction term pushes away from 0Diffusion damps short waves at rate , which can beat the reaction's rate 1.
- Never: diffusion smooths everythingMode 0 (and other long waves) grow at rate .
If and , what can you conclude?
- blows up at some .
- grows at least exponentially, but exists for all time.Compare with , whose solution blows up at 1.
- Nothing without an upper bound on .A lower bound is exactly what forces blow-up.
Practice
Past problems
Restated in our own words. Official statements: 2020, 2023, 2025, 2026.
2020 Problem 4Discrete heat equation on a ring
for integers , with , . Let . (1) If is a solution with , find . (2) Solve with , . (3) Find .
Hint
. For (2), expand in the discrete Fourier basis.
Solution
(1) Substituting, , so . Periodicity holds because .
(2) By orthogonality , with . By linearity, . (It satisfies (*), (**), and the initial condition; uniqueness for this linear ODE system makes it the solution.)
(3) For , , so those terms vanish. The limit is , the average of the initial values, for every .
2023 Problem 2Stability of a Lotka–Volterra system
is a real nonsingular matrix, on the positive orthant, and is a positive equilibrium. Consider . (1) For and , show for every positive if and only if is negative definite (). (2) With and , find with , in terms of , , , . (3) If such a exists, find so that whenever is in a punctured neighbourhood of 0.
Hint
Use to rewrite . In (3), choose so that .
Solution
(1) and , so . As ranges over positive vectors other than , ranges over a set containing a punctured ball around 0. A quadratic form is negative on a punctured ball if and only if it is negative definite (scale any nonzero vector into the ball); and negative definiteness gives for every .
(2) , and , so . Hence .
(3) Take , so . Then . The first term is with (half the smallest eigenvalue of ); the second is . So the derivative is negative for small .
2025 Problem 2Allen–Cahn and phase separation
(A): on , , with . (1) Show is non-increasing in . (2) For (B) with the same boundary and initial conditions, write ; find and the limit as . (3) Solve (C) , , , and find the limit. (4) (i) Explain how (B), (C) and the monotonicity of bear on modelling phase separation. (ii) Sketch the evolution for .
Hint
(1) Differentiate under the integral and integrate by parts. (3) Separate variables; partial fractions in , or solve for .
Solution
(1) , since the boundary term vanishes by the Neumann condition.
(2) Each term must solve (B): . Matching with the cosine series: , for . As , , the mean of .
(3) (for ), so , giving (also valid for ). The limit is if , if , if .
(4)(i) Points to make: diffusion alone (B) mixes everything to the average, erasing structure. Reaction alone (C) pushes each point independently to a pure phase (0 is unstable), producing noise-scale fragments. In (A) they compete: is a double-well energy minimized by plus a gradient cost, and the dynamics only lowers it, so the system settles into large regions of pure phase separated by thin smooth interfaces whose number is penalized by the gradient term. (ii) For : an early linear stage where long-wave modes with grow like and short ones decay; then saturation into plateaus at joined by -shaped interfaces of width about ; then very slow coarsening as nearby interfaces annihilate (exponentially slow in one dimension). The space–time figure above is that sketch.
2026 Problem 3An epidemic-type system
, solutions unique and smooth. (1) Find every initial point for which the solution is constant. (2) If and , show and for . (3) Under (2), can ? (4) From , show as for some finite .
Hint
(2) Write . (4) On the conserved level through , express in terms of and compare with .
Solution
(1) and . If the first forces , and then the second gives , a contradiction. So , and any works: the constant solutions start at , .
(2) and . Then , so .
(3) No; see the worked example: always.
(4) for all , so while : increases from 1. equals at , so and . Since , , so with , and . Hence the solution cannot exist on with finite: there is with as . In fact .
From Strogatz, Nonlinear Dynamics and Chaos (2nd ed., CRC Press)
Exercise numbers match the book. Each is restated in our own words; the hints and solutions are written for this page.
Exercise 6.5.6The epidemic model in the phase plane (2026 P3 with general rates)
Healthy and sick evolve by , with . (a) Find and classify the fixed points. (b) Sketch nullclines and the vector field. (c) Find a conserved quantity. (d) What happens as ? (e) An epidemic occurs if increases at first. When does that happen?
Hint
(c) Form and separate variables. With , this is the exam's system.
Solution
(a) and force : every point is fixed, a whole line of them. The Jacobian there is , with eigenvalues (along the line) and . Points with attract nearby trajectories; points with repel them. Being non-isolated, none is a node or saddle in the usual sense.
(b) on the axes; on and on the vertical line . In the open quadrant always decreases, and rises to the right of and falls to the left.
(c) , so is conserved.
(d) Every trajectory in the open quadrant ends on the line of fixed points at some , with : the argument of the worked example, with in place of .
(e) exactly when : the epidemic threshold. In the exam's units, , which is why the gold line in the figure sits at , and why 2026 P3(3) asks about .
Exercise 2.5.2Blow-up without an exact solution
Show that every solution of escapes to in finite time.
Hint
Don't solve it. Compare with , whose solutions are shifted tangents.
Solution
Since , reaches the value 1 by time . From then on , so and , i.e. . Hence , which reaches by : must blow up before then. This is the same comparison as 2026 P3(4), where .
Exercise 6.4.1Two competing species
For , with , find and classify the fixed points and describe the long-run behaviour.
Hint
Look at .
Solution
Fixed points: , , ; an interior one would need and at once. The Jacobian is . At : eigenvalues 3, 2, an unstable node. At : , eigenvalues , a stable node. At : , eigenvalues , a saddle.
Globally, for , , so exponentially: is driven out and every trajectory with tends to . (Competitive exclusion; 2023 P2 is the general Lotka–Volterra system, where Volterra's function plays the role this ratio plays here.)
Exercise 7.2.10A Lyapunov function rules out cycles
Show that , has no closed orbits, by finding that decreases along trajectories.
Solution
. With the cross term cancels and away from the origin. On a closed orbit would return to its starting value after one period, but it strictly decreases: impossible. In fact the origin is globally asymptotically stable. Note that linearization alone says nothing here: the Jacobian at the origin has eigenvalues .
Exercise 7.2.11When is a quadratic form a valid Lyapunov candidate?
Show that is positive definite if and only if and .
Solution
If , . If , complete the square: , positive for all exactly when . This is the case of the leading-minor test for , the matrix fact behind 2023 P2(1) (see module 2).
Optimization and acceleration
Convergence proofs for first-order methods follow one template: write down an energy that mixes the gap with a distance to the optimum, show it never increases, and read off the rate from the weight on the gap. 2024 P2 does exactly this, first in continuous time and then for a discretization.
The idea
The continuous-time picture. Letting the step size shrink, Nesterov's method tracks (Su, Boyd and Candès). 2024 P2 writes a shifted version as a first-order system in with and , and the energy . The growing weight on the gap is the rate.
Explore
Worked example
2024 P2(1): show for , then deduce .
Differentiate each term of .
.
Substitute the dynamics.
and . The terms cancel: .
Finish with convexity.
The bracket is by . So , and : take .
Check your understanding
In the proof above, which property of was used?
- Convexity, in the form
- Strong convexityNot assumed; with it you would get a linear rate.
- A Lipschitz gradientNeeded for discrete step-size choices in general, but not in the continuous-time argument.
What is the guaranteed rate of plain gradient descent (step ) on an -smooth convex function?
- That is the accelerated rate.
- Linear, Only with strong convexity, and then the rate depends on the condition number: compare large and small κ in the figure.
What is for ?
- That is the prox of .
- That is projection onto , the prox of its indicator.
Practice
Past problem
Restated in our own words. Official statement: 2024. 2024 P1 and 2026 P1 are optimization problems too; they are worked in module 2.
2024 Problem 2Accelerated gradient as a differential equation
is smooth and convex on with a minimizer . (1) For the system above, show and . (2) Discretize as , , with . Show and . (3) Show .
Hint
Write and . Then : the coefficient in the scheme is the discrete derivative of the weight. Use the product rule with , .
Solution
(1) The worked example.
(2) With , : . Divide by and use .
Now , so . Write and . The product rule gives .
- Convexity between and : , so .
- The update: .
Adding, the terms cancel: , by convexity between and .
(3) , so . Take .
Fresh practiceThe dual of a transportation LP
Supplies at sources , demands at sinks with , and costs . Write the LP for the cheapest shipment , its dual, and the complementary slackness conditions. Interpret the dual variables.
Solution
Primal: minimize subject to , , . Dual: maximize subject to (free , because the primal constraints are equalities). Complementary slackness: . Read as the price paid to pick up a unit at and as the price it fetches at : goods only travel on routes where the price difference exactly covers the cost. This is the 1D picture behind optimal transport and the minimum-cost flow optimality conditions.
From Boyd and Vandenberghe, Convex Optimization (Cambridge, 2004)
Exercise numbers match the book (freely available from the authors). Each is restated in our own words; the hints and solutions are written for this page. The book covers gradient descent (§9.3) but not acceleration, which is why 2024 P2 is worth working on its own terms.
Exercise 8.1Projections onto closed convex sets are unique
Let be nonempty, closed and convex. Show that every has exactly one nearest point of in the Euclidean norm.
Hint
Existence: compactness. Uniqueness: the midpoint of two nearest points, and the parallelogram law.
Solution
Pick any . The nearest point, if any, lies in , which is closed and bounded, hence compact, and is continuous: a minimizer exists. If both attain the minimum distance , then by convexity, and the parallelogram law gives , a contradiction. With matrices and in place of , this is the existence and uniqueness half of 2026 P1(2).
Exercise 8.3 (a, b)Projections onto the orthant and the PSD cone
(a) Show that the Euclidean projection of onto replaces each negative entry by 0. (b) Show that the Frobenius projection of a symmetric onto the PSD cone is .
Hint
(a) The problem separates coordinate by coordinate. (b) The Frobenius norm doesn't change under with orthogonal; reduce to (a) on the diagonal.
Solution
(a) , and each term is minimized over at . (b) Exactly the argument of 2026 P1(2): in the eigenbasis of , off-diagonal entries only add to the distance and the diagonal is problem (a). Part (a) also explains the variational inequality there: is the negative part of , which is orthogonal to and has non-positive inner product with every point of the orthant.
Exercise 2.28The PSD cone in coordinates
Describe by inequalities on the entries for , writing a general element as , and .
Hint
A symmetric matrix is PSD if and only if all principal minors are non-negative (leading ones are not enough for semidefiniteness).
Solution
: . : , , . : ; , , ; and . For the cone is a round cone in -space ( with ), which is why the ellipse picture in module 2 works: each interior point of this cone is an ellipse. Only checking the leading minors , would wrongly admit .
Exercise 5.4The LP dual as the best bound from a single inequality
For the LP and any , every feasible satisfies . (a) Find . (b) Write the problem of choosing to make this lower bound as large as possible. (c) Compare with the Lagrange dual.
Solution
(a) Minimizing a linear function over a half-space is unless points out of it: unless for some . Then , with equality on the boundary, so the minimum is . (b) Maximize over , with . (c) Put : maximize subject to , . That is the Lagrange dual (BV (5.22)). Duality is "the best lower bound you can get by adding up constraints with non-negative weights", the same reasoning as the worked example in module 10.
Exercise 5.5The dual of a general LP
Find the dual function and dual problem of , with the implicit constraints made explicit.
Solution
. Minimizing over : if , and otherwise. Dual: maximize subject to , . Inequality constraints get sign-constrained multipliers; equalities get free ones, which is the pattern behind the transportation dual above.
Analysis: approximation and integrals
The analysis problems are about numerical mathematics seen through classical tools: how fast a quadrature rule converges and why, what fast approximation says about smoothness, and how a change of variables turns a question about densities into one about convex functions.
The idea
Parametrize the circle. On , and , so . Since has simple poles of residue at the -th roots of unity, the equally weighted sum is also a contour integral. Subtracting the two and pushing the contour out to radius gives an error of order : the trapezoid rule converges geometrically for periodic analytic integrands.
Explore
Worked example
2023 P3(4): show the constant in cannot be improved, i.e. .
Which simple does the -point rule get completely wrong?
. Its integral over the circle is , but at every node , so . The error is .
Compute the ratio for this .
, so . Hence the sup is at least for every .
Combine with the upper bound.
From (3), the quantity is at most . With the lower bound , the limsup (in fact the limit) is .
Check your understanding
The -point trapezoid rule on the circle is exact for exactly when:
- is not a nonzero multiple of
- is the worst case: error .
- alwaysThe nodes can't tell from the constant 1.
If for trigonometric polynomials of degree , what can you conclude?
- is continuously differentiable
- is analyticAnalyticity needs geometric rates , not polynomial ones.
- Nothing beyond continuityBernstein's inequality converts the approximation rate into control of derivatives.
A density is strictly decreasing on . How do its mean and median compare?
- mean > median
- mean < medianThe long tail is on the right.
- It depends on the density2025 P3(3) proves the strict inequality in general.
Practice
Past problems
Restated in our own words. Official statements: 2023, 2024, 2025.
2023 Problem 1A log-average dissimilarity
For finite real sequences , , let with . (1) Show and find when . (2) Show . (3) With , , find with . (4) Find the minimizing .
Hint
(2) gives, for every , . Average this over with weights proportional to . (4) is symmetric about .
Solution
(1) , so each and . Equality needs every , i.e. for all : all entries of and are one common number. Conversely that gives .
(2) Write , , for the three averages. For each , , so . Average over with weights , which sum to 1: . Averaging over gives .
(3) As , is a Riemann sum for . Then the outer average is a Riemann sum for ( is continuous and positive). So for , for , and for .
(4) has . Since and strictly increases on , for and for (the endpoint closer to has the larger ). The minimizer is : the sequences overlap exactly.
2023 Problem 3The trapezoid rule for analytic functions
For , holomorphic on , , and . (1) Show . (2) Find the poles of in and the residues. (3) If , show . (4) Show the constant is optimal.
Hint
(3) Express both and as integrals over for , subtract, and simplify .
Solution
(1) With , , so .
(2) The poles are the zeros of , the roots of unity , all simple and inside . (the pole is removable if ).
(3) Fix . By the residue theorem, . The integrand has only the pole at 0, so (1) also holds on . Subtracting, . On , , so . Let .
(4) The worked example.
2024 Problem 3Fast approximation implies differentiability
is the set of functions with a complex polynomial of degree . is continuous and -periodic, and for each some has . (1) Show . (2) Using completeness of and for , show converges uniformly to a continuous periodic . (3) Show is differentiable on .
Solution
(1) .
(2) comes from a polynomial of degree at most , so Bernstein's inequality (which holds for degree at most ) gives . For , : the sequence is Cauchy in the sup norm, so it converges uniformly to some continuous . Each is -periodic, hence so is .
(3) . Let , using uniform convergence on both sides: . Since is continuous, is differentiable with , on and then on by periodicity.
2025 Problem 3Mean versus median
is the set of continuous densities on with . (1) For equal to on , on , on , find the mean and median. (2) With , show the mean is . (3) If is strictly decreasing, show mean > median. (4) If is continuous and for every the normalized restriction has mean > median, show is strictly decreasing.
Solution
(1) The three pieces have mass , so the CDF at is : median . over the pieces is : mean .
(2) is with , a bijection . Substituting , : .
(3) . As increases, increases and strictly decreases, so strictly increases: is strictly convex. Mean − median .
(4) Contrapositive. Suppose is not strictly decreasing. If somewhere, then by continuity on some , is strictly increasing, and the mirror of (3) ( strictly concave) gives mean < median. Otherwise everywhere, so is non-increasing, and not being strictly decreasing means for some : is constant on , and for in there is uniform with mean = median. Either way the hypothesis fails.
From Stein and Shakarchi, Complex Analysis (Princeton Lectures in Analysis II, 2003)
Exercise numbers are from the exercises at the end of Chapter 3. Each is restated in our own words; the hints and solutions are written for this page.
Exercise 3.8An integral over the circle by residues
Show that whenever , real.
Hint
Substitute , so and , as in 2023 P3(1).
Solution
For it is immediate. Otherwise the integral becomes . The roots are real with , and . The residue at is , so the integral is .
Connection to the figure above: the integrand is analytic in the annulus , so the -point trapezoid rule for it converges like . The closer is to , the closer the poles are to the circle and the slower the convergence.
Exercise 3.7Differentiate the previous answer
Show that for .
Hint
A pole of order 2 works (Theorem 1.4), but there is a shortcut through Exercise 3.8.
Solution
By Exercise 3.8 with , for . Differentiating under the integral (the integrand is smooth in and bounded uniformly for in compact subsets of ): . Differentiating under the integral sign, with a sentence of justification, is exactly the step 2023 P4(2) needs.
Exercise 3.1The poles of 1/sin πz
Using , show that the zeros of are exactly the integers, each of order 1, and find the residue of at .
Solution
. The derivative , so each zero is simple, and the residue is (the rule). The same rule gave the residues of at the roots of unity in 2023 P3(2).
Exercise 3.11An integral that vanishes by the mean-value property
Show that when .
Hint
is the real part of a function holomorphic on a disc of radius more than 1.
Solution
For , lies in the disc of radius 1 about 1, where the principal logarithm is holomorphic; so is holomorphic there and . The mean-value property (Ch. 3, Corollary 7.3) at , gives . The same principle (the average of a holomorphic or harmonic function over a circle is its value at the centre) is why for every in 2023 P3.
Probability and statistics
The probability problems are built from a small kit: transform a variable and differentiate its distribution function, use memorylessness, write a likelihood and show it has one peak, compute a transform, or couple two variables on one probability space. Know each tool well enough to use it without hesitating.
The idea
Explore
Worked example
2024 P4(4): i.i.d. , and is the number of partial sums that are . Find the maximum likelihood estimate of from , and its mean and variance.
Find the distribution of .
means . Conditioning on (Gamma density) and using independence: . So (and directly).
Maximize the likelihood.
, . For the unique maximizer is . For , decreases on and the supremum is approached at ; the formula is the natural boundary value, and worth a sentence in an answer.
Mean and variance.
(unbiased) and .
Check your understanding
i.i.d. . What is the distribution of ?
- That is the minimum.
- That is the sum.
with i.i.d. standard normal. What does do as ?
- It has the same distribution as for every .
- It tends to 0 by the law of large numbers., and the scaling is , not .
- It becomes normal after centring.The variance is infinite; the central limit theorem doesn't apply.
Le Cam's inequality bounds by:
- That is what you get from . The coupling does better: about per trial.
- That is the Berry–Esseen rate for the normal approximation.
Practice
Past problems
Restated in our own words. Official statements: 2020, 2023, 2024, 2025.
2020 Problem 2Lifetimes censored at birth
i.i.d. exponential with mean . We observe if and otherwise. (1) Find . (2) If , show has a unique solution. (3) With , find with for , . (4) For , , show has a unique maximizer in .
Hint
(3) Given which are censored, the others are with by memorylessness, and . (4) Put .
Solution
(1) .
(2) , as and as . By continuity and strict monotonicity, each value in is taken exactly once.
(3) Choose the censored set ( ways, probability ). The other exceed (probability ) and, given that, are with i.i.d. mean . Then with . Changing variables, for .
(4) With , , where . Then . The first two terms strictly decrease from (as ) to 0 (as ), so the derivative crosses zero exactly once, from positive to negative: a unique maximizer , hence a unique .
2023 Problem 4The reciprocal of a squared normal
standard normal, with density . (1) Find . (2) For , show for . (3) Find . (4) For i.i.d. , show converges in distribution and find the limit density.
Hint
(2) Write , differentiate, and substitute , which swaps and .
Solution
(1) , so for .
(2) Differentiating under the integral (dominated for in compact subsets of ), . With , becomes (orientation reversed, limits swapped) and the exponent is unchanged, so .
(3) Solving with : . is holomorphic for and continuous up to ; it agrees with (principal branch) on , hence on the half-plane by the identity theorem (Stein–Shakarchi Ch. 2, Corollary 4.9), and at : .
(4) The characteristic function of the scaled sum is . So for every the scaled sum has density ; it converges (trivially) in distribution, and the limit density is itself.
2024 Problem 4Exponential clocks and a Poisson count
i.i.d. . (1) Density of given . (2) Densities of and with . (3) Density of . (4) The MLE of from (defined by ), its mean and variance.
Solution
(1) : density , .
(2) , so has density . For : , density (and , are independent).
(3) By induction on convolutions, for .
(4) The worked example: , mean , variance .
2025 Problem 4Poisson approximation by coupling
(1) Show the sum of independent Poisson() and Poisson() is Poisson(). (2) For any on one space, show . (3) With uniform on , and where , show . (4) Show for , .
Solution
(1) .
(2) Let , . .
(3) is Poisson() (it is the inverse-CDF construction) and is Bernoulli(). Since : on both are 0; on , ; on both are 1; on , . So .
(4) Build independent pairs from independent uniforms. and, by (1), . By (2) and (3) the difference is at most .
Concentration and random walks
Two 2026 problems come from modern probability: the Johnson–Lindenstrauss lemma, proved with a Chernoff bound, and fixation in the Moran process, solved by first-step analysis. Both are standard theorems taught as a sequence of short steps, which is how the exam presents them.
The idea
For more, the High-Dimensional Probability and Markov Chains pages go further in each direction.
Explore: random projection
Explore: the Moran process
Worked example
2026 P2(3): for and , show , given for .
Apply (1) and (2) of the problem.
is a sum of independent terms, so and for .
Use the hint on . Where does it apply?
With , i.e. : . So the bound is at most .
Choose .
The exponent is minimized at , which is because . Its value is . That is where the condition comes from.
Check your understanding
In Johnson–Lindenstrauss, how must the target dimension grow with the number of points (fixed , )?
- Like
- Like The union bound over pairs only costs a logarithm, since each pair fails with probability .
- Like the original dimension doesn't appear at all.
In the neutral Moran process (), what is the probability that type A takes over starting from individuals?
- Larger starting groups are more likely to win.
- That would be right if each A lineage independently had probability ; they aren't independent.
A single mutant () with in a large population fixes with probability about:
- That is the neutral answer; selection helps a lot.
- Close to 1Early on there is only one mutant, and it is easily lost by chance.
Practice
Past problems
Restated in our own words. Official statement: 2026.
2026 Problem 2The Johnson–Lindenstrauss lemma
(1) For standard normal and , show for . (2) Show for . (3) For an matrix of i.i.d. standard normals and , , show . (4) For , , and , show that with probability at least , for all .
Solution
(1) , a Gaussian integral with variance .
(2) pointwise; take expectations.
(3) are independent , so is a sum of independent copies of . The rest is the worked example.
(4) For a pair with , let . Then , and the bad event is . With , (3) bounds its probability by . Pairs with , and , never fail. A union bound over the unordered pairs gives total failure probability at most .
2026 Problem 4Fixation in the Moran process
A population of has individuals of type A (fitness ) and the rest type B (), . Each step one individual is chosen uniformly; with uniform on , a chosen A becomes B if , and a chosen B becomes A if is at most that. With and : (1) show . (2) Relate , where is the probability that . (3) Find . (4) Relate , where is the expected absorption time. (5) For , write using , , , , , where () and .
Hint
(5) With , the recursion is . Sum twice, then fix from .
Solution
(1) Let . and . The ratio is .
(2) First-step analysis: , i.e. .
(3) The differences satisfy , with , . So , and normalizing, for , for .
(4) , i.e. , with .
(5) With , , giving the hint's recursion. Summing, , and summing again with the given identity, . forces . Therefore
Check : , matching .
Algorithms: design and proof
Problem 5 always asks for an algorithm with a running-time bound, and the marks go to the argument as much as the pseudocode. The earlier parts usually hand you the structural lemma the algorithm needs; spot it, then the algorithm is a short loop.
The idea
An answer to an algorithm part should have four pieces, each short: the algorithm (numbered steps or pseudocode), the invariant or lemma it relies on, why it is correct, and its running time with the data structure that achieves it. "Linear time" on a graph means with adjacency lists: each vertex and edge handled a constant number of times.
Explore
Worked example
2026 P5(3): in linear time, find an acyclic orientation of minimizing the maximum in-degree.
Turn an ordering of the vertices into an acyclic orientation. What is each in-degree?
Given an order , orient every edge from the later vertex to the earlier one. Every edge points backwards, so there is no cycle. The in-degree of a vertex is its number of neighbours that come after it.
Which ordering makes the largest such count small?
Repeatedly remove a vertex of minimum degree in the remaining graph, and list vertices in removal order. When is removed, its remaining degree is exactly its number of later neighbours. So the maximum in-degree is , the degeneracy of .
Why can't any acyclic orientation do better?
At the moment the removed vertex had degree , the remaining subgraph had minimum degree . In any acyclic orientation of , restricted to , take the last vertex of in a topological order: all its -edges point into it, so its in-degree is at least .
Make it linear time.
Keep vertices in buckets by current degree (degrees are at most ) and a pointer to the lowest non-empty bucket. Removing a vertex moves each neighbour down one bucket in , and the pointer only drops by one per removal, so the total is (Matula and Beck).
Check your understanding
Greedy list scheduling (each job to the currently least-loaded machine) has makespan at most . Which two facts does the proof use?
- and
- and The first is false when ; the second is an upper bound, not useful here.
- The jobs are sorted by length firstSorting (LPT) improves the ratio to 4/3, but the plain greedy bound needs no sorting.
Why does the top degree of equal the largest weight of an walk of length at most ?
- All coefficients are positive integers (they count walks), so nothing cancels.
- Because .The sign of the exponents doesn't matter for this; positivity of the coefficients does.
- It doesn't; cancellation can lower the degree.Cancellation needs negative coefficients, and every entry of has coefficient 1.
To maximize over acyclic orientations, orient each edge:
- into the endpoint with larger (ties by index)
- into the endpoint of larger degreeThe objective counts at the head of each edge, not degrees.
- along a DFS tree, then the rest arbitrarilyThat ignores entirely.
Practice
Past problems
Restated in our own words. Official statements: 2020, 2024, 2025, 2026. 2023 P5 is in module 9.
2020 Problem 5Isotonic regression
An approximate array of (length ) is a non-decreasing minimizing . Let be with one element appended, and the approximate arrays of . (1-1) If , show . (1-2) If is constant and , show is constant with , and find it. (2) Give a polynomial-time algorithm for the approximate array.
Hint
The feasible set is a closed convex cone, so the minimizer is unique and is optimal if and only if for every non-decreasing . For a constant , writing as plus non-negative increments shows this is equivalent to: and every tail sum .
Solution
Uniqueness: the objective is strictly convex and the set of non-decreasing arrays is convex and closed, so each approximate array is unique.
(1-1) is non-decreasing and costs . Any non-decreasing of length costs at least . So the candidate is optimal, hence equal to .
(1-2) Let be the constant value of ; optimality among constants gives , and the hint's tail condition gives for (take ). Set , the mean of ; clearly . The total sum . For , the tail sum is , and the last two terms combine to . So all tail sums are , the constant array satisfies the optimality condition, and .
(2) PAVA, as in the figure. Maintain a stack of blocks (sum, count). For each : push ; while the stack has two blocks with mean(second-to-top) mean(top), merge them. Output each block's mean over its range. Correctness: keep the invariant that block means increase up the stack and, inside each block with mean , every tail sum over the block is . A new single-element block satisfies it. Merging a block of mean with the next of mean gives mean ; tails starting in the second part only gain per element, and tails starting in the first part change by , so the invariant survives (this is the computation of (1-2)). At the end, for any non-decreasing , each block contributes (write as its first value plus non-negative increments), and ; together, , so is optimal. Each element is pushed once and each merge removes a block, so the running time is .
2024 Problem 5Minimum makespan
Jobs with lengths , each allowed only on machines . Minimize the maximum machine load. (1) If all lengths are equal, give a polynomial-time algorithm. (2) If every , show the greedy rule (each job, in order, to a currently least-loaded allowed machine) has .
Solution
(1) With common length , the makespan is times the largest number of jobs on one machine. For a capacity , build a flow network: source → each job (capacity 1), job → each allowed machine (capacity 1), machine → sink (capacity ). An assignment with at most jobs per machine exists if and only if the max flow is (integrality of max flow). Binary search : max-flow computations, each polynomial. Output the assignment from the integral flow at the smallest feasible .
(2) Let be a machine with , and the last job put on . When was placed, had the minimum load , so . Then , since some machine must run .
2025 Problem 5Degrees of matrix powers
for integers , , and is the top degree of . (1) For , reduce computing to shortest paths in polynomial time. (2) Show: every entry of converges as if and only if for all . (3) Decide convergence in polynomial time. (4) With , decide in polynomial time whether is empty.
Hint
Read as the largest weight of a walk of length at most (length-0 walk at included). For (4), the condition at is "no cycle with ", and a positive cycle found at tells you which direction to move.
Solution
(1) By the max-plus view, weight of an walk of length . Make the complete digraph with edge weights . With non-negative weights, a shortest walk can be taken to be a simple path (length ), so (with ). That is shortest-path queries (or runs of Dijkstra).
(2) is non-decreasing in and integer-valued, so each entry converges if and only if it is bounded. If some closed walk has positive weight, repeating it makes . If none does, every walk decomposes into a simple path plus closed walks of weight , so walk weights are bounded by the best simple path. A positive closed walk exists if and only if a positive simple cycle exists (decompose), and simple cycles have length , so if and only if some . Since always, convergence for all .
(3) Run Bellman–Ford (or Floyd–Warshall) with weights and report whether a negative cycle exists: .
(4) Every cycle gives a linear constraint , so is the set of integers in an interval (possibly empty or unbounded). Each breakpoint has absolute value at most , so if it meets . Binary search on that range: at the midpoint , run (3). If there is no positive cycle, . Otherwise Bellman–Ford returns a positive cycle : if , and ; if , every also fails, so search left; if , search right. This takes rounds of , polynomial in the input size.
2026 Problem 5Acyclic orientations
is simple with vertices and edges, in adjacency lists. (1) Show distinct acyclic orientations have distinct in-degree sequences. (2) In linear time, decide whether some acyclic orientation has in-degree sequence . (3) In linear time, find an acyclic orientation minimizing the maximum in-degree. (4) In linear time, find one maximizing .
Solution
(1) Induction on . An acyclic orientation has a source (in-degree 0). If two acyclic orientations share in-degrees, has in-degree 0 in both, so all its edges point out of in both. Delete : both orientations of are acyclic and have equal in-degree sequences (each neighbour of lost exactly one incoming edge in both). By induction they agree, so the originals agree.
(2) Keep a counter (required in-degree from vertices not yet removed) and a queue of vertices with . Repeatedly pop , orient all its remaining edges out of , decrement of each remaining neighbour, failing if any goes negative and enqueuing any that reach 0. Answer yes if and only if all vertices are removed. Each edge is processed once: . Correctness: if a valid orientation exists, any remaining vertex with has no incoming edges from remaining vertices, so it is a source there, and removing it keeps the remaining requirements valid; the queue empties early only if no remaining vertex is a source, impossible for an acyclic orientation. If the algorithm succeeds, the orientation it built is acyclic (edges point from earlier-removed to later) with the right in-degrees.
(3) The worked example: the degeneracy ordering, .
(4) Orient each edge towards the endpoint larger in the order . Acyclic, attains the upper bound , and .
From Kleinberg and Tardos, Algorithm Design (Pearson, 2006)
Exercise numbers are chapter and exercise (3.3 is Exercise 3 of Chapter 3). Each is restated in our own words; the hints and solutions are written for this page.
Exercise 3.3A topological order, or a cycle as proof that there is none
Extend the source-removal algorithm of §3.6 so that on any directed graph it outputs either a topological ordering or a directed cycle, in time.
Hint
If the algorithm gets stuck, every remaining node has an incoming edge from another remaining node. Follow those edges backwards.
Solution
Keep in-degree counters and a queue of nodes with count 0; repeatedly remove one, output it, and decrement its out-neighbours. If all nodes are output, that is a topological order. If the queue empties early, every remaining node has an edge with remaining. Start anywhere among them and repeatedly step to such a predecessor, marking nodes; within steps a node repeats, and the nodes between its two visits, reversed, form a directed cycle. Everything is a constant amount of work per node and edge: . This is the certificate pattern that 2026 P5(2) uses: the peeling algorithm either succeeds or shows exactly why no answer exists.
Exercise 6.13Arbitrage: a cycle whose product exceeds 1
For assets, one unit of trades for units of . An opportunity cycle is a cycle of trades along which the product of the ratios exceeds 1. Give a polynomial-time algorithm that finds one if it exists.
Hint
Logarithms turn products into sums.
Solution
Give edge the cost . A cycle has exactly when , so opportunity cycles are negative cycles. Add a source joined to every node at cost 0 and run Bellman–Ford for rounds (§6.10): if some distance still improves in round , a negative cycle exists, and following predecessor pointers from an improved node recovers it. Time on the complete graph. Compare 2025 P5: there the weights are exponents , the question is whether a cycle has positive total weight, and the same detection with costs answers it.
Exercise 11.5Why greedy is much better than 2 in practice
Ten machines run Greedy-Balance (§11.1). Every job has length , and the total load is always at least 3,000. Prove that the makespan is never more than 20% above the average load .
Hint
The proof of (11.3) actually shows , which is sharper than .
Solution
Let . Take the busiest machine and the last job put on it. When arrived that machine had the least load, at most , so . The factor 2 is only approached when one job is comparable to the whole average load; with many small jobs, greedy is nearly optimal. Bounds in terms of the instance, not just worst-case ratios, are what you need when an exam part asks you to explain observed behaviour.
Algebra and number representations
Algebra appears less often, but when it does the problems reward the same habit: find a normal form. Every polynomial reduces to one in which and never meet; every integer has exactly one signed binary expansion with no two adjacent nonzero digits.
The idea
Normal forms prove kernels. To show for an explicit ideal : first (check the generators). For the other inclusion, show every can be written with in a set of "reduced" polynomials on which is injective. This is the idea behind Gröbner bases: is one, and its normal forms are the polynomials in which no monomial contains both and .
Why it matters. In elliptic-curve cryptography, computing by double-and-add costs one addition per nonzero digit; negating a point is free, so the NAF cuts the additions from about to . The department's cryptography group works on exactly this kind of efficiency question, alongside post-quantum schemes.
Explore
Worked example
Find the NAF of (binary , five nonzero digits).
. What are and the next number?
and .
Continue: , then what?
is even: , next . : , next . Then give , and gives .
Write the result and check it.
: . Three nonzero digits instead of five, and no two adjacent.
Check your understanding
What is the NAF of 7?
- (that is, )Adjacent nonzero digits aren't allowed.
- : digits
- Correct value, but puts nonzero digits side by side.
In 2020 P3, why is (substituting ) injective on polynomials where no monomial contains both and ?
- Distinct such monomials map to distinct Laurent monomials.
- Because is a ring homomorphism.It isn't injective on all of : .
- Because is a field.The field matters for linear independence of monomials, but the key is the exponent bookkeeping.
The largest number with an -digit NAF, , equals:
- That is the largest with binary digits; it needs a NAF digit at position .
- Too small: is allowed.
Practice
Past problems
Restated in our own words. Official statements: 2020, 2023.
2020 Problem 3Laurent polynomials as a quotient ring
, , and substitutes . (1) Show is an ideal for every ideal of . (2) With and the polynomials in which no monomial contains both and (for every ), show every is with . (3) For , show and .
Solution
(1) If and : and . Also .
(2) For a monomial with : , so modulo a multiple of . Each replacement lowers for that monomial, so after finitely many steps (induction on this quantity, summed over monomials) every monomial is in , and the multiples of collected along the way give the .
(3) , so . Conversely let and write by (2). Then . As in the quiz above, maps distinct monomials of to distinct Laurent monomials, which are linearly independent over , so and . is onto, since and is a homomorphism, so by the first isomorphism theorem.
2023 Problem 5The non-adjacent form
(1) Find the largest with a sparse ternary representation . (2) Show the sparse representation of each is unique. (3) Give an algorithm from binary to sparse ternary. (4) Show the sparse representation has the fewest nonzero digits among all ternary representations of . (5) For uniform on and the number of nonzero digits of its sparse representation, show .
Hint
(4) Let be the minimum weight over all signed representations. Show when , and that when is odd, is attained by the even neighbour. (5) Count digit strings built from blocks "0" and " then 0".
Solution
(1) Greedy from the top: , , This is the maximum: sparsity forces , so (with , ), and induction gives . .
(2) Induction on . . If is even, . If is odd, and sparsity forces , so , fixing . Then is a sparse representation of , which is a smaller positive integer for (and has only ). By induction it is unique.
(3) Scan the bits of with a carry . At position let . If : digit 0, carry 0. If : digit 0, carry 1. If : digit , carry 0 when ; digit , carry 1 when . Continue past the top bit until the carry is 0. This is the mod-4 rule applied to the running value, with work per bit, so in total.
(4) A signed representation can be seen as a multiset of terms ; combining equal or opposite terms never increases the count, so is the same whether or not repeated positions are allowed. Adding one term shows for . For even , any representation has , so . For odd , where ; one, say , is even. Then is odd and ; one of these arguments is and the other is , so by the lemma . Hence the minimum is always attained at the even neighbour, which is exactly the NAF's choice, and by induction the NAF has weight .
(5) The numbers are exactly those whose NAF has at most digits. Reading from the bottom, a NAF of length at most (allowing leading zeros, with the top nonzero digit ) is a sequence of blocks "0" (length 1) and "0" (length 2, two choices). The number of block sequences of length satisfies , growing like . In a long uniformly random such sequence, each block is "0" with probability and "0" with probability , independently in the limit, so a block has mean length and carries nonzero digit on average: a density of . Making this precise with the generating function ( marks nonzero digits) and differentiating in at gives ; the sign constraint on the top digit and the boundary change only the term.
The doctoral keyword essay
The doctoral written exam is different in kind: ninety minutes, a list of keywords, and you explain three of them. It rewards the ability to state things precisely and connect them, which is also what the oral exam probes.
The idea
The department says the doctoral paper tests whether you can describe and explain advanced topics across the fields of mathematical informatics. In practice that means 30 minutes per keyword, and a fixed shape for every answer:
Definition, with symbols
One precise definition, with every symbol introduced. If there are two standard formulations (primal/dual, discrete/continuous), give the one you will use and mention the other.
One theorem, stated exactly
Hypotheses and conclusion, with a proof or proof idea in a few lines. A precise statement of one theorem beats vague mentions of five.
A small example, worked
Numbers, a picture, or a two-variable case that the reader can check. This is where understanding shows.
Algorithms and complexity
How you compute it, and how fast. Most keywords on these lists are methods, so this is often half the answer.
Applications and connections
Two concrete applications and one link to another keyword on the list (LP duality ↔ interior point methods ↔ minimum-cost flow; diffusion models ↔ Lévy processes and MCMC; optimal control ↔ reinforcement learning ↔ state space models).
Drill
Worked example
Outline an answer for "linear programming duality" in the five-part shape.
Definition.
Primal , dual . The dual arises by bounding the primal objective with non-negative combinations of the constraints: if , , then .
Theorems.
Weak duality (the line above). Strong duality: if either problem has a finite optimum, both do and the optima are equal; proof via Farkas' lemma (a separating hyperplane argument), or as a by-product of the simplex method. Complementary slackness: feasible are both optimal if and only if and for all .
Example.
s.t. , , . Optimum , value . Dual s.t. , , : , value . Both primal constraints are tight and both , as complementary slackness requires. Read as the marginal value of resource (shadow prices).
Algorithms.
The simplex method maintains primal feasibility and finishes when the implied dual is feasible. Interior point methods follow the central path (with ) as , shrinking the duality gap -vs-, in polynomial time. Duality gaps are the standard stopping certificate.
Applications and connections.
Max-flow min-cut and König's theorem are LP duality for totally unimodular matrices. Minimum-cost flow optimality is complementary slackness with node potentials. In game theory, von Neumann's minimax theorem is LP duality; in machine learning, the SVM dual leads to kernels. Lagrangian duality and KKT conditions generalize it to convex programs.
Check your understanding
When does strong duality hold for a linear program?
- Whenever the primal (or the dual) has a finite optimum.
- Only under Slater's condition.Slater's condition is needed for general convex programs, not for LPs.
- Only when the optimal solution is unique.Uniqueness is irrelevant.
Why does the Metropolis–Hastings chain have the target as its stationary distribution?
- Its acceptance probability makes the chain satisfy detailed balance with respect to .
- Because the proposal distribution equals .The proposal can be almost anything; that is the point.
- Because it is irreducible.Irreducibility gives uniqueness and convergence, not which distribution is stationary.
A positive largest Lyapunov exponent for a dynamical system indicates:
- sensitive dependence on initial conditions: nearby orbits separate exponentially
- an asymptotically stable fixed pointThat has all exponents negative.
- that a Lyapunov function existsDifferent Lyapunov idea: Lyapunov functions certify stability.
Practice
Model outlines
Write your own first, then compare. Each is the skeleton of a three-page answer, not the answer.
Markov chain Monte Carlo2026 summer
Outline
- Definition: sample from (known up to a constant) by running a Markov chain with stationary distribution ; estimate by ergodic averages.
- Theorems: detailed balance ⇒ stationarity; ergodic theorem for irreducible aperiodic chains; convergence in total variation at a rate set by the spectral gap; a CLT for ergodic averages with asymptotic variance involving the autocorrelation.
- Example: random-walk Metropolis on a 1D bimodal density; show slow mixing between modes, cured by tempering.
- Algorithms: Metropolis–Hastings, Gibbs sampling, Hamiltonian Monte Carlo, Langevin (link to diffusion models). Diagnostics: effective sample size, .
- Applications: Bayesian posteriors, the Ising model, counting via rapidly mixing chains.
Proximal gradient descent2026 winter
Outline
- Definition: for , -smooth convex, closed convex, .
- Theorems: prox is firmly non-expansive; ; FISTA accelerates to (energy argument as in 2024 P2); linear rate under strong convexity.
- Example: lasso, where the prox is soft-thresholding (ISTA). Work one step by hand.
- Connections: projected gradient ( an indicator), the PSD projection of 2026 P1, ADMM, mirror descent.
- Applications: sparse regression, compressed sensing, matrix completion with the nuclear norm (prox = singular value thresholding).
Minimum-cost flow problem2026 winter
Outline
- Definition: directed graph, capacities , costs , supplies ; minimize over flows with and conservation.
- Theorems: optimal iff the residual graph has no negative-cost cycle; equivalently, there are node potentials with reduced costs on residual arcs (LP duality); integrality for integer data (total unimodularity).
- Example: a four-node network; cancel one negative cycle by hand.
- Algorithms: cycle cancelling, successive shortest paths with potentials (Dijkstra), cost scaling; strongly polynomial algorithms exist (Tardos, Orlin).
- Applications: transportation and assignment, optimal transport, image segmentation via cuts; special cases are shortest path and max flow.
Diffie–Hellman key exchange2026 summer
Outline
- Definition: in a cyclic group of order , Alice sends , Bob sends , both compute .
- Theorems: security rests on the computational/decisional Diffie–Hellman assumptions, implied to be no harder than discrete log; generic-group lower bound ; Pohlig–Hellman shows why needs a large prime factor.
- Example: , , , : shared key .
- Algorithms: fast exponentiation (signed digits, see module 9), elliptic-curve groups for shorter keys; attacks by baby-step giant-step, Pollard rho, index calculus in .
- Applications and connections: TLS key exchange; man-in-the-middle needs authentication; Shor's algorithm breaks it, motivating post-quantum cryptography (another keyword on the list).
State space model2026 winter
Outline
- Definition: hidden state , observation (linear Gaussian), or general , .
- Theorems: the Kalman filter computes exactly in the linear Gaussian case; observability and controllability; the Riccati recursion and its steady state.
- Example: tracking position and velocity from noisy positions; write one predict–update step.
- Algorithms: Kalman filter and RTS smoother, EM for parameters, extended/unscented Kalman filters, particle filters (sequential Monte Carlo).
- Connections: optimal control (LQG duality with LQR), hidden Markov models, recent deep state space models for sequences.