Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Discrete mathematics 1 a ii Solution by
Codex 0 2026-10-25
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Discrete mathematics 1 a i Solution by
Codex 0 2026-10-25
For pairwise disjoint finite sets, the rule of sum givesThe password sets of different lengths are disjoint, so the required number is .
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 6 d ii Solution by
Codex 0 2026-10-25
By the diagonal reduction in a two-variable Newton iteration, for . Put . Direct factorization gives the exact Newton map in optimization error identityThe assumed convergence makes the final factor tend to , so it is bounded for all sufficiently large . Hence . For the Euclidean norm error , this becomes , proving quadratic convergence. Unless the exact limit is reached in finitely many steps, .
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 6 d i Solution by
Codex 0 2026-10-25
For Newton's method in optimization, let . Its second row equation is , so . Therefore . The given first coordinate yieldsThe Newton step is defined where ; both coordinates after any defined step are equal.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 5 a v Solution by
Codex 0 2026-10-25
For a generic integrand in 20 dimensions, Monte Carlo integration gives root mean square error , whereas tensor-product quadrature with composite Simpson's rule gives only . One can sample uniformly in the Euclidean unit ball, for example by an independent uniform direction and radius with uniform on .
For this particular integrand, the most efficient elementary choice uses radial integration over a ball first. The area of the unit 19-sphere is , as follows from the volume of an n-ball. HenceThe reduced integrand is smooth. Apply composite Simpson's rule to obtain deterministic error in big O notation, with one original radial integrand evaluation per node. If the selection is restricted to direct multidimensional methods, Monte Carlo integration with root mean square error is the appropriate choice.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 5 a iv Solution by
Codex 0 2026-10-25
A convenient choice for this irregular region is Monte Carlo integration. The region is contained in . For independent uniform points in that square, letThe indicator random variable incorporates the curved boundary directly. This estimator is unbiased; the integrand is bounded on the square, so its variance is finite. The variance of a sum of independent terms gives root mean square error in big O notation. This is a stochastic error rate. Applying a rectangular Simpson's rule to the indicator-weighted integrand would lose the smoothness required for its fourth-order error bound.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 5 a iii Solution by
Codex 0 2026-10-25
Use tensor-product quadrature with composite Simpson's rule in each coordinate. If there are subintervals in each direction, then and the quadrature rule error is : apply the one-dimensional error bound for composite Simpson's rule successively, using bounded fourth partial derivatives. Hence the error is in big O notation. The rectangular domain makes the product grid convenient.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 5 a ii Solution by
Codex 0 2026-10-25
Use composite Simpson's rule on this smooth, bounded one-dimensional interval. Its fourth derivative is bounded on the interval, so the error bound for composite Simpson's rule gives in big O notation as the number of function evaluations increases.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 5 a i Solution by
Codex 0 2026-10-25
Use Simpson's rule: the cubic exactness of Simpson's rule includes every quadratic integrand, so three function evaluations already give the exact answer. Thus the error is zero. For a general smooth integrand the corresponding composite Simpson's rule has error in big O notation, but that bound is unnecessarily weak here.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 4 b ii Solution by
Codex 0 2026-10-25
Writing , the gradient and Hessian matrix areConsequently, for any nonzero ,In particular the Hessian matrix is a positive semidefinite matrix everywhere, so the Hessian criterion for convexity proves is convex. The strict inequality along every nonconstant line also proves strict convexity.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 4 b i Solution by
Codex 0 2026-10-25
The Hessian criterion for convexity, in the usual twice-differentiable multivariate setting, isThus the Hessian matrix must be a positive semidefinite matrix everywhere. The criterion follows by applying the second-derivative criterion for convexity to each line restriction , whose second derivative is . Continuous second partials are a sufficient regularity hypothesis for this line-restriction argument.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 4 a ii Solution by
Codex 0 2026-10-25
Expand before taking the second derivative:The second-derivative criterion for convexity proves that is strictly convex, hence convex.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics, and probability Continuous mathematics 4 a i Solution by
Codex 0 2026-10-25
The second-derivative criterion for convexity isThe non-strict inequality is necessary and sufficient; the stronger condition is sufficient for strict convexity.
Past exam of the short options paper of the physics Prelims of the University of Oxford 2022 S03 2 b iii Solution by
Codex 0 2026-10-25
For an axis halfway from toward , let . The Born rule givesThe negative-outcome probabilities are complementary. Both outcomes can occur for both inputs, so one result cannot distinguish them perfectly. Repeated measurements on independently prepared copies distinguish their different statistics with arbitrarily high confidence. Reversing the diagonal direction exchanges the two numbers. This separates single-copy certainty from statistical distinguishability.
Past exam of the short options paper of the physics Prelims of the University of Oxford 2022 S03 2 b ii Solution by
Codex 0 2026-10-25
A horizontal Stern-Gerlach spin measurement measures . The inputs are its orthogonal eigenstates, soThe output beam identifies the input with certainty in a single ideal measurement.
Past exam of the short options paper of the physics Prelims of the University of Oxford 2022 S03 2 b i Solution by
Codex 0 2026-10-25
A vertical Stern-Gerlach spin measurement is a -spin measurement. The Born rule givesThus this measurement cannot distinguish the two preparations, even by repeating the same measurement on many identically prepared copies: it discards their relative-phase difference in this basis.
Past exam of the short options course of the University of Oxford 2021 5 a i 3 Solution by
Codex 0 2026-10-25
Exactly works. Composition with the hyperbolic tangent is smooth for every . If , set . For , , so the result vanishes; it is therefore a test function with support of a function .
If , every finite satisfies . The given positivity makes for every , so its support is all of . In particular is excluded even though the function tends to zero at infinity: decay is not compact support.
Past exam of the short options course of the University of Oxford 2021 5 a i 2 Solution by
Codex 0 2026-10-25
Exactly works. For nonzero , composition with preserves smoothness, and the support of a function is , which is compact. For the result is the strictly positive constant on all of , so it lacks compact support and is not a test function.
Past exam of the short options course of the University of Oxford 2021 5 a i 1 Solution by
Codex 0 2026-10-25
Every works. Translation preserves a smooth function, and the support of a function becomes the compact interval . Hence , the space of test functions.
Past exam of the metric spaces and complex analysis course of the University of Oxford 2021 2 d i 2 Solution by
Codex 0 2026-10-25
Assume condition (2). Fix and . The superlevel setis a closed set and does not contain . Its complement is therefore an open neighbourhood of , so some open ball avoids . Consequently throughout that ball, givingThe same bound holds for every smaller radius. Taking and then yieldsTogether with the previous implication this proves the equivalence. A supremum may equal even when every individual value is strictly smaller; the non-strict estimate here handles that possibility.
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





