Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 5B a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Put . The vector triple product identity givesCyclic invariance of the scalar triple product gives . Hence the squared scalar triple product from cyclic cross products isIf an expansion entirely in pairwise dot products is desired, expand the Gram determinant of :Both expressions remain valid for degenerate, including linearly dependent, vectors.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 5B a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Use the Levi-Civita symbol contraction in suffix notation:Thus the cross product contraction expands as
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 11D c ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Suppose and . ThenThereforeThis proves sufficiency of the second alternative even if itself is not differentiable at . For example, is continuous and not differentiable at zero, while is differentiable there with derivative zero.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 11D c i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
If is differentiable at , the product rule applied to givesThis proves sufficiency of the first alternative. No additional growth condition is required; if , the derivative of the square is zero.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 10D c iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
A suitable continuous function isFor and ,All these arguments lie in . Its image is a real interval by the continuous image of a real interval result, and it is unbounded both above and below. Given any real , choose two of the displayed points with function values on opposite sides of , then apply the intermediate value theorem on the segment joining them. Hence the image is all of . A monotone example would not suffice here; the oscillation gives both directions of unboundedness near the same missing endpoint.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 10D c ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
The continuous functionhas the required image. Its values are nonnegative, and for every the point satisfies . Thus the image is exactly . The missing left endpoint permits unboundedness without a failure of continuity on the domain.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 1 10D c i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
No such continuous function exists. The extreme value theorem makes every continuous function on the closed interval bounded and gives it a finite maximum. Its image therefore cannot equal the unbounded real interval .
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 9 b ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Use recursive dependency evaluation with memoization. After an edit, invalidate all cell states. To evaluate one formula, recursively obtain its dependencies before storing its own result. This is a depth-first search of the dependency graph; a visiting mark identifies a cycle, and a done mark avoids repeated evaluation of a shared dependency. The following single class implements the design, with public nested interfaces for formula extensions:The outer loop's order need not be a topological ordering, since recursion evaluates dependencies first. After an edit, callers can invoke
public final class Spreadsheet {
public enum Kind { EMPTY, LABEL, NUMBER, FORMULA }
public interface Lookup {
double valueAt(int row, int col);
}
public interface Formula {
double evaluate(Lookup values, int row, int col);
}
public static final class AddFormula implements Formula {
private final int dr1, dc1, dr2, dc2;
public AddFormula(int dr1, int dc1, int dr2, int dc2) {
this.dr1 = dr1; this.dc1 = dc1;
this.dr2 = dr2; this.dc2 = dc2;
}
public double evaluate(Lookup values, int r, int c) {
return values.valueAt(r + dr1, c + dc1)
+ values.valueAt(r + dr2, c + dc2);
}
}
private static final class Cell {
private final Kind kind;
private final String label;
private final double number;
private final Formula formula;
private Cell(Kind k, String s, double n, Formula f) {
kind = k; label = s; number = n; formula = f;
}
}
private static final Cell EMPTY =
new Cell(Kind.EMPTY, null, 0.0, null);
private final int rows, cols;
private final Cell[][] cells;
private final double[][] cache;
private final byte[][] state;
private final Lookup view = new Lookup() {
public double valueAt(int r, int c) {
return Spreadsheet.this.valueAt(r, c);
}
};
public Spreadsheet(int rows, int cols) {
if (rows < 0 || cols < 0) throw new IllegalArgumentException();
this.rows = rows; this.cols = cols;
cells = new Cell[rows][cols];
cache = new double[rows][cols];
state = new byte[rows][cols];
for (int r = 0; r < rows; r++)
for (int c = 0; c < cols; c++) cells[r][c] = EMPTY;
}
private boolean inside(int r, int c) {
return r >= 0 && r < rows && c >= 0 && c < cols;
}
private void check(int r, int c) {
if (!inside(r, c)) throw new IndexOutOfBoundsException();
}
private void invalidate() {
for (int r = 0; r < rows; r++)
for (int c = 0; c < cols; c++) state[r][c] = 0;
}
private void put(int r, int c, Cell cell) {
check(r, c); cells[r][c] = cell; invalidate();
}
public void setEmpty(int r, int c) { put(r, c, EMPTY); }
public void setLabel(int r, int c, String text) {
if (text == null) throw new IllegalArgumentException();
put(r, c, new Cell(Kind.LABEL, text, 0.0, null));
}
public void setNumber(int r, int c, double x) {
put(r, c, new Cell(Kind.NUMBER, null, x, null));
}
public void setFormula(int r, int c, Formula f) {
if (f == null) throw new IllegalArgumentException();
put(r, c, new Cell(Kind.FORMULA, null, 0.0, f));
}
public Kind kindAt(int r, int c) {
check(r, c); return cells[r][c].kind;
}
public String labelAt(int r, int c) {
check(r, c); return cells[r][c].label;
}
public double valueAt(int r, int c) {
if (!inside(r, c)) return 0.0;
if (state[r][c] == 2) return cache[r][c];
if (state[r][c] == 1)
throw new IllegalStateException("Cyclic formula dependency");
state[r][c] = 1;
try {
Cell cell = cells[r][c];
double answer;
switch (cell.kind) {
case NUMBER: answer = cell.number; break;
case FORMULA: answer = cell.formula.evaluate(view, r, c); break;
default: answer = 0.0;
}
cache[r][c] = answer;
state[r][c] = 2;
return answer;
} catch (RuntimeException error) {
state[r][c] = 0;
throw error;
}
}
public void recalculate() {
invalidate();
for (int r = 0; r < rows; r++)
for (int c = 0; c < cols; c++) valueAt(r, c);
}
}recalculate; ordinary valueAt calls also calculate lazily from the invalidated state. Empty and label cells contribute zero without destroying their display content. Relative references are interpreted at the formula's location, and off-grid references contribute zero as required.For an acyclic graph, mathematical induction over a topological ordering proves that each cached value equals the evaluation of current cell contents. Each cell becomes done at most once in a pass, so the time complexity is for cells and dependency references, plus formula arithmetic. The stack depth is at most the longest dependency path. A more elaborate implementation can record reverse dependencies and invalidate only cells affected by an edit.
The PDF gives no policy for circular formulas. Repeated numerical sweeps are not a general solution: a cell defined as itself plus one has no finite value, while a cell defined as itself plus zero has no unique value. The implementation therefore reports a cycle instead of looping or presenting an arbitrary stale value. An acyclic dependency graph is evaluated once per cell; circular dependencies are detected and rejected.
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 9 b i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Use a
Spreadsheet class owning a private rectangular Java array of cells. Each immutable internal Cell contains a private tag Kind with values EMPTY, LABEL, NUMBER, FORMULA, and the corresponding payload: a string, a double or a formula reference. The tag determines which payload is meaningful, and the spreadsheet's setters create valid combinations rather than letting callers change fields independently. The cell object need not be public; public methods can expose its kind and label when needed for display.Provide public
setEmpty(r,c), setLabel(r,c,text), setNumber(r,c,x) and setFormula(r,c,f) methods, each checking its target coordinates and invalidating cached results. A public valueAt(r,c) supplies the numerical value, treating out-of-grid, empty and label cells as zero, and a public recalculate() brings all valid formulas up to date. Keep cached numeric results and evaluation-state flags private; they are derived data rather than editable cell content.Define a public
Formula interface with double evaluate(Lookup values, int row, int column). Lookup supplies only valueAt(r,c), so a formula can read dependencies without needing direct access to cells or a mutation API. An immutable AddFormula stores four integer offsets, two row/column pairs. It evaluates the two coordinates relative to the formula's own position and returns their sum. New formula kinds implement the same interface, avoiding changes to the storage representation or a large central switch over all formula operations.The private spreadsheet dependency evaluation mechanism provides the
Lookup implementation, checks cycles and caches evaluated cells. Formula evaluation is required to be side-effect-free with fixed dependencies during a recalculation. This separates encapsulation in object-oriented programming from extension: callers can change a cell through public setters and add new formula implementations, while internal cell invariants and cached values remain protected. Use tagged cell contents, an extensible formula interface and spreadsheet-owned evaluation state. Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 8 c ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
In an ordinary general-purpose operating system, untrusted user code should not be allowed to disable the system's timer and device interrupts. Otherwise a nonterminating program could prevent scheduling and device service. User mode is not a reason to permit arbitrary writes to protected interrupt controls.
A restricted trusted environment can nevertheless make this combination useful: a kernel may permit a short, bounded user-level real-time or device operation to run without maskable interrupts, or provide a virtualized per-task interrupt mask which delays that task's notifications while leaving system service active. Such permission must not let an untrusted task disable global service indefinitely. On a uniprocessor a short hardware-masked interval can reduce interruption latency, but it does not prevent faults, nonmaskable interrupts or activity on other cores. Thus the combination is meaningful in controlled cases, not a normal synchronization technique for arbitrary user programs.
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 8 c i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Yes: supervisor execution with interrupts enabled is normal and useful. Much of the operating-system kernel can execute with interrupts enabled so that timers, device completions and other urgent events receive prompt service. Disabling them for every potentially long system call would cause excessive latency and could prevent receipt of the very event needed for progress.
Handlers and shared data must then be protected against interrupt-time reentrancy. Disable relevant interrupts only for short critical sequences or use an appropriate synchronization mechanism; on multiple processors, local interrupt masking alone does not protect against another processor. Interrupt enablement and kernel preemption are different: an interrupt can be serviced without allowing an arbitrary process context to preempt the interrupted kernel operation.
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 5 a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
For a finite binary tree,
gordon p t expresses the existence of a root-to-Lf path on which every branch-node label satisfies p. The empty tree has a length-zero path and returns true. At Br(x,left,right), such a path exists precisely when p x holds and at least one child admits such a path. This is the recursive Boolean equation derived in part (i). Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 5 a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Assuming The Standard ML handler in the printed function belongs to the
p is an ordinary total Boolean predicate, replace success by true and the search's failure exception by false:fun gordonPlain p Lf = true
| gordonPlain p (Br (x, left, right)) =
p x andalso
(gordonPlain p left orelse gordonPlain p right);else expression: it tries the left subtree and, only if that search raises Blair, tries the right. It does not catch a failing label test at the current node. This scope follows the Standard ML grammar, Appendix B. Short-circuit andalso rejects the current label before visiting either child; short-circuit orelse visits the right child only after the left search fails. Structural induction on the binary tree proves that tony returns true exactly when gordonPlain does, and otherwise raises the exception converted by gordon to false. The exception-free test is the root predicate conjoined with the disjunction of the two subtree tests.The total-predicate assumption matters: if
p itself raises Blair, the original handler can catch it, whereas an implementation with no exception handling cannot in general convert that event to a Boolean result. The displayed replacement implements the intended Boolean tree property, not an exception-catching wrapper for arbitrary exceptional predicates. Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 19F b iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Let be the central one-dimensional character of a proposed . Since is not cyclic, part (a) makes this one-dimensional character nonfaithful. Choose a nonidentity . It acts as identity on every tensor power and therefore on every summand. There is a one-dimensional character of with : decompose the finite abelian group into cyclic factors and choose a primitive one-dimensional character on a factor where has a nonidentity component. By part (b)(ii), some irreducible representation of has central one-dimensional character on . This cannot occur in any tensor power of , because acts nontrivially on it. Therefore no such tensor-generating irreducible exists.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 19F b ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Given a one-dimensional character of , form the nonzero space of functions satisfying . Right translation defines a representation of dimension . Centrality gives , so acts by on the entire space. This representation has an irreducible summand: average any positive Hermitian inner product over the finite group, so invariant subspaces have invariant orthogonal complements, and decompose inductively by dimension. Every irreducible summand has the same central one-dimensional character . Thus every irreducible representation of occurs by restriction in the requested way.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 19F b i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
For , the eigenspaces of are invariant under , since every representing matrix commutes with . Irreducibility forces one such eigenspace to be all of , so . The multiplication law gives , making a one-dimensional, hence irreducible, group representation of . Therefore
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 19F a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
A faithful representation of dimension one embeds into . Every image element is a th root of unity by Lagrange's theorem, so the image is a subgroup of the cyclic group of those roots. It is cyclic, and faithfulness makes cyclic. Conversely a generator of a cyclic group of order can be sent to , giving an injective one-dimensional character. Thus such a faithful representation exists exactly when is a cyclic group.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 19F a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Choose a nonzero vector in an irreducible representation. Its finite group orbit spans a finite-dimensional invariant subspace, which must be the whole representation. The representing matrices of an abelian group commute. Choose an eigenspace of one matrix; all other matrices preserve it. Repeatedly choosing an eigenspace for the restrictions of the remaining matrices gives a common eigenvector. Its line is invariant under the whole group. Irreducibility therefore makes the representation that line, proving every irreducible complex representation of a finite abelian group is one-dimensional.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 2 15D b ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 2 15D b i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
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





