The inverse change of variables is , . Thus the triangular region becomesThe upper limit depends on : the new region is not a rectangle. The absolute inverse Jacobian determinant is , so the change of variables formula cancels the rational factor in the integrand:Although the original integrand is undefined at the vertex , its nonnegative improper integral exists. One can apply the change of variables formula on and let by the monotone convergence theorem; the transformed integrand has the finite integral just computed.
Read the differential order literally: take quadrature nodes in and in . Applying Simpson's rule first in and then in multiplies the one-dimensional quadrature weights. With , this tensor-product quadrature isEquivalently, the nine sampled function values have the quadrature weight arraywith rows indexed by the quadrature nodes and columns by the quadrature nodes. The quadrature weights sum to the rectangle's area. If the intended coordinate assignment is instead , , exchange and in the formula. Both conventions give the same calculation on the unit square used below.
For the separable integrand, tensor-product quadrature factors into two one-dimensional applications of Simpson's rule:soThe exact double integral, evaluated by Fubini's theorem and the power rule for integration, isThe factor is always integrated exactly. All quadrature error therefore comes from applying Simpson's rule to the factor.
Let and . This is continuous. It is onto: given , choose an integer shift bringing into , with the corresponding possible sign change in ; the resulting representative lies in .
Two representatives in are in the same orbit only if their first coordinates differ by an integer. An interior point can therefore be equivalent only to itself. Distinct boundary representatives have first coordinates zero and one, and the iterate identifies exactly with . Thus the fibres of are precisely the equivalence classes defining the Möbius band .
The answer is no, because the number of non-isolated points differs. In , every is an isolated point: a sufficiently small open interval around it contains no other member of . The only non-isolated point is , since every neighbourhood of contains some .
In the product topology, is an isolated point exactly when both coordinates are isolated points of . One direction follows because the product of two open singletons is open. For the other, any basic open rectangle containing contains another point if either coordinate has no open singleton. Hence the set of non-isolated points of iswhich is infinite. A homeomorphism takes open singletons to open singletons, so it induces a bijection between the sets of non-isolated points. A space with just one such point cannot be homeomorphic to a space with infinitely many.
Fix the top-right corner and a bottom boundary . A width is feasible precisely when every row has at least consecutive true entries ending at column . Thus the largest feasible width is the minimum of those row run lengths, and the area is that width times .At the loop head, the loop invariant is ,The initial cap makes the empty-prefix case well-defined and cannot restrict any actual run. Each iteration incorporates one new row and tests its corresponding bottom boundary. The loop variant is , soA zero width contributes area zero, covering the case where no nonempty all-true rectangle starts at that corner.
def maxRectangleAt(i: Int, j: Int): Int = {
var k = i
var width = j + 1
var best = 0
while (k < N) {
width = math.min(width, rowCount(k)(j))
k += 1
best = math.max(best, (k - i) * width)
}
best
}Every nonempty axis-aligned rectangle has a top-right corner. Enumerate all such corners and retain the greatest area from part (b).The loop invariant is that
var best = 0
var i = 0
while (i < N) {
var j = 0
while (j < N) {
best = math.max(best, maxRectangleAt(i, j))
j += 1
}
i += 1
}best is the greatest area obtained from the corners processed so far, or zero if there are none. ConsequentlyThe preprocessing cost from part (a) is included. An entirely false matrix, or an empty one, returns zero. In the printed example, rows through and columns through give area ; exhaustive corner enumeration confirms that no larger all-true rectangle exists.[ref]For five points, partition the unit square into four squares of side . Assign boundary points to just one neighbouring piece. By the pigeonhole principle, two of the points lie in one piece, whose diameter is its diagonal, .
For eight points, use seven smaller-diameter pieces rather than eight rectangles. Start with the convex pentagonTake its four reflected copies at the corners of the square. The remaining pieces are the left triangle with vertices , its right-hand reflection, and the central diamond with vertices . These seven polygons cover the square with disjoint interiors. To verify coverage directly, for the two bottom pentagons split the horizontal section at . For , the five successive sections have endpoints and belong respectively to the left triangle, bottom-left pentagon, diamond, bottom-right pentagon and right triangle. Reflection gives the top half.
The diameter of a finite convex hull is the greatest distance between its vertices: if two points are convex combinations of vertices, their difference is a convex combination of vertex differences, and the triangle inequality bounds its norm by the largest such distance. Checking the five vertices of gives diameter ; reflections preserve that value. Each remaining triangle and the diamond has diameter , which is smaller. After assigning shared boundaries to one piece, eight points in these seven pieces force a pair in a common piece. Hence some pair is at distance at most .
Four and seven regions give the two distance bounds by the pigeonhole principle
. Details. Both arguments are instances of a pigeonhole distance bound from a partition.
Pigeonhole distance bound from a partition 2026-10-24
Suppose a subset of a metric space is covered by sets, each of diameter at most . Assign each point to one covering set containing it, choosing a single set at shared boundaries. Among points, the pigeonhole principle puts two in a common set, and their distance is at most . The pieces need not be equal or congruent. This freedom permits better distance bounds than dividing a region only into equal rectangles.
Projected area 2026-10-14
The projected area of a planar patch viewed from a direction is the area of its perpendicular shadow onto a plane normal to that direction. If and are its unit normal and viewing unit vector, then by the dot product. On the outward side, this is . For a rectangle tilted around one edge, the width perpendicular to that edge contracts by and the edge length stays fixed, proving the formula. At grazing view ; interpret the radiance definition by a limit rather than dividing by zero.
Rectangular parallelepiped Created 2026-10-18 Updated 2026-10-20
A rectangular parallelepiped is a parallelepiped whose three edge directions at each vertex are mutually perpendicular. Its faces are rectangles; if its edge lengths are , its volume is . A cube is the special case .
Related rates Created 2026-10-18 Updated 2026-10-25
Spectral radiant flux 2026-10-14
Spectral radiant flux resolves radiant flux by wavelength or frequency:Its units are per metre of wavelength or per hertz of frequency. A density quoted per nanometre must be integrated with wavelength intervals in nanometres; its numerical value is times the per-metre density. The frequency and wavelength spectral radiance conversion applies equally to spectral radiant flux, through the change of variables formula:with the speed of light in vacuum and expressed per metre. The Jacobian determinant preserves integrated power rather than the height or location of an optical spectrum's peak.
For two explicitly synthetic optical spectra, let and quote the following densities in :The triangle under and the rectangle under both have area : . Their band radiant fluxes differ: – contains of , while – contains of . These are specified functions, not measured source spectra.
The dark-subtracted electric current of a linear photodiode isusing its spectral responsivity. The figure's stipulated gives and despite equal total radiant flux. Symmetry places 's mean wavelength at and 's at ; a linear averages to its value at that mean. A single electric current therefore cannot determine an unknown broadband radiant flux without additional spectral information or a sufficiently flat calibrated response.
Square 2026-10-14
A rectangle with all four side lengths equal. It is a regular four-sided polygon. Rotations and translations preserve this definition; its sides need not be parallel to the coordinate axes.
Symmetry depends on preserved structure 2026-10-14
Take the four-point setthe vertices of a polygon of a rectangle whose side lengths are four and two. Three choices of structure give three different symmetry groups on these same points.
As an unstructured set, has all permutations as symmetries, forming the symmetric group . If Euclidean distance is part of the data, the allowed maps are only the identity, a half-turn rotation, and the reflections across the two coordinate axes. They form a Klein four-group of group order four. To see that nothing is missing, fix the image of one vertex of a polygon: its three other distances, , , and , are distinct, so they uniquely determine the images of the remaining vertices.
Preserving affine structure permits more. The affine mapcycles all four points of . It sends a horizontal side of length four to a vertical side of length two, so it is not an isometry. Yet it preserves the rectangle's vertex set and all affine combinations among those points.
Let and let be the square's quarter-turn rotation. ThenConjugating every square symmetry by gives eight affine maps preserving . This group isomorphism makes the affine symmetry group a dihedral group, although some of its maps do not preserve the original Euclidean distances. There are no further affine symmetries: an affine map preserves the common midpoint of the diagonals, so it must preserve opposite pairs. The image of one vertex has four choices and the image of an adjacent vertex has two; those choices determine the map through three noncollinear points.
ThusAn arbitrary permutation need not be an affine map. For example, exchanging the two top vertices while fixing the two bottom vertices sends the common diagonal midpoint to two different points, which no single affine map can do. The phrase "the symmetry of these points" becomes unambiguous only after stating which structure matters.
Tatami tiling 2026-10-20
A tessellation by rectangular tiles in which no point is a corner of four tiles. In the common lattice version, the tiles are rectangles. The local corner restriction makes existence depend on more than the total area.
Total differential Created 2026-09-24 Updated 2026-10-14
The total differential is the linear map that combines the first-order responses to simultaneous changes in all coordinates. For a differentiable real-valued function at , it can be writtenHere is an input vector; denotes the coordinate linear functional . The coordinate formula and the Fréchet derivative describe the same linear map. The defining approximation isThe little o notation says the remaining approximation error becomes small relative to the input norm, across every direction of approach.[ref]
4.4 Tangent Planes and Linear Approximations. Calculus Volume 3, §4.4, differentiability definition (4.26) and total differential (4.27)
For at , . A simultaneous change gives the linear approximationThe exact algebra isConsequently the exact change is , and the approximation error is . If both input changes are halved, the linear prediction becomes and the error becomes : the first-order response halves, while the quadratic error falls by a factor of four. The right panel under directional derivative displays this comparison as the displacement is scaled.
For a quick check of differentiability, givesDividing by makes this bound tend to zero. The same calculation proves that the tangent plane to the graph of a function at is . It approximates the entire local surface, rather than only two coordinate slices.
The total differential is useful for estimating the combined effect of small input changes without reevaluating a complicated function. For example, if and , then . The exact remainder bound from the displayed polynomial is at most , so this example has throughout that input rectangle. These are deterministic bounds; a variance calculation additionally needs a joint probability distribution and its covariances. A first-order estimate is also local: large changes require control of the remainder, not merely knowledge of the partial derivatives at one point.
Triangular number Created 2026-10-14 Updated 2026-10-20
A triangular number counts rows of objects, with a nonnegative integer:The first values are . The empty arrangement contributes zero, by the empty sum convention. Adding one more row gives the triangular number recurrence for . The row lengths form an arithmetic progression, while their running totals are triangular numbers.
Pair the rows with a reversed copy: . There are such pairs, so two copies contain dots. Dividing by two proves the formula. This rectangle picture explains the factor one-half without requiring a formula for a long summation. For example, one hundred rows contain dots.
The same count appears whenever every pair of different objects must be considered once. Five participants make ten possible handshakes; five sensors have ten different pairwise comparisons; a complete graph on five vertices has ten edges. These are the triangular number pair-counting identity, with one fewer row than objects. The distinction prevents a common error: counts all pairs from six objects, whereas five objects give .
The triangular number square-complement identity says that two neighboring triangular numbers fill a square. Combining that identity with the one-row difference makes the difference of squares equal to . It leads to Nicomachus's theorem: the sum of the first cubes of numbers is the square of a number . A change in the way one groups objects exposes a relation between summation, multiplication and geometry.
This geometric view is already visible in Nicomachus's Introduction to Arithmetic by Nicomachus (Hahn teacher edition): Book II, Chapter 8 describes growing triangular rows, Chapter 12 combines successive triangular counts into squares, and Chapter 20 groups successive odd integers into cubes of numbers.[ref]
Introduction to Arithmetic by Nicomachus (Hahn teacher edition). Book II, Chapters 8, 12 and 20, printed pp. 63–64, 70 and 75
The linked edition uses Martin Luther D'Ooge's translation, revised with modern teaching material by Nathanael Hahn. Our empty-row index is a modern convention; the historical passage starts from unity and calls three the first actual triangle. Vector graphics 2026-10-13
Vector graphics represent a picture by geometric objects and instructions for drawing them: positions, shapes, fills, boundary strokes and transformations. A circle can be stored as a centre and radius; a rectangle as a corner, width and height; a polygon as an ordered list of vertices. These geometric primitives describe whole objects rather than assigning a colour to every pixel. SVG provides elements for such basic shapes and for paths assembled from line segments and curves.[ref]
The useful separation is between the stored geometry and the finite output. A circle of radius 2 remains the same geometric description whether rendered across twenty or two thousand output pixels. This is the sense in which vector graphics are resolution independent: increasing the output grid can evaluate the original geometry again. The resulting raster image still has finite spatial resolution, and numerical coordinates have finite precision. Enlarging a previously rendered raster image through interpolation instead works with its existing samples. Neither operation guarantees that arbitrarily thin details remain visible at every size.
An SVG path uses a current point and drawing commands. For example,
M 1 4 L 5 4 L 3 1 Z moves to , draws two line segments, then closes back to the starting point, giving a triangle. Uppercase commands use absolute coordinates; the corresponding lowercase commands use offsets from the current point. Thus M 1 4 l 4 0 l -2 -3 z describes the same triangle. The coordinates belong to the current user Cartesian coordinate system, not necessarily to output pixels.[ref]For a curved example, the path
M 1 4 Q 3 0 5 4 Z uses one quadratic Bézier curve followed by a closing line segment. With control points , and , its curved boundary isThe endpoints are , and ; the interior control point is not a point on the curve. A fill paints the enclosed region, while a stroke paints a band around its boundary with a chosen width. One can use either or both: geometry and paint instructions are distinct.[ref]https://www.w3.org/TR/SVG2/paths.html#PathDataQuadraticBezierCommands. W3C SVG Working Group, SVG 2, section 9.3.7: quadratic Bézier path commands
[ref]https://www.w3.org/TR/SVG2/painting.html#Introduction. W3C SVG Working Group, SVG 2, section 13.1: filling interiors and stroking outlines
The first illustration uses increasing downward, following the initial SVG coordinate convention. Its dashed control polygon guides the eye; it is not part of the filled path. Apply the affine mapThis combines horizontal scaling, a shear mapping and a translation. The transformed control points are , and , giving the path
M 4.5 5 Q 5.5 1 10.5 5 Z. Its curved midpoint is . The affine equivariance of a geometric basis explains why transforming only the control points transforms the entire Bézier curve: its weights sum to one, so the translation is added exactly once. The enclosed area is before transformation and afterwards. These checks concern the filled region, excluding the width of any stroke.An SVG
viewBox specifies a rectangle in user coordinates to map into a display region. For example, viewBox="0 0 6 6" in a square viewport of 120 by 120 display units gives a scale of 20 display units per user unit; in a square viewport of 600 by 600 it gives 100. The path's control points need not change. For unequal proportions, preserveAspectRatio controls whether the mapping preserves proportions or stretches the axes separately. These display units need not correspond one for one to physical display pixels.[ref]https://www.w3.org/TR/SVG2/coords.html#InitialCoordinateSystem. W3C SVG Working Group, SVG 2, section 8.4: initial axes and user units
[ref]Rasterization converts the geometric drawing into a raster image on a chosen grid. Deciding whether each pixel centre lies inside a filled region is a simple rule, but a moving diagonal boundary can make entire pixels switch abruptly. Antialiasing reduces these sampling artifacts by accounting for a footprint around each sample, rather than treating every pixel as a single inside-or-outside decision. This connects vector graphics to raster sampling and reconstruction and aliasing; a finer grid and a better sampling rule solve different parts of the problem.
For an exact analytical model, fill the region . For a square pixel footprint , letHere is geometric coverage, and is relative luminance for ideal opaque neutral shades, with and . The intersection and area determine how much of the footprint is covered. This is a specified area-average model, not a claim that every SVG renderer uses exact coverage. The SVG
shape-rendering property supplies rendering hints and permits implementation tradeoffs, including disabling antialiasing for some choices.[ref]On the grid of unit squares, has coverage , whereas the pixel centre lies inside and gives coverage 1 under the centre rule. The adjacent square has coverage but its centre lies outside. The entire filled area is . Summing exact coverage times cell area gives this value on both the and grids; the coarse centre rule instead gives 10. Coverage values are displayed after sRGB encoding of the modeled relative luminance. The thin coloured line is a geometry overlay, not an extra sampled stroke. Enlarging the middle panel by nearest-neighbor interpolation would repeat its sixteen values; re-rendering the geometry produces the 256 independently evaluated footprints in the right panel. Antialiasing reduces abrupt edges but cannot make a finite grid preserve every geometric detail.
The attractive feature of vector graphics is editability at the level of intent: move one control point to bend a boundary, change a circle's radius, or transform a whole diagram while keeping its parts aligned. Logos, technical diagrams and outline fonts benefit because their structure can be expressed with relatively few shapes and curves. A complicated photograph may require enormous geometric detail, so vector graphics do not imply a smaller file than raster graphics. Nor does an SVG container guarantee that every object is vector geometry: its
image element can embed or reference a PNG raster image. Transforming that embedded raster image changes its placement and reconstruction, but does not recover missing original detail.[ref]https://www.w3.org/TR/SVG2/embedded.html#ImageElement. W3C SVG Working Group, SVG 2, section 12.3: image elements and embedded raster content







