Because is odd, is odd. Choose , a positive integer congruent to three modulo four. Also , so the square has Jacobi symbol one modulo . Multiplicativity in the numerator follows from the corresponding Legendre property in each prime factor. Thus
This gives an explicit positive odd denominator with the required obstruction.
If have a common prime factor, both Jacobi symbols are zero, and the identity holds. Otherwise write , with multiplicity. All cross-pairs of primes are distinct. Multiplying quadratic reciprocity over these pairs gives
The exponent factors as a product of two sums. The parity identity from part (i) makes it congruent modulo two to . Therefore
The same formula includes a denominator equal to one by the empty-product convention.
For odd ,
The last term is even, so induction over the prime factors, including repetitions, gives . Using the first supplementary law in each Legendre factor,
For , the product is empty and both sides equal one.
If divides or , it divides their product and both sides of the proposed identity are zero. Otherwise use Euler's criterion and the ordinary exponent rule:
Both sides are in , and these two values are distinct modulo the odd prime . Hence the congruence is an equality:
For distinct odd primes , quadratic reciprocity is
The usual supplementary laws are
The first supplement also follows immediately by inserting into Euler's criterion.
Euler's criterion states that, for an odd prime and ,
Thus this power is congruent to one for a nonzero square and to minus one for a nonsquare. The congruence also holds when if both sides are taken to be zero.
A square residue modulo is a congruence class represented by for some integer . For the final all-primes solvability statement, zero is included as a square. The Legendre symbol distinguishes the zero class from the nonzero square and nonsquare classes:
When the term quadratic residue is reserved for nonzero classes, the zero case must be stated separately, as in this definition.
At , the derivative and curvature are , , so the next iterate is . At , they are , , so the next iterate is . Hence
The undamped algorithm does not converge to a minimum; it has an exact two-cycle. The implementation in (iii) detects this after returning to one and reports failure. This example illustrates why the local convergence result in (ii) does not justify global success.
Here and . This implementation uses the undamped Newton step, checks a stationary point's curvature, and reports failure on a two-cycle or exhausted iteration limit:
R
newton_min <- function(x0, tol = 1e-10, maxit = 100L) {
  fp <- function(x) 4*x^3 - 12*x^2 + 4*x + 12
  fpp <- function(x) 12*x^2 - 24*x + 4
  x <- x0
  trace <- x
  for (k in seq_len(maxit)) {
    g <- fp(x)
    h <- fpp(x)
    if (abs(g) <= tol) {
      return(list(x = x, converged = h > 0,
                  reason = if (h > 0) "minimum" else "not a strict minimum",
                  trace = trace))
    }
    if (!is.finite(h) || abs(h) <= .Machine$double.eps)
      stop("Newton step has zero or invalid curvature")
    next_x <- x - g/h
    if (!is.finite(next_x)) stop("Nonfinite Newton iterate")
    trace <- c(trace, next_x)
    n <- length(trace)
    if (n >= 3L && abs(trace[n] - trace[n - 2L]) <= tol*(1 + abs(next_x)))
      return(list(x = next_x, converged = FALSE,
                  reason = "two-cycle", trace = trace))
    x <- next_x
  }
  list(x = x, converged = FALSE, reason = "iteration limit", trace = trace)
}
A sufficiently close start near converges to the minimum. The derivative cubic has exactly one real root: after it is proportional to , whose local maximum and minimum are both positive, so it crosses zero only once, on the left. Since the quartic tends to in both directions and its curvature at that stationary point is positive, this is the unique global minimum. The function reports convergence rather than assuming that every starting point must reach it.
Let , with , . Taylor expansion gives
Division in the Newton update yields
Thus convergence is generically quadratic when that coefficient is nonzero. With a locally Lipschitz second derivative and nonzero , the weaker estimate also proves local quadratic convergence.
“Quadratic at best” is false as a universal upper bound. If the displayed coefficient vanishes, the order can be higher. For example has a minimum at zero, and its Newton optimization update is , which has cubic convergence. For a nondegenerate quadratic objective the method reaches the stationary point in one step. The expansion proves the standard generic quadratic statement while retaining and correcting the source's stronger wording explicitly.
For scalar minimization, apply Newton's root-finding method to the stationarity equation . Linearize at the current point to obtain
The iteration requires . Near a nondegenerate local minimum, where , , suitable smoothness and a sufficiently close starting value give local convergence. A stationary limit must still be checked to be a minimum. This undamped method is not globally convergent and need not decrease at every step.
The expression presupposes that is invertible; positivity of the stated optimal coordinates alone would not prove that, so use the nonsingularity implicit in this expression. Let be the first components of and set . Then .
For any nonbasic column , introduce while changing the basic vector from to . This stays feasible for sufficiently small because every . Optimality at implies the objective slope . Therefore for every such column, and the basic columns satisfy equality. Thus is dual feasible, independently of the right-hand side.
For , the proposed is primal feasible and
Weak duality, valid with unrestricted equality multipliers, proves . This also explains the stability of an optimal basis while its new basic coordinates remain nonnegative.
Write as and . The dual has nonnegative multipliers for these inequalities, with objective and condition . Every real vector can be expressed as with . Hence
The equality constraints remove the sign restriction on the dual variables.
Try the dual intersection , . It gives ; the remaining constraint is , so it is dual feasible. Its strictly positive slack in the first column suggests , while positivity of both entries suggests . Solving , gives , which is primal feasible.
Their objective values agree:
Weak duality certifies that both are optimal. The strict first-column dual slack and the two active primal equations also show uniqueness of the primal optimum; positivity of forces the two dual equations, so the dual optimum is unique as well.
For feasible points the duality gap decomposes as
Each term in both sums is nonnegative. Therefore the gap is zero exactly when every product vanishes, namely the two sets of complementary slackness equations in the question (with or its negative making no difference to a zero product). If the equations hold, equality and weak duality prove optimality of both points. Conversely, if both are optimal and the optimal values are equal as assumed, the gap is zero, forcing each product to vanish. This proves both directions.
The dual is . Weak duality states that every primal feasible and dual feasible satisfy . Indeed,
using for the first inequality and for the second. Thus a feasible dual value is an upper bound on every primal objective value, and a feasible pair with equal values certifies both optima.
For , the envelope ratio is
If , use to bound this by . If , use to bound it by . The boundary equalities in these bounds cannot both occur in the sine estimate, so is a valid envelope. At zero the continuous ratio is .
Generate independent Cauchy proposals as in (i), together with independent uniform . Accept a proposal when
using the limiting value at . Repeat until acceptance. Part (a) proves exactness; the overall acceptance rate is and the mean number of proposals is three. No numerical maximization of the ratio is needed for correctness.
Generate independent standard normal variables and put . The event has probability zero. The ratio calculation in M4 with equal standard deviations gives density , exactly the required distribution with one degree of freedom. The equivalent form has the same law by symmetry.
For one trial and any measurable set ,
Since the acceptance probability is , conditioning gives target probability . Repeating failed independent trials does not alter this conditional law: summing over the trial number multiplies by the geometric sum . Taking proves
Independently draw and . Accept if ; otherwise discard it and repeat with fresh independent draws. Return the first accepted value. The bound makes the acceptance probability at each proposal at most one. As , the total acceptance probability is , so the procedure terminates almost surely. Values outside the proposal support must have target density zero for the stated envelope assumption to make sense.

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!
We have two killer features:
  1. 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-calculus
    Articles 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/derivative
  2. 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.
    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.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
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