Put . Differentiating the barrier gradient givesAt a nonzero stationary point on the branch , . Choose an orthonormal eigenbasis of the symmetric matrix whose first vector is . On each of the remaining eigenvectors the rank-one term vanishes, so the corresponding Hessian eigenvalues areAlong , the first two terms cancel and the remaining eigenvalue isIf repeats, a transverse eigenvalue can be zero. If a lower eigenvalue than exists, a transverse eigenvalue is negative, identifying this stationary branch as a saddle rather than a minimum.
A line search chooses a positive step size giving useful decrease along the chosen direction. Fix and a trial step . The Armijo condition isThe backtracking line search tests and takes the first accepted value. A Lipschitz gradient has with a constant independent of .
Integrating the gradient along a segment gives the descent lemmaFor , every satisfies the Armijo condition. Thus backtracking terminates. If the trial step is accepted, ; otherwise the immediately preceding step failed, so it exceeded . ConsequentlyThe same global Lipschitz constant and fixed search parameters make independent of . If , the zero direction passes the first test. If , the gradient is constant and the first test passes, so take .
Choose , fixed , , and repeat for every : compute , choose by the backtracking line search in part (b) with , and set . At a stationary point keep the sequence constant.
Assume has a globally Lipschitz gradient and is bounded below on its initial sublevel set . Then the steepest descent method satisfies . Indeed, the Armijo condition and the uniform lower step bound giveThe objective values decrease and stay in the stated sublevel set. Summing the inequality and using its lower bound yieldswhich proves the limit. Every cluster point is a stationary point by continuity of the gradient. If the initial sublevel set is compact, cluster points exist. This global convergence result guarantees stationarity from arbitrary initial points under these assumptions; it does not, for a general nonconvex objective, guarantee convergence of the whole iterate sequence or a global minimum.
The descent lemma follows by integrating the gradient along the line and using its Lipschitz continuity:This upper bound is at most the right side of the Armijo condition when . Since , it holds forThe zero step gives equality; every positive step in this interval satisfies the prescribed sufficient-decrease test.
On the strictly feasible region , the logarithmic barrier objective isWith , its gradient isThe positive coefficients are the barrier's multiplier estimates.
Take and metric signature . The four-current, four-potential and four-gradient areThe first two transform as contravariant four-vectors under an inertial-frame Lorentz transformation, within a consistently transformed electromagnetic gauge. The lowered-index gradient is a covector. Their contraction is a Lorentz scalar:Indeed, and , so the two matrices cancel in the contraction. Local charge conservation in one inertial frame implies local charge conservation in every inertial frame. Integrating over a region gives the charge change equal to minus its outward current flux; global conserved charge requires no flux through the system boundary.
Use metric and common spacetime origins. A four-vector transforms as under a Lorentz transformation. A Lorentz invariant is a scalar unchanged by that transformation. Since ,The wave phase labels the same stage of a physical oscillation at a spacetime event, independently of the observer's coordinates. Equal-phase wavefronts and interference phase differences are physical; fixing a common phase origin makes the continuous phase a Lorentz scalar. For a plane wave,The gradient of a scalar is a covector; raising its index gives the four-wavevector . Under an boost,For vacuum light, , givingA photon has four-momentum , with . For two photons separated by angle ,In the centre-of-momentum frame the least possible pair energy is , when both final particles are at rest. Thus the threshold has ; above it, excess energy supplies their kinetic energy. ThereforeThe kinematic equality is a limiting threshold; nonzero production phase space requires energies above it. For parallel photons no finite threshold is available, whereas head-on incidence minimizes the required energy:The blackbody-peak photon pair-production estimate, using the frequency-spectrum blackbody peak, at , gives , or . If “peak” means the wavelength-spectrum peak, instead gives . The spectral convention changes the prefactor, not the conclusion that photons of order a few are needed for this idealized peak-photon threshold.
wave phase labels the stage of a physical oscillation at a spacetime event. Two observers comparing the same event must identify the same crest, trough or intermediate stage: a change of coordinates cannot change the number of completed cycles between physically specified wavefronts. The continuous wave phase can therefore be treated as a Lorentz scalar, up to a common choice of wave phase origin. This does not assert invariance of the measured angular frequency, which is the rate of change of that wave phase along the observer's trajectory.
For Lorentz invariance of plane-wave phase, writeusing the metric with signature . The gradient transforms as a covector because is a scalar. Raising its index therefore gives the four-wavevector. Explicitly, substituting the inverse boost , givesThese are exactly the Lorentz transformation laws for . In vacuum, ; the Doppler effect and aberration of light are two consequences of transforming the same four-vector.
Past exam of the optics and electrodynamics course of the University of Cambridge 2017 4 Solution Created 2026-10-18 Updated 2026-10-20
Gauge freedom. The magnetic vector potential satisfies . The transformationleaves unchanged because the curl of a gradient is zero. For time-dependent fields, transform the electric scalar potential as as well, so that is unchanged. The scalar must have the regularity and single-valuedness appropriate to the physical region and its boundary conditions. Local values of therefore depend on the gauge transformation.
Gauge and nonzero component. In the standard axisymmetric Coulomb gauge representative for the long-solenoid approximation,The divergence vanishes since is independent of the azimuth. Inside, this agrees with the usual symmetric gauge representative . The Coulomb gauge condition alone does not force the other two components to vanish; the symmetry, regularity and customary boundary choice select this representative from the remaining gauge freedom.
Radial dependence. Write the interior magnetic field as , where for a vacuum solenoid of solenoid turn density . Its exterior magnetic field vanishes in the infinitely long idealization. Applying Stokes theorem to a coaxial circle gives . Therefore the Coulomb-gauge vector potential of a long solenoid isIt grows linearly inside, is continuous at , and decays as outside. Although its exterior curl is zero, its circulation is the enclosed magnetic flux . No regular single-valued gauge function removes it throughout the exterior while preserving this circulation.
Electric field of the rotating charged surface. For clarity retain absolute permittivity and permeability in the cylinder formulae; setting them to unity gives the rationalized-unit convention in the question. If the stated unity means relative material constants in SI, use instead. Assume prescribed charge densities in the laboratory frame and the nonrelativistic, steady-rotation model.
The axisymmetric surface charge is stationary as a distribution even while the material rotates. A Gaussian cylinder of length has enclosed charge zero for and for . Gauss's law therefore givesThe radial electric field jumps from zero to at the surface and then decays as . Its direction reverses for negative . The angular velocity does not enter this electric-field result for a specified surface charge.
Magnetic field of the volume-charged cylinder. A shell of radius and thickness has surface charge , azimuthal surface current , and the field of an infinite solenoid: inside that shell and zero outside it. At radius , only shells with contribute. Thus the magnetic field of a rotating charged solid cylinder isWith no applied background magnetic field, outside. The profile is parabolic, largest on the axis and zero at the boundary. The sign follows . As a check, the current density is , and Ampère's circuital law gives , as required.
Electron impulse when the current is switched off. Choose positive so the initial magnetic flux is along . Faraday's law of induction gives, outside the solenoid,For an electron of electric charge , treat its position as fixed while the short pulse acts. The inductive impulse outside a switched solenoid isConsequently the nonrelativistic final velocity isThe induced electric field circulates in the positive azimuthal direction while a positive flux decreases, so the electron accelerates in the negative direction. Once the pulse has passed, there is no exterior field and it travels along the tangent at the impulse point, rather than continuing in a circular orbit. If the resulting momentum is relativistic, use instead. The sudden-switch result assumes negligible displacement during the pulse and the usual quasistatic electromagnetic induction approximation; “instantaneous” switching does not mean instantaneous propagation of fields to arbitrary distance.
One can check the sign using conserved canonical angular momentum: axial symmetry conserves . Initially , and finally , so .
Interferometric measurement at constant current. Use a coherent electron beam split into two paths passing on opposite sides of a shielded long solenoid, then recombine them to form interference fringes. Keep the current constant during the passage and suppress leakage fields on the paths. In the Aharonov-Bohm effect, the phase difference due to the magnetic vector potential is the closed-loop integralThe overall sign reverses if the path orientation is reversed. The displacement in fringe periods is , so the measured fringe shift is linear in and repeats whenA gauge transformation adds a gradient whose closed-loop integral vanishes for a single-valued . Endpoint changes in electron wavefunction phase cancel in the interference measurement. The measured Aharonov-Bohm phase is therefore gauge invariant: it determines the flux, or equivalently the circulation of . In the chosen Coulomb gauge this implies , but the experiment does not select or measure a unique local vector potential independently of gauge.
Far field of the rotating sphere. Interpret uniform charge as uniform volume charge of total , and take . The magnetic dipole moment of a rigidly rotating charge distribution isIts axial component is . For a solid sphere, and , soThe magnetic field of a rotating charged spherical body is a static magnetic dipole field at large distances:In particular, . Both the angular mean of the magnitude and its root mean square therefore scale as ; the latter is . The angular average of the vector is zero, which is different from average strength. Steady rotation leaves the charge and current distributions stationary, so this is magnetostatics, not a radiative field. If uniform charge instead means a thin spherical surface, replace the dipole moment by ; the angular pattern and scaling are unchanged.
Compact support of a measure gives finite second absolute moments for both probability measures. Since the source satisfies absolute continuity of measures with respect to Lebesgue measure, Brenier's theorem identifies the quadratic Kantorovich optimal transport problem with the Monge optimal transport problem:Here is the pushforward measure. The optimal transport plan is unique and equals . The optimal transport map is unique up to a -null set, withThe gradient of this convex function is c-cyclically monotone for on a full-measure set. In particular, summing the two supporting inequalities for the convex function gives wherever both gradients exist. No regularity of the target beyond the stated probability measure assumptions is needed.
Write , with . Applying polar coordinates and Fubini's theorem gives, for bounded nonnegative measurable ,Also by absolute continuity of measures. Extending by zero on the negative half-line proves
Both radial pushforward measures have compact support of a measure, so Brenier's theorem on the line supplies a unique optimal transport plan and a transport map , unique -almost everywhere, withIn one dimension, the gradient of a convex function is a nondecreasing function. Nonnegativity holds -almost everywhere because is carried by . To choose a nonnegative, nondecreasing representative everywhere, let be the radial cumulative distribution functions and use the monotone rearrangementAt set , and at use the largest point of the support of a measure . These choices preserve monotonicity and boundedness. Since is continuous, has the uniform distribution on when has law , and the quantile function sends this uniform distribution to . Thus this representative has the required pushforward measure, even if the target has atoms.
Choose the bounded, nonnegative nondecreasing function from part (d), and defineThe function is convex and nondecreasing. For , the triangle inequality, monotonicity, and convexity giveHence is a convex function. By the gradient of a radial function formula and the fundamental theorem of calculus,for whenever . A monotone function has at most countably many discontinuities, so part (d) makes the exceptional radii -null. The origin is also -null. Define ; thus -almost everywhere.
For every in the orthogonal group, , including at zero. Consequently is invariant under the orthogonal group. Moreover away from the null origin, and composition of pushforward measures givesPart (c) therefore gives . The Knott–Smith optimality criterion makes a transport map given by a convex function's gradient optimal for the quadratic transport cost. Uniqueness from Brenier's theorem yieldsSince directions agree, this also identifies the optimal value:
Use an independent copy of under the product measure . Write , , andSince the pushforward measure of under is , the interaction energy isTwo applications of the chain rule giveThe factor is retained. This classical identity requires differentiation under the integral sign to be justified, just as in part (b). Bounded Hessian matrix of is sufficient, since is integrable; compactly supported endpoints are another sufficient case. The printed quadratic-growth condition alone does not provide this domination.
The failure can occur for the interaction energy too. Take the even interaction potential and replace the endpoint probability measures in part (b) by and . Keep the origin fixed and translate every other atom by one. This coupling is increasing on the line, hence is optimal: its assigned values extend to a nondecreasing transport map, which is the gradient of a convex function. Differences between translated atoms remain integers, so their mutual interaction vanishes. Only interactions with the origin contribute, giving , with from part (b). It therefore also lacks a finite classical second derivative at .
A finite first moment suffices for the velocity, but may not suffice for the printed potential. For example, has all the stated properties. If is the law of with density on , then but , and for every . Thus the literal definition of needs a finite second absolute moment, or another hypothesis ensuring integrability of .
For the specified class , define the velocity fields directly by and . Equivalently, use the renormalized interaction potentialThe bounded Hessian matrix and implyThus is finite, is twice continuously differentiable in space, and has , by dominated differentiation under the integral sign. Its rotated negative gradient is exactly . Whenever is finite, the two potentials differ only by an -independent constant and give the same transport equation.
We check the hypotheses for characteristic representation of a measure-valued continuity equation. For every ,For any coupling , the Lipschitz condition on also givesTaking the infimum over couplings proves the uniform boundApplying the same estimate at two times of one curve proves time continuity of , uniformly in . Also , so is bounded on compact time intervals. Spatial partial derivatives of are continuous and bounded by , using dominated convergence in space and weak convergence of probability measures in time for the bounded continuous kernel . All corresponding facts hold for .
The characteristic representation of a measure-valued continuity equation says that a continuous velocity field, continuously differentiable and globally Lipschitz in space and with locally uniform linear growth, has a global characteristic flow map solvingFor each , its pushforward measure is the unique weak solution in of the associated continuity equation. The hypotheses have all been verified above, and the fields have zero divergence, so these are also the two required transport equations. Explicitly,For completeness, the Gronwall inequality givesso these pushforward measures have finite first absolute moments. Integrating against proves continuity in the Wasserstein distance. The chain rule proves the weak identity. For uniqueness at a fixed terminal time , use the backward test function , where is continuously differentiable with compact support. It satisfies and has compact spatial support uniformly for , by the backward linear-growth bound. The weak identity with temporal cutoffs therefore gives , identifying every weak solution with the displayed pushforward measure.
Finally compare the two characteristic curves with the same initial point . Put . The spatial Lipschitz condition and the boxed velocity estimate givefor almost every time; the integral form gives the same conclusion at zeros of . The Gronwall inequality impliesThe pushforward measure is a coupling of . Integrating the last bound against the probability measure provesThe same constant depends only on the uniform bound for the Hessian matrix of , and is independent of the prescribed curves and their common initial data.
Past exam of the optimisation for data science course of the University of Oxford 2023 1 b Solution 2026-10-25
Again write and , and let denote its th block of coordinates. The block mixed norm in this part makes the proximal operator separate over blocks. For a single block, its minimiser solvesAt a nonzero , the gradient of the Euclidean norm is . The subgradient optimality condition therefore becomesThus points in the direction of and . This yields when .
At zero, the subdifferential of the Euclidean norm is the closed Euclidean unit ball: the subgradient inequality is for every , which is equivalent to by the Cauchy-Schwarz inequality and the choice . Hence zero solves the subgradient optimality condition exactly when . This also covers and avoids division by zero.
The resulting radial soft thresholding isIf is the corresponding block of , the required proximal gradient mapping isWhole blocks can become zero, while nonzero blocks retain their direction after the gradient step. For a block of size one, radial soft thresholding agrees with the soft-thresholding operator in part (a).
Past exam of the optimisation for data science course of the University of Oxford 2023 2 b Solution 2026-10-25
For the linear least-squares problem objective function, direct expansion with givesIts gradient is , so the middle term equals .
Use the supplied thin singular value decomposition . Since , the linear map preserves the Euclidean norm. The square matrix is an orthogonal matrix, so . ConsequentlySubstitution into the expansion provesThus is a strongly convex function with modulus . This modulus is sharp: choose for an index attaining the smallest singular value. The Hessian matrix is , so the same conclusion says that its smallest eigenvalue is .
Past exam of the optimisation for data science course of the University of Oxford 2023 2 d Solution 2026-10-25
Write . Dividing the corrected estimate from part (c) by gives the averaged stationarity bound for stochastic gradient descentThe Cauchy-Schwarz inequality, first within each expectation and then over the indices, givesThusEquivalently, if is chosen independently of the run with the discrete uniform distribution on , then . The same bound for the expected Euclidean norm follows by the Cauchy-Schwarz inequality.
The guarantee is averaged or best-iterate stationarity. It does not assert that every last iterate converges, or that the limiting Euclidean norm equals . The squared gradient bound has excess above ; the displayed expected Euclidean norm bound is within of , including the zero-noise case. For fixed , it is sharper:For example, to ensure with , it suffices that . The big O notation here concerns these upper bounds, rather than an asserted asymptotic equality for the stochastic gradient noise floor.
Past exam of the optimisation for data science course of the University of Oxford 2023 2 e Solution 2026-10-25
Condition on , and set , and . Since the sampled index is independent of and has the discrete uniform distribution, is an unbiased stochastic gradient:Write . Expanding and using the zero conditional mean of proves the stochastic gradient second-moment identityThe stochastic gradient descent update is . Expanding the squared Euclidean distance and using the preceding identities givesThe subgradient inequality for the differentiable convex function gives . Combining this with (3),Removing the temporary notation for the conditioning point yieldsThe noise contributes twice in this argument: once in the supplied bound (3), and once in converting the expected squared step into the squared gradient. Each contribution is at most .
Past exam of the optimisation for data science course of the University of Oxford 2023 3 d Solution 2026-10-25
The supporting inequality in part 2(a) bounds below by an affine function plus a positive squared Euclidean norm, making it a coercive function. Its continuity gives a global minimizer , which is unique by strict convexity. Let , and . Here is the block size, so its role differs from the number of component functions in Question 2. Use randomized block coordinate descent with uniformly sampled blocks of size , independently at each update. Sampling uniformly from a fixed partition into equal-sized blocks gives the same calculation, since each coordinate has inclusion probability .
Let be a common upper bound on the block Lipschitz constants. Part (c) permits . With step size , part (a) givesSumming squared partial derivatives according to their inclusion probabilities,For a strongly convex function, part 2(a) also yields the strong convexity gradient inequalityIndeed, substitute into the supporting inequality and complete the square in : the expression is at least for every .
Combining the last three estimates gives a contraction in conditional expectation:By the tower property and repeated application,An optimization epoch counts coordinate partial derivative evaluations: it comprises block updates or one full gradient update. With sampling with replacement, an optimization epoch is this work measure; it need not visit every coordinate. Consequently the block method needsto bring the expected objective function gap below , for , up to integer rounding.
For the steepest descent method, use a global Lipschitz gradient constant . Part (c) with the full block permits . The descent lemma with step size , together with the strong convexity gradient inequality, givesAn exact line search along the negative gradient does at least as well in objective function decrease per update. Ignoring its additional work, the resulting epoch complexity isThe common coordinate-based guarantees favour blocks by a factor in epochs. In fact, with the conservative constants and , both methods have the same guaranteed contraction per update, while a block update uses only coordinate partial derivatives.
This compares the bounds justified by the given constants. For a particular objective function, sharper constants give the comparison against ; an actual speedup of is not universal. Computing a block coordinate gradient also need not cost exactly of a full gradient evaluation. The epoch complexity comparison assumes that coordinate partial derivative counts are a useful measure of work, and does not itself establish a wall-clock comparison.
The constraint set is compact, so the continuous objective attains a maximum and minimum. The two constraint gradients are nonzero and supported on separate coordinates, so they are linearly independent everywhere on it. The Lagrange multiplier equations areBoth positive and negative values occur. At a maximizing or minimizing point the objective is therefore nonzero, so , , and both are nonzero. The equations imply , , and . The constraints then give , .
Consequently, writing , the complete list of extrema isFor an independent global check, Cauchy-Schwarz inequality gives , with equality exactly at the displayed points.
