Mathematics · Article
How notation, definitions and methods evolve
Follow how mathematical symbols, definitions and procedures gain meaning from their rules. Compare equivalent forms, test the assumptions that make them work and see what changes under rounding.
Back to MathematicsAfter reading, you can
- Recover the meaning of a symbol or formula from grouping, binding, domain and unit conventions.
- Prove when equivalent expressions, definitions or update conventions preserve mathematical results.
- Compare matrix orientations, bases, partial derivatives and finite changes.
- Read quantified limits, asymptotic statements and probability notation under their exact assumptions.
- Verify a method change by an invariant or an algebraic identity.
- Use an explicit rounding or dimension assumption when transferring a calculation or bound.
Read the rule along with the symbol
Mathematical notation makes a calculation easier to follow when its rules are visible. Two parentheses can change the value of a power, and a bracket can decide whether a shared endpoint belongs to a set. The symbols carry meaning together with the operations, domains and conventions that accompany them.
Mathematicians also change how a definition or procedure is written so that it works in a new setting. Equivalent fractional forms can describe the same number. A basis change preserves a linear transformation while rewriting its coordinates. An iterative method can produce the same terms as a recurrence with a different sequence of operations.
The examples compare notation and methods using exact proofs, then test boundaries where the assumptions matter. Changes in dimensions, units, the probability model or rounding can affect what is preserved. Historical and technical sources show particular choices of notation and why their authors used them.
Recover the value of an expression from its grouping
Subtraction takes an ordered pair of inputs. In (a−b)−c it first acts on a,b and then uses that result as the first input of a second subtraction. In a−(b−c) the inner result is the second input of the outer subtraction.
The first value is a−b−c and the second is a−b+c, by the rules for signed sums. With c≠0 the two values differ by 2c. Thus the order of symbols alone leaves an essential choice when grouping is unspecified.
Repeated powers have the same issue. The value (2²)³ is 4³=64, while 2^(2³) is 2⁸=256. The base and exponent of the outer power differ between these two expressions.
A notation convention chooses which operation attaches to which inputs when parentheses are omitted. Operation precedence resolves different operations. Associativity conventions for parsing handle repetitions of one operation. Writing the intended grouping explicitly makes both choices visible. See [A documented precedence rule for powers and unary signs](https://docs.python.org/3/reference/expressions.html#the-power-operator), [Evaluate the subexpressions of a nested combination](https://web.mit.edu/6.001/6.037/sicp.pdf). The grammar gives an explicit parsing example. The lesson evaluates competing groupings in exact arithmetic and identifies which input changed.
Preserve arithmetic results under an explicit translation
An arithmetic expression tree has a numerical leaf, or an operation at its root with two expression trees as inputs. Define its value by evaluating the leaves and then using the operation at every root on the values of its two input trees.
Translate each leaf to a notation for the same number. Use ⊕ for addition and ⊗ for multiplication, and retain which two translated inputs meet at each operation. In the translated interpretation these two signs have their declared arithmetic meanings.
The values agree at leaves by definition. If the values agree for both input trees, addition of their values agrees at an addition root. The same argument applies to a multiplication root. Structural induction over the finite tree proves equality of the original and translated evaluations.
For example, the tree that multiplies the sum of two and three by four translates to (2⊕3)⊗4 and evaluates to twenty in both systems. A change of grouping would be a different tree. That property is separate from the labels printed at its nodes. See [Evaluate the subexpressions of a nested combination](https://web.mit.edu/6.001/6.037/sicp.pdf), [Parallel strokes used to write equality](https://www.people.iup.edu/gsstoudt/history/images/witte.html). A displayed sign gains meaning from its interpretation and position. The proof uses structural induction to preserve evaluation when these meanings are transported.
Distinguish an equation from an assignment
An equation asserts equality of its two values under the current interpretation. An assignment specifies how a state changes. Write (a,b) for the initial state and choose two real-valued update formulas F(a,b) and G(a,b).
The simultaneous assignment gives (F(a,b),G(a,b)). Both formulas read the initial state. In an ordered version the first assignment gives (F(a,b),b), and the second gives (F(a,b),G(F(a,b),b)).
The first updated value agrees in both versions. For a given starting pair, the updates are equal exactly when G(F(a,b),b)=G(a,b). A second formula depending only on b satisfies this condition for every starting pair.
Take F(a,b)=a+1 and G(a,b)=2a+b. Ordered assignment increases the second output by two relative to simultaneous assignment. A record that writes both rules must specify whether the right-hand sides read the original state or the intermediate one. See [Parallel strokes used to write equality](https://www.people.iup.edu/gsstoudt/history/images/witte.html), [Which values are read during an assignment](https://docs.python.org/3/reference/simple_stmts.html#assignment-statements). The algebra text preserves an equality sign. The documented assignment syntax and the lesson’s state maps clarify which value is read at each step.
Rename a bound index without changing the expression
In a finite sum Σ_{i=1}ⁿ f(i,j), i ranges over 1 through n, while a specified j is an input that stays fixed. The sum is evaluated one term at a time using that fixed input.
Choose a fresh variable name k and write Σ_{k=1}ⁿ f(k,j). At each k in the stated range its term has the same value as the old term with i equal to k. Adding the same sequence of terms gives the same value.
For instance, at j=3, Σ_{i=1}²(i+j)=(1+3)+(2+3)=9. Renaming i to k changes the display but keeps the two input pairs (1,3) and (2,3).
If the notation becomes Σ_{j=1}²(j+j) and both j symbols are bound by the range, the result is two plus four, or six. The new range now supplies the value where the old expression used its fixed free input. A fresh name prevents this capture. See [Term valuation and quantifier semantics](https://builds.openlogicproject.org/open-logic-complete.pdf#page=229), [Evaluate the subexpressions of a nested combination](https://web.mit.edu/6.001/6.037/sicp.pdf). The declared scope determines which occurrences are bound. Renaming a fresh index preserves all evaluated terms, while capture changes an input.
Decode a repeating decimal as an exact rational
Let B be the nonnegative integer represented by the k digits in the repeated block, allowing leading zeros within that block. One copy just after the point contributes B/10ᵏ and each later copy contributes the previous amount multiplied by 10⁻ᵏ.
Because 0<10⁻ᵏ<1, the total is the convergent geometric series B·10⁻ᵏ/(1−10⁻ᵏ). Simplifying gives B/(10ᵏ−1). The number k remembers any leading zero places in the block.
When the single digit nine repeats, this value is 9/(10−1)=1. The first n copies give 1−10⁻ⁿ, which tends to one even though each finite truncation is smaller.
Likewise an infinite nine-tail beginning one place after a fixed terminating prefix contributes exactly one unit of the prefix’s last place. For example, 0.24999… equals 0.25. Both displays represent the same real value under the infinite-decimal interpretation. See [Sum a geometric sequence of decreasing terms](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=515). The exact value follows by summing the geometric progression of blocks. The length of the repeated block fixes its scaling even when it contains a leading zero.
Use interval endpoints as membership conditions
For real a<b<c, x∈[a,b) means a≤x<b. The condition x∈[b,c] means b≤x≤c. Every value satisfying either condition lies in [a,c].
Conversely, let a≤x≤c. If x<b, it belongs to the first interval. If x≥b, it belongs to the second. The cases cover [a,c], proving equality with the union.
If the second interval instead reads (b,c], every x in [a,c] with x<b or x>b still belongs. The point b satisfies neither x<b nor b<x, so it is the one removed point.
An interval imposes a lower and upper inequality simultaneously. If the bounds agree, the common value is included only when both inequalities are weak.
| Quantity | Exact result |
|---|---|
| Notation | (-2, 3] |
| Members among test points | {0, 3} |
| Excluded test points | {-3, -2, 4} |
| Set type | Nondegenerate interval |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | -2 |
| b | 3 |
| left | false |
| right | true |
| points | [-3,-2,0,3,4] |
Thus [a,b)∪(b,c]=[a,c]∖{b}. The apparent meeting of the two intervals at the same coordinate in a drawing gives no inclusion by itself. Brackets and their membership inequalities specify it. See [A reasoned convention for interval endpoints and starting at zero](https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831.html). Closed and open ends specify inequalities. The cited integer-interval argument illustrates a chosen convention, and the lesson derives its real-interval identities.
Distinguish an image from an inverse image
Let B be a subset of Y. Define f⁻¹(B)={x∈X:f(x)∈B}. This operation uses membership of the output, so it is defined for every function f:X→Y.
An input is in f⁻¹(B∩C) exactly when its output is in B and in C. This is equivalent to membership in f⁻¹(B)∩f⁻¹(C). The same condition with membership negated gives f⁻¹(Y∖B)=X∖f⁻¹(B).
For the forward image of that inverse image, every point has the form f(x) with f(x)∈B. Thus f(f⁻¹(B))=B∩f(X). The reverse inclusion follows by taking any input producing the point in B∩f(X).
For f(x)=x² from R to R, f is noninjective since f(1)=f(−1), and its output range is [0,∞). Take B=[−1,1]. Its inverse image is [−1,1] but the image of that set is [0,1], which is strictly contained in B because negative points are outside the output range. See [Function notation follows the declared domain and output](https://builds.openlogicproject.org/open-logic-complete.pdf#page=53). The function has a declared codomain. Its inverse image is decided by membership in the output set, and the resulting forward image is limited to reachable outputs.
Verify the order of composition
In the stated convention (f∘g)(x)=f(g(x)), so the operation written on the right acts first. The output of g must lie in the domain of f. Reversing the order requires its own domain condition.
On R take f(x)=x+1 and g(x)=2x. Then f(g(x))=2x+1, while g(f(x))=2x+2. At x=0 they give one and two respectively.
Now let f,g,h be compatible maps. At an input x to h, the expression ((f∘g)∘h)(x) gives (f∘g)(h(x))=f(g(h(x))). The other grouping (f∘(g∘h))(x) gives that same result.
This establishes associativity on the declared domain by equality at every input. It keeps the same order of maps. A change of order is a different operation and requires a separate argument. See [Function notation follows the declared domain and output](https://builds.openlogicproject.org/open-logic-complete.pdf#page=53). The composition applies functions in the declared order. Equality of the two groupings follows from following the same input through the same three maps.
Preserve a restriction when simplifying a rational expression
The definition f(x)=(x²−1)/(x−1) requires x≠1. On that domain the numerator factors as (x−1)(x+1) and division by x−1 gives f(x)=x+1.
The actual graph is the line y=x+1 with the point (1,2) absent. The expression x+1 is defined at every real x and so gives a graph containing that additional point.
The limit of f toward x=1 is two because the values there, for x≠1, equal x+1. A continuous extension must agree with that limit and therefore takes value two. The full line is such an extension.
Solving f(x)=2 on its domain requires x+1=2 and hence x=1, which is excluded. The original equation has no solution on its domain. The extension has the solution x=1 because its domain includes that input. See [Function notation follows the declared domain and output](https://builds.openlogicproject.org/open-logic-complete.pdf#page=53). The domain is part of the function’s meaning. Cancelling a factor gives the same values on the permitted inputs and leaves a separate continuity question at the excluded point.
Represent complex arithmetic by real matrices
For real a,b define Φ(a+bi)=[[a,−b],[b,a]]. Write I for the identity matrix and J=[[0,−1],[1,0]]. Then Φ(a+bi)=aI+bJ and direct multiplication gives J²=−I.
Addition of two images adds the real coefficients of I and J separately, which agrees with complex addition. Multiplying aI+bJ and cI+dJ gives (ac−bd)I+(ad+bc)J using J²=−I. These are the same coefficients produced by complex multiplication.
The zero, one and imaginary unit are sent to the zero matrix, I and J. The entries determine a and b uniquely, so distinct complex values give distinct matrices in this family.
The embedding sends a+ib to the matrix with rows (a,−b) and (b,a). Both addition and multiplication respect this representation.
| Quantity | Exact result |
|---|---|
| Complex product | (4, 3) |
| M(z) | [(1, -2), (2, 1)] |
| M(w) | [(2, 1), (-1, 2)] |
| M(z)M(w) | [(4, -3), (3, 4)] |
| M(zw) | [(4, -3), (3, 4)] |
| Equality | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| z | [1,2] |
| w | [2,-1] |
The determinant is a²+b², positive whenever (a,b)≠(0,0). In that case multiplication by (aI−bJ)/(a²+b²) gives I, displaying the inverse in the same family. The zero image has no inverse. See [Real and imaginary components of a complex number](https://dlmf.nist.gov/1.9#i), [A linear map written in a new basis](https://personal.math.ubc.ca/~lior/teaching/2122/223_W22/223-notes.pdf). The imaginary unit has square minus one. The selected real matrix has the same square relation, which lets multiplication match the two component formulas.
Read inverse notation together with its domain
The sine function increases strictly on [−π/2,π/2], with values from −1 to 1. Its derivative is positive at every interior point, and the endpoint values follow by continuity. The restriction is therefore one-to-one onto [−1,1].
Define arcsin y as the unique angle in this interval whose sine equals y. For θ inside the interval, arcsin(sin θ)=θ. Outside it, the sine value can be shared with an angle inside the specified interval.
For θ=3π/4, the sine is √2/2. At π/4 the same sine occurs inside the allowed interval. Consequently arcsin(sin(3π/4))=π/4.
The reciprocal of sin(3π/4) is √2. It solves the product equation with the sine value, while arcsin solves a function-output equation on the chosen interval. Writing arcsin explicitly is one way to keep these meanings distinct. See [Choose a principal branch for inverse sine](https://dlmf.nist.gov/4.23#ii), [Function notation follows the declared domain and output](https://builds.openlogicproject.org/open-logic-complete.pdf#page=53). The real inverse sine uses a chosen monotone interval. The inverse-function notation and the reciprocal of a sine value solve different equations.
Make a physical equation invariant under the choice of unit
Suppose one new distance unit equals λ old distance units and one new time unit equals τ old time units, with λ,τ>0. If the old numerical values of distance and duration are d,t, the new values are d/λ and t/τ.
For t>0 the old numerical speed is v=d/t. In the new units the same quotient of physical quantities has numerical value (d/λ)/(t/τ)=(τ/λ)v.
For example, changing the distance unit to one-tenth of its old size multiplies its numerical value by ten. With the time unit held fixed, the numerical speed also multiplies by ten. The physical distance and elapsed time stay the same.
A ratio of comparable magnitudes with a nonzero denominator cancels the common unit change. Thus (d₁/λ)/(d₂/λ)=d₁/d₂ when d₂≠0, and the same holds for time. The ratio expresses comparison without a remaining distance or time unit. See [Numerical values change with units](https://doi.org/10.59161/AUEZ1291). The numerical value and unit together specify the physical quantity. The lesson computes how two positive changes of unit affect the numerical speed.
Track the tolerance when approximate equality is composed
Fix ε>0 and call two real values related when |a−b|≤ε. Every a is related to itself because the difference is zero, and reversing the order leaves the absolute difference unchanged.
For a=0, b=ε and c=2ε the adjacent differences are both ε. The endpoint difference is 2ε, which exceeds ε. This gives a failure of transitivity at the stated tolerance.
In a chain a₀,a₁,…,aₘ, write aₘ−a₀ as the sum of its m successive differences. The triangle inequality gives |aₘ−a₀|≤Σ_{i=1}ᵐ|aᵢ−a_(i−1)|. If step i is bounded by εᵢ, the total is bounded by Σ εᵢ.
When every step has the same tolerance the total bound is mε. It can be attained by the sequence aᵢ=iε. Thus a written approximation is most informative when its tolerance and how the comparisons were composed are explicit. See [Norm definitions and finite-dimensional comparison](https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=649). The triangle inequality supports an accumulated error budget. Explicit values show why applying the original tolerance to the final pair can fail.
Derive the value of an empty product from concatenation
Let P(L) be the product assigned to a finite list L. For the empty list E and any list L, concatenating E with L gives L. The proposed rule then requires P(E)P(L)=P(L).
Use the singleton list containing one, whose product is one. Substitution yields P(E)·1=1, forcing P(E)=1. That choice makes concatenation with the empty list work for every product.
For sums the condition is S(E)+S(L)=S(L). Taking the singleton zero, or cancelling any S(L), gives S(E)=0. This choice again satisfies the rule.
The two values are the identities of the two operations. With them, a product or sum can be split across any partition into ordered lists, including a part with no entries. The convention follows from the desired algebraic rule. See [The empty product acts as the multiplicative identity](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=624). The source applies the empty product convention in one finite formula. The lesson derives the identity values from concatenation and a singleton case.
Distinguish a set, a sequence and a multiset
A finite sequence stores values in order, including repeated occurrences. A multiset records each value and how many times it occurs, while its support is the set of distinct values with positive multiplicity.
For a nonempty multiset with support D and counts m_x, the mean is (Σ_{x∈D}m_xx)/(Σ_{x∈D}m_x). This agrees with the ordinary sum over the whole sequence divided by its length whenever the sequence realizes those counts.
The values 0,0,6 have multiset mean two. Their support set {0,6} has equally weighted mean three, since counting each support value once changes how much weight zero receives.
If every support value has the same count m>0, the multiplicity factor cancels in both numerator and denominator, giving (Σ_{x∈D}x)/|D|. This explains why some representations can discard the counts for that calculation when the multiplicities are known to agree. See [A set records membership](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=90). A set records the distinct members used for this purpose. The multiset calculation retains weights and proves when they cancel in a mean.
Translate between row and column transition conventions
Let P_{ij}=Pr(X_{t+1}=j|X_t=i), with every P_{ij} nonnegative and ΣⱼP_{ij}=1 for each i. A current row of probabilities π has entries π_i≥0 that sum to one. A row for a state of zero current probability is specified by the transition rule.
The next probability at j is π′_j=Σᵢπ_iP_{ij} by conditioning on the current state. As a row update this is π′=πP.
Taking transposes gives (π′)ᵀ=Pᵀπᵀ. This is the equivalent column update on exactly the same state labels. Each column of Pᵀ sums to one because it is a row of P transposed.
For row probabilities, each row of P describes the next state from its starting state. Transpose P when the probabilities are stored as a column.
| Quantity | Exact result |
|---|---|
| Row result | (1/2, 1/2) |
| Column result | (1/2, 1/2) as a column |
| Sum of masses | 1 |
| Column convention matrix | [(1/2, 1/4), (1/2, 3/4)] |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| P | [["1/2","1/2"],["1/4","3/4"]] |
| p | ["1","0"] |
The new probabilities are nonnegative sums of nonnegative terms. Their sum is Σᵢπ_iΣⱼP_{ij}=Σᵢπ_i=1. The multiplication order and normalization condition change location with the chosen orientation, while the probabilities agree. See [Combining states of a finite Markov chain](https://math.pku.edu.cn/teachers/yaoy/Fall2011/Kemeny-Snell_Chapter6.3-4.pdf). The finite-state source scopes transition probabilities to specified starting states. The lesson proves the transposed update and normalization from this convention.
Interpret summed indices in an orthogonal coordinate change
Let Q be a real matrix with d columns and m rows and let v,w have d coordinates. Each transformed vector has m coordinates. Write its i-th components as ΣⱼQ_{ij}v_j and ΣₖQ_{ik}w_k, for i from one to m and j,k from one to d.
Multiplying the components and adding over i gives ΣᵢΣⱼΣₖQ_{ij}Q_{ik}v_jw_k. These sums are finite, so their order can be rearranged.
The inner sum over i is (QᵀQ)_{jk}. Under QᵀQ=I_d it is one when j=k and zero otherwise. The remaining terms sum to Σⱼv_jw_j.
For a square orthogonal coordinate transformation this proves that the inner product is the same in both coordinate descriptions. The same calculation applies to any map with orthonormal columns. The indexed expression is meaningful because each index has the declared range. See [Norm definitions and finite-dimensional comparison](https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=649), [A linear map written in a new basis](https://personal.math.ubc.ca/~lior/teaching/2122/223_W22/223-notes.pdf). The dimensions determine the contracted index ranges. With orthonormal columns the matrix product collapses the two remaining indices to a dot product.
Read the same linear transformation in two bases
Let the columns of S be a basis of Rᵈ. If u is the coordinate column of a vector in that basis, then its standard coordinate column is v=Su, by taking the corresponding linear combination of the basis vectors.
Let A describe a linear transformation in standard coordinates. Applying it gives Av=ASu. To recover the coordinate vector relative to S, solve Su′=ASu, which gives u′=S⁻¹ASu.
Thus the matrix in the new basis is A_S=S⁻¹AS. Applying S to A_Su recovers ASu, so changing basis before or after the transformation gives compatible descriptions.
Columns of an invertible S identify abstract basis coordinates with standard coordinates. If S is singular it cannot serve as the claimed basis, even when some individual standard vectors lie in its span.
| Quantity | Exact result |
|---|---|
| det S | 1 |
| S⁻¹TS | [(2, -1), (0, 3)] |
| Sv | (3, 2) |
| TSv | (6, 6) |
| Coordinates of output | (0, 6) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| S | [[1,1],[0,1]] |
| T | [[2,0],[0,3]] |
| v | [1,2] |
One can check the columns individually by setting u to a standard coordinate basis vector. The transformed standard vector is then A times the corresponding column of S. Expressing that result in the S basis gives exactly the associated column of A_S. See [A linear map written in a new basis](https://personal.math.ubc.ca/~lior/teaching/2122/223_W22/223-notes.pdf). The basis matrix transfers component columns to the original basis. Applying the original map and transferring back produces the derived conjugation.
Distinguish a partial derivative from a change along a constraint
At a fixed y, changing x by h in F(x,y)=xy gives F(x+h,y)−F(x,y)=hy. Dividing by h and taking the limit gives the partial derivative y.
Along y=g(x), put y=g(x) at the base point and δ=g(x+h)−g(x). The full finite increment becomes (x+h)(y+δ)−xy=hy+xδ+hδ.
Dividing by h gives y+xδ/h+δ. Differentiability gives δ/h→g′(x) and δ→0, so along the curve the derivative is g(x)+xg′(x). This uses the change in both coordinates.
At the same point, the partial derivative uses only the first term g(x). The additional term xg′(x) can vanish for a particular curve or point, but it is generally present. The derivative notation should make clear which calculation is meant. See [Name the variables held fixed before differentiating](https://ocw.mit.edu/courses/18-02-multivariable-calculus-fall-2007/8515a1da4c8e0b043740c8b7e32775f1_non_ind_variable.pdf), [Flowing quantities and their rates in Newton’s notation](https://newtonproject.ox.ac.uk/view/texts/diplomatic/NATP00356). The selected historical and mathematical notes name changing quantities and fixed variables. The lesson derives its own directional constraint term.
Read a differential as a linear map with an error term
Take a real symmetric d×d matrix H and column vectors v,h. Expanding (v+h)ᵀH(v+h) gives q(v)+vᵀHh+hᵀHv+hᵀHh.
The two middle terms are equal because Hᵀ=H. The exact increment is 2vᵀHh+hᵀHh. At the fixed base vector v, the map h↦2vᵀHh is linear.
By Cauchy–Schwarz, |hᵀHh|≤||h||₂·||Hh||₂. The induced Euclidean operator norm gives ||Hh||₂≤||H||₂||h||₂, so the error is at most ||H||₂||h||₂².
Dividing this error bound by ||h||₂ for nonzero h gives a quantity tending to zero as h tends to zero. The differential is the linear map. The full finite increment includes the quadratic remainder, whose exact form is available here. See [Norm definitions and finite-dimensional comparison](https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=649), [Name the variables held fixed before differentiating](https://ocw.mit.edu/courses/18-02-multivariable-calculus-fall-2007/8515a1da4c8e0b043740c8b7e32775f1_non_ind_variable.pdf), [Leibniz’s differentials at a geometric construction](https://ancientlibrary.net/gottfried-wilhelm-leibniz-nova-methodus-pro-maximis-et-minimis/). The historical differential notation supplies context. The article proves the precise linear and error terms for its declared symmetric quadratic.
Expand the quantifiers in a limit statement
A sequence a_n converges to L if for every ε>0 there exists an integer N such that |a_n−L|<ε for every n≥N. The tail begins at an index that is allowed to depend on ε.
For a_n=1/(n+1) and L=0, one choice is N=⌈1/ε⌉. If n≥N then n+1 is strictly larger than 1/ε. Thus 1/(n+1)<ε.
Requiring one N to work for all ε>0 and every n≥N is much stronger. At a fixed n≥N with a_n≠L, choose ε=|a_n−L|/2. The required bound would fail. Thus the stronger property forces a tail equal to L at every index.
The example a_n=1/(n+1) tends to zero and has no zero term. It separates the two quantifier orders. Spelling out the quantifiers records which index may change when a new accuracy is requested. See [The role of uniformity and continuity](https://live.ocw.mit.edu/courses/18-100a-real-analysis-fall-2020/mit18_100af20_basic_analysis.pdf). The limit definition lets the tail index depend on the tolerance. Exchanging those choices would require eventual exact equality in this example.
Translate logarithms between bases
Let a,b>0 with a,b≠1 and x>0. The definition u=log_b x means bᵘ=x. Applying log_a to the equality yields u log_a b=log_a x.
The number log_a b is nonzero because b≠1. Dividing gives log_b x=log_a x/log_a b. The calculation works when either base is between zero and one as well.
For c>0, (b^(log_b c))(b^(log_b x))=cx. Using the exponent addition law and the one-to-one exponential yields log_b(cx)=log_b c+log_b x.
Subtract log_b x to get log_b(cx)−log_b x=log_b c. The logs require the real inputs x,cx,c to be positive. Taking a ratio of two values measured in the same units supplies a dimensionless positive input when both magnitudes are positive. See [Logarithm and exponential definitions](https://dlmf.nist.gov/4.2), [Numerical values change with units](https://doi.org/10.59161/AUEZ1291). The positive real base and argument conditions make exponentiation invertible in its exponent. The unit discussion supports the use of dimensionless ratios.
Use asymptotic notation as a statement about a class of functions
For a real sequence f and nonnegative sequence g, the assertion f∈O(g) means that some C>0 and N satisfy |f(n)|≤Cg(n) for every n≥N. The constants can depend on the sequences but are fixed across that tail.
Suppose f∈O(g) and g∈O(h) with constants C,D and starts N₁,N₂, where h is also nonnegative. For n at least the greater of N₁,N₂, both inequalities apply and |f(n)|≤Cg(n)≤CDh(n).
This proves f∈O(h). The argument works even when one of the bounds is zero at a tail index, since it multiplies and compares the counts directly without division.
The relation is generally one-way. The constant sequence one is in O(n) since one is no greater than n for n≥1. The sequence n is outside O(1) because every proposed constant bound is exceeded at some large index. See [Reading an asymptotic bound](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=538). An asymptotic bound fixes constants across a tail. The proof combines two such bounds and separately exhibits why the reverse implication can fail.
Read floor, truncation and a remainder on negative inputs
For an integer n and positive integer d let q=⌊n/d⌋. By definition q≤n/d<q+1. Multiplying through by d and subtracting dq gives 0≤n−dq<d.
Set r=n−dq, an integer. Conversely, any q,r satisfying n=dq+r and 0≤r<d has q≤n/d<q+1. Thus it gives the same floor and the same remainder.
If n is negative and not divisible by d, the quotient n/d lies strictly between two negative-side consecutive integers. Truncating it toward zero uses the upper integer, one greater than q. The resulting remainder is the correct r minus d and so is negative.
Both quotients and remainders satisfy a=bq+r. The sign and bound on r determine which convention applies.
| Quantity | Exact result |
|---|---|
| Floor quotient and remainder | (-3, 2) |
| Truncation quotient and remainder | (-2, -1) |
| Same pair | False |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | -7 |
| b | 3 |
For example, −8=3(−3)+1 under the floor convention. Truncation instead gives −8=3(−2)−2. The second equality is valid as arithmetic, but its displayed remainder belongs to a different convention. See [Round down to the lower integer](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=41), [Elementary prime questions and unique factorization](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=263). The floor chooses the integer below a real quotient. Euclidean division adds the requirement that the remainder lie between zero and the positive divisor.
Cancel a multiplier in a congruence under the right condition
Let m be a positive integer and a an integer. The congruence ax≡ay modulo m is the divisibility of a(x−y) by m. Put g=gcd(a,m), a=ga′ and m=gm′.
This is equivalent to m′ dividing a′(x−y). Since gcd(a′,m′)=1, an integer combination of a′ and m′ equals one. Multiplying that combination by x−y shows m′ divides x−y.
Thus x≡y modulo m/g. Full cancellation modulo m follows when g=1. When g>1 the guaranteed modulus is smaller, including the trivial modulus one if g=m.
For example, 4·1≡4·4 modulo twelve because their difference is twelve. The two inputs are congruent modulo three, which equals 12/gcd(4,12). They are in different classes modulo twelve. See [Elementary prime questions and unique factorization](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=263), [Rational numbers as classes of equivalent integer pairs](https://builds.openlogicproject.org/open-logic-complete.pdf#page=84). Congruence cancellation is an assertion about divisibility of a difference. The gcd tells us which smaller modulus is guaranteed.
Give fractions a definition independent of their display
Consider integer pairs (a,b) with b≠0 and set (a,b)∼(c,d) when ad=bc. The relation is reflexive by ab=ba and symmetric by reversing the equality.
For transitivity suppose ad=bc and cf=de with all denominators nonzero. Multiplying the first equality by f gives adf=bcf. Substituting the second gives adf=bde. Cancelling d yields af=be.
The usual addition formula sends (a,b),(c,d) to (ad+bc,bd). Suppose ab′=a′b and cd′=c′d. To compare the two displayed sums, cross-multiply by their denominators.
The first cross-product expands to ab′dd′+bb′cd′. The other is a′bdd′+bb′c′d. The first pair of terms agree by ab′=a′b and the second by cd′=c′d. Thus the sum is well-defined on the equivalence classes even when a numerator is zero or a denominator negative. See [Rational numbers as classes of equivalent integer pairs](https://builds.openlogicproject.org/open-logic-complete.pdf#page=84). Equivalent numerator-denominator pairs describe the same value. The proof checks that the addition formula preserves classes when representatives change.
Express a line without excluding vertical directions
Write the equation as ax+by=c. When b≠0 it is equivalent to y=(−a/b)x+c/b. In the slope-intercept display, the slope is −a/b and the intercept is c/b.
Conversely a line y=mx+k is the same set as −mx+y=k, which has nonzero y coefficient. Multiplying all three coefficients of ax+by=c by a nonzero constant leaves the set unchanged.
When b=0 and a≠0, the equation is x=c/a. It gives every point on one vertical line. Such a line contains every real y at a single x, so a function y=mx+k cannot describe the same set.
When a=b=0, the left side is zero everywhere. The set is the whole plane if c=0 and empty otherwise. Thus the coefficient form accommodates vertical directions, with the requirement (a,b)≠(0,0) for an actual line. See [A vertical line fixes an input coordinate](https://openstax.org/books/college-algebra-2e/pages/4-1-linear-functions). The vertical line keeps one input constant. The lesson’s coefficient form also exposes the cases that give a horizontal line, an ordinary slope, or a degenerate set.
Prove two definitions of graph connectivity agree
For a finite nonempty undirected graph, suppose any vertex can be reached from any other along a path. Let U be a nonempty proper subset of the vertices. Choose a vertex in U and a vertex outside U, and follow a path between them.
Because the path starts inside and ends outside, its first step that leaves U crosses to the complement. This provides the required edge for that subset.
Conversely fix a start vertex and let U consist of all vertices reachable from it, with a length-zero path allowed. The set is nonempty. If it were proper, the edge hypothesis would provide an edge from some reachable vertex to a vertex outside U.
Appending that edge to a path from the start would make the outside vertex reachable, a contradiction. Thus every vertex is reachable from the start. In an undirected graph the paths can be traversed back to the start, so any two vertices are connected. See [Connectedness as reachability by paths](https://www.ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook2.pdf#page=428). The path definition gives a set of reachable vertices. The lesson proves how the presence of an edge across every proper cut forces that set to contain every vertex.
Shift the starting index of an enumeration
The map k↦k+1 pairs every nonnegative integer k with one positive integer j and has inverse j↦j−1. This changes the index convention without changing the paired term.
If the original sequence is a_k for k≥0, define b_j=a_(j−1) for j≥1. The first m terms of a occur at indices zero through m−1. The paired b terms occur at indices one through m in the same order.
Consequently the sums of the first m terms satisfy Σ_{k=0}^{m−1}a_k=Σ_{j=1}^m b_j. This holds at m=0 by the common empty-sum convention, and for m>0 it follows by matching each term.
For example, if a_k=k+2, the values start 2,3,4. The translated formula is b_j=j+1 and retains that start. Using j+2 would instead begin at three and shift the data by a term. See [A reasoned convention for interval endpoints and starting at zero](https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831.html). The index-shift bijection explicitly pairs both sets of prefix indices. The argument for a convention and the arithmetic identity have separate scopes.
Compare equality of size with equality of order type
Let N₀ have its usual increasing order and let M consist of N₀ and one extra element ★ placed above every integer. Define f(0)=★ and f(n+1)=n for n≥0.
Every point of M has exactly one preimage, including ★. This proves the sets have the same size through the specified bijection.
Suppose there were a bijection g:N₀→M preserving order. Some integer k would satisfy g(k)=★. Because k+1>k and g is an injection preserving order, g(k+1) would have to be strictly greater than ★.
No such point exists. Thus the ordered sets differ in whether there is a greatest element, even though a bijection exists between the underlying sets. The required relationship determines which information a map must preserve. See [Elementary equivalence and isomorphism](https://builds.openlogicproject.org/open-logic-complete.pdf#page=386). An isomorphism must preserve the stated structure of the objects. Here a bijection of the underlying sets does not preserve their order.
Read conditioning under its probability assumptions
For events A,B and P(B)>0, define P(A|B)=P(A∩B)/P(B). The denominator normalizes probabilities to the mass of the condition B.
Independence means P(A∩B)=P(A)P(B). Dividing by the positive denominator gives P(A|B)=P(A). Conversely multiplying that conditional equality by P(B) proves independence.
When P(B)=0, the intersection A∩B also has probability zero because it is contained in B. The independence identity is then 0=P(A)·0 and holds for every A.
For example, one may take B to be the empty event in any probability space. The displayed conditional formula would divide zero by zero. The independence equation remains valid without assigning a value to that undefined expression. See [Probability conditional on a positive-mass event](https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/6d0c6fbaf3afa16cbc76fc1f27d1d34e_MIT6_262S11_chap01.pdf). A positive-probability condition permits division by its mass. The independence identity applies more broadly and stays meaningful for a null event.
Distinguish density from probability mass
For a variable uniform on [a,b] with a<b, interval probabilities are their lengths within [a,b] divided by b−a. A density giving these probabilities is constant 1/(b−a) there and zero outside.
If Y=cX+d with c>0, the support interval becomes [ca+d,cb+d]. An interval of length ℓ inside that support has preimage of length ℓ/c inside [a,b].
The probability is (ℓ/c)/(b−a)=ℓ/[c(b−a)]. Thus the new density is 1/[c(b−a)] on its support. Integrating it over that full interval gives one.
The density has reciprocal units of the variable and can exceed one in a chosen unit. For instance an interval of length one half has uniform density two in inverse units. Multiplying by interval length gives a probability, while any individual point still has probability zero. See [A density contributes probability through an interval integral](https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/6d0c6fbaf3afa16cbc76fc1f27d1d34e_MIT6_262S11_chap01.pdf), [Numerical values change with units](https://doi.org/10.59161/AUEZ1291). The density gives probability per input unit. The affine scaling changes the interval length and the density with inverse factors.
Name the random conditional mean and its realized values
For a finite discrete pair (X,Y), at an observed value y with P(Y=y)>0 define m(y)=Σ_x xP(X=x,Y=y)/P(Y=y). This is the mean calculated under the conditional distribution at y.
The expression E[X|Y] represents the random variable m(Y). Its value depends on the realized Y, and the notation E[X|Y=y] names one number m(y). Values of m at zero-mass y do not change the random variable as a probability law.
Average over Y to obtain Σ_y P(Y=y)m(y)=Σ_yΣ_x xP(X=x,Y=y)=Σ_x xP(X=x)=E[X]. The sum can omit zero-mass y because all corresponding joint terms vanish.
For example, if Y=0 with probability one third and X is then equally likely to be zero or two, m(0)=1. If Y=1 with probability two thirds and X is then four, m(1)=4. The random conditional mean takes both values and its average is three. See [A conditional mean as a random function of the conditioning value](https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/6d0c6fbaf3afa16cbc76fc1f27d1d34e_MIT6_262S11_chap01.pdf). The same conditional mean notation can name a realized number or a random function of the conditioning value. The finite identity weights those numbers by the conditioning law.
Compare the probability of an implication with a conditional probability
The event corresponding to the material implication from A to B is Aᶜ∪B. Split it into the disjoint events Aᶜ and A∩B, since every point of B lies inside or outside A.
Its probability is then 1−P(A)+P(A∩B)=1−P(A)+P(A)P(B|A) when P(A)>0. The second factor in the last term uses the conditional law.
For example, select uniformly from fifty objects, with A consisting of five of them and B only one object inside A. Then P(A)=1/10 and P(B|A)=1/5.
Material implication is a Boolean event on the entire observation space. A conditional probability rescales one row, requiring a positive row total.
| Quantity | Exact result |
|---|---|
| P(A) | 1/2 |
| P(A⇒B) | 3/4 |
| P(B|A) | 1/2 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| mass | ["1/4","1/4","1/4","1/4"] |
The probability of Aᶜ∪B is 45/50+1/50=23/25. The conditional probability is one fifth because its calculation uses only the five objects in A. These are distinct questions about the same two events. See [Truth-table validity and derivability](https://forallx.openlogicproject.org/forallxyyc.pdf#page=193), [Probability conditional on a positive-mass event](https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/6d0c6fbaf3afa16cbc76fc1f27d1d34e_MIT6_262S11_chap01.pdf). The material implication is true whenever its antecedent is false. Conditioning instead restricts the probability calculation to the event where the antecedent is true.
Change the evaluation method while preserving a polynomial
Let p(x)=a₀+a₁x+⋯+aₙxⁿ. Define b_n=a_n and then b_j=a_j+xb_(j+1) for j from n−1 down to zero.
By downward induction b_j=a_j+a_(j+1)x+⋯+a_nx^(n−j). At j=n this is the initial coefficient. Multiplying the formula at j+1 by x and adding a_j proves the next one.
Thus b₀=p(x). Treating each scalar multiplication and addition as one operation, the n downward steps need n multiplications and n additions. The coefficient a_n is copied to start.
For comparison, compute each xʲ independently from x by j−1 repeated multiplications for j≥1, then multiply by its coefficient. Under the same counting convention this uses Σ_{j=1}ⁿj=n(n+1)/2 multiplications and n additions. In exact arithmetic both evaluations represent the same polynomial. See [Evaluate a polynomial by nested multiplication](https://dlmf.nist.gov/1.11#i), [A historical source for a numerical equation method](https://course.ece.cmu.edu/~ece447/s15/lib/exe/fetch.php?media=horner-1819.pdf). The modern Horner recursion preserves the polynomial under exact arithmetic. The 1819 article provides a historical reference for a numerical method.
Preserve a recursive definition in an iterative calculation
Start with the ordered pair (a₀,a₁) from the initial data. Define an update on a pair by T(u,v)=(v,u+v), reading both entries from the old state.
At zero updates the pair equals (a₀,a₁). If it equals (a_k,a_(k+1)) after k updates, applying T gives (a_(k+1),a_k+a_(k+1))=(a_(k+1),a_(k+2)). This proves the pair invariant by induction.
After n updates, the first entry is a_n, and each update used one addition. For n≥1, an equally exact option is to take the second entry after n−1 updates, using n−1 additions. The case n=0 just reads its initial value.
The pair update gives a direct computation from the recurrence and specified initial conditions. Keeping the order matters. Overwriting the first entry before computing the new sum could use a different pair and no longer implement T. See [A recurrence computed by updating an ordered pair](https://web.mit.edu/6.001/6.037/sicp.pdf), [Which values are read during an assignment](https://docs.python.org/3/reference/simple_stmts.html#assignment-statements). The update keeps the two adjacent terms of the original recurrence in a known order. Its operation count assumes both right-hand entries read the old state.
Check associativity under a stated rounding model
Use base-ten rounding to the nearest value with three significant digits after each addition. Consider values a=10000, b=−10000 and c=1, all represented exactly in this model.
For the left grouping, a+b=0 exactly and the subsequent addition to c produces one. Both rounded operations therefore keep their exact intermediate results.
For the right grouping, b+c=−9999 as a real number. The nearest three-significant-digit value is −10000, at distance one, while the neighbor −9990 is nine away. Rounding gives −10000, so adding a gives zero.
In exact real arithmetic both groupings sum to one. In the stated model, rounding the intermediate value removes the small term in the right grouping before the large terms cancel. This records which arithmetic model is required for the original associativity law. See [Arithmetic grouping can affect a rounded result](https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html). Grouping changes which intermediate result is rounded. The displayed decimal computation demonstrates the difference under its declared precision.
Compare norm conventions in fixed finite dimension
Let d≥1 and v have d real coordinates. Put ||v||₁=Σᵢ|vᵢ| and ||v||∞=maxᵢ|vᵢ|. Every summand is nonnegative, and one summand attains the maximum.
That summand implies ||v||∞≤||v||₁. Each of the d summands is at most ||v||∞, so their sum is at most d||v||∞.
The lower bound is attained by a vector with exactly one nonzero coordinate. The upper bound is attained by a vector whose d coordinates have the same positive absolute value.
In particular the vector of d ones has ratio ||v||₁/||v||∞=d. Therefore no constant independent of d can replace the upper factor in an inequality over all these finite dimensions. One can transfer a fixed-dimensional error bound using the stated factor. See [Norm definitions and finite-dimensional comparison](https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf#page=649). Both norms have exact definitions on the same finite coordinates. Counting how many summands appear supplies the upper factor and the sharpness examples.
Translate between six explicit conventions and test that the underlying calculation is preserved where expected.
Translate endpoint notation into exact membership tests
Different endpoint flags on a nonempty interval
An interval imposes a lower and upper inequality simultaneously. If the bounds agree, the common value is included only when both inequalities are weak.
| Quantity | Exact result |
|---|---|
| Notation | (-2, 3] |
| Members among test points | {0, 3} |
| Excluded test points | {-3, -2, 4} |
| Set type | Nondegenerate interval |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | -2 |
| b | 3 |
| left | false |
| right | true |
| points | [-3,-2,0,3,4] |
Represent a complex map by a real matrix
Product with a negative imaginary coordinate in one factor
The embedding sends a+ib to the matrix with rows (a,−b) and (b,a). Both addition and multiplication respect this representation.
| Quantity | Exact result |
|---|---|
| Complex product | (4, 3) |
| M(z) | [(1, -2), (2, 1)] |
| M(w) | [(2, 1), (-1, 2)] |
| M(z)M(w) | [(4, -3), (3, 4)] |
| M(zw) | [(4, -3), (3, 4)] |
| Equality | True |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| z | [1,2] |
| w | [2,-1] |
Use the same Markov transition with two conventions
Start entirely in state zero
For row probabilities, each row of P describes the next state from its starting state. Transpose P when the probabilities are stored as a column.
| Quantity | Exact result |
|---|---|
| Row result | (1/2, 1/2) |
| Column result | (1/2, 1/2) as a column |
| Sum of masses | 1 |
| Column convention matrix | [(1/2, 1/4), (1/2, 3/4)] |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| P | [["1/2","1/2"],["1/4","3/4"]] |
| p | ["1","0"] |
Preserve the linear map while changing coordinates
Shear the coordinate basis
Columns of an invertible S identify abstract basis coordinates with standard coordinates. If S is singular it cannot serve as the claimed basis, even when some individual standard vectors lie in its span.
| Quantity | Exact result |
|---|---|
| det S | 1 |
| S⁻¹TS | [(2, -1), (0, 3)] |
| Sv | (3, 2) |
| TSv | (6, 6) |
| Coordinates of output | (0, 6) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| S | [[1,1],[0,1]] |
| T | [[2,0],[0,3]] |
| v | [1,2] |
Separate floor from truncation and track the remainder
Negative nonmultiple gives different quotients
Both quotients and remainders satisfy a=bq+r. The sign and bound on r determine which convention applies.
| Quantity | Exact result |
|---|---|
| Floor quotient and remainder | (-3, 2) |
| Truncation quotient and remainder | (-2, -1) |
| Same pair | False |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| a | -7 |
| b | 3 |
Use the actual conditioning denominator
Implication and conditional give different probabilities
Material implication is a Boolean event on the entire observation space. A conditional probability rescales one row, requiring a positive row total.
| Quantity | Exact result |
|---|---|
| P(A) | 1/2 |
| P(A⇒B) | 3/4 |
| P(B|A) | 1/2 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| mass | ["1/4","1/4","1/4","1/4"] |
Worked examples
Check exponent grouping and the sign
Evaluate (2³)² and 2^(3²) and compare −(2²) with (−2)². Explain the grouping decisions that lead to the four values.
- For (2³)² the inner power is 2³=8 and the outer operation squares it. The result is 8²=64.
- For 2^(3²), compute the exponent 3²=9 first. The next operation raises two to that exponent, giving 512.
- The expression −(2²) first computes the square four, then negates it to give −4. In (−2)² the whole negative value is the base and its square is four.
- The parentheses specify which expression goes into each binary power or unary negation. In these examples changing that input changes the numerical result.
The four values are 64, 512, −4 and 4 in the order written.
Swap two state variables consistently
For the state (a,b)=(2,5), compare the simultaneous update (a,b)←(b,a) with first assigning a←b and then assigning b←a. Solve the requested state comparison.
- In the simultaneous rule both right-hand values are read from the initial pair. With (a,b)=(2,5), the old b is five and the old a is two.
- Therefore (a,b)←(b,a) produces (5,2). The two values exchange positions with neither overwritten before the other is read.
- In the ordered version a←b first makes the intermediate state (5,5). The following rule b←a reads the new a, which is already five.
- The final ordered state is (5,5). A separate saved copy of the original a would allow an ordered implementation to realize the simultaneous swap.
The simultaneous update gives (5,2). The ordered updates give (5,5).
Decode a repeating block and a prefixed tail
Convert 0.272727… and 0.1666… into reduced fractions. In the first number the two-digit block 27 repeats. In the second number only the digit six repeats.
- The number with repeated block 27 is 27·10⁻²+27·10⁻⁴+27·10⁻⁶+⋯. This geometric sum equals 27/(10²−1)=27/99.
- Divide numerator and denominator by nine to obtain 3/11. The repeated block contains two places, which accounts for the denominator ninety-nine before reduction.
- For 0.1666…, the first digit contributes 1/10. The repeating six-tail starts in the next place, so it equals one tenth of 0.666…, or (1/10)(6/9).
- The total is 1/10+1/15=1/6. The prefix sets the scale of the repeating tail, and the sum assigns an exact value to the full infinite decimal.
The repeated block gives 3/11 and the prefixed tail gives 1/6.
Compute a function image and an inverse image
For f(x)=x² on the reals, find the image of [−2,1] and the inverse image of [1,4]. Describe why inverse images do not require an inverse function.
- On [−2,1] the smallest square is zero, attained at x=0. The largest is four, attained at x=−2. For every y∈[0,4] the value x=−√y lies in [−2,0].
- Consequently the image of [−2,1] is [0,4]. The explicit negative root shows that every point between the endpoint values is achieved.
- For the inverse image, require 1≤x²≤4. This is the same as 1≤|x|≤2, giving [−2,−1]∪[1,2] among real inputs.
- Each output condition selects all inputs satisfying it. The square map has two inputs for each positive output, and the inverse-image operation naturally includes both.
The image is [0,4]. The inverse image is [−2,−1]∪[1,2].
Multiply a complex pair in two notations
Compute (2−3i)(1+4i) by expanding it and by multiplying the corresponding real matrices. Identify the entry that records the imaginary part.
- Expanding gives 2+8i−3i−12i². Since i²=−1, this equals 14+5i.
- The matrices are [[2,3],[−3,2]] and [[1,−4],[4,1]]. Their entries record the real part on the diagonal and the imaginary part with opposite signs off the diagonal.
- Multiply the matrices to obtain [[14,−5],[5,14]]. The first column is (14,5) and the second is (−5,14), in the required form.
- The lower-left entry is the coefficient of i and the upper-right entry is its negative. Reading the product matrix thus recovers 14+5i.
The product is 14+5i, with 5 in the lower-left entry of the product matrix.
Follow an explicit tolerance across a chain
For a=1.00, b=1.06, c=1.12 and tolerance ε=0.07, test each adjacent comparison and the comparison of the endpoints. Compare with the twice-tolerance bound.
- The first adjacent difference is |1.00−1.06|=0.06. This is at most 0.07, so the first comparison passes.
- The second adjacent difference is |1.06−1.12|=0.06, also at most the tolerance. Both comparisons use the same absolute scale.
- The endpoint difference is |1.00−1.12|=0.12. It exceeds 0.07, so the same-tolerance comparison of the endpoints fails.
- Adding the two tolerance bounds gives 2·0.07=0.14. The actual endpoint difference is within this guaranteed bound. Using the two observed differences gives the tighter bound 0.06+0.06=0.12.
The adjacent comparisons pass, and the endpoint difference 0.12 exceeds 0.07 but is within 0.14.
Move a probability vector in both orientations
With P having rows (0.8,0.2) and (0.3,0.7) and current probabilities (1/4,3/4), find the next probabilities using both row and column conventions.
- Under the row convention, the current distribution is (1/4,3/4). The transition rows for the two states are (4/5,1/5) and (3/10,7/10).
- Multiplying the row by P gives first probability (1/4)(4/5)+(3/4)(3/10)=1/5+9/40=17/40. The second is (1/4)(1/5)+(3/4)(7/10)=1/20+21/40=23/40.
- Use the same current numbers in a column and multiply from the left by Pᵀ. Its first row is (4/5,3/10) and its second row is (1/5,7/10), giving those same two sums.
- The next distribution is (17/40,23/40) in the declared state order. The entries are nonnegative and sum to one. Transposing the convention changes which side of the state vector the transition matrix uses.
Both orientations give probabilities (17/40,23/40) in the stated state order.
Change matrix coordinates and back
Let A have rows (2,1) and (0,1), and S have columns (1,0) and (1,1). Find the coordinate matrix in that basis and apply it to coordinate vector (2,3), verifying in standard coordinates.
- The basis columns give S=[[1,1],[0,1]] and inverse S⁻¹=[[1,−1],[0,1]]. Multiplying A by S gives [[2,3],[0,1]].
- Multiplying that product on the left by S⁻¹ yields [[2,2],[0,1]]. This is the matrix acting on S coordinates.
- For the input u=(2,3), the coordinate matrix gives (2·2+2·3,3)=(10,3). This is the output expressed in the chosen basis.
- In standard coordinates the input is Su=(5,3). Applying A gives (13,3). Since S(10,3)=(13,3), the two computations give the same transformed vector.
The matrix in the new basis is [[2,2],[0,1]]. Its output (10,3) represents the standard vector (13,3).
Separate a quadratic differential from its remainder
For q(x,y)=x²+2xy+3y², expand the increment at (1,−1) with h=(1/10,1/20). Find the linear differential, exact remainder and full change.
- The first derivatives of q are 2x+2y and 2x+6y. At (1,−1) they are zero and −4. The linear differential on h is thus 0·(1/10)−4·(1/20)=−1/5.
- For this quadratic the remaining terms are h_x²+2h_xh_y+3h_y². Substituting gives 1/100+1/100+3/400=11/400.
- Adding the linear and quadratic parts gives −1/5+11/400=−69/400. This is the exact finite change.
- As a check the original value is two, and at (11/10,−19/20) the value is 731/400. Their difference is (731−800)/400=−69/400. The differential gives the linear contribution at the original point.
The linear differential is −1/5, the quadratic remainder is 11/400 and the exact change is −69/400.
Solve a congruence without cancelling a nonunit
Solve 6x≡9 modulo 15. State every solution modulo 15 and explain why dividing the modulus by the common factor matters.
- Rewrite the congruence as 15∣(6x−9)=3(2x−3). Since 15=3·5, this holds exactly when 5 divides 2x−3.
- The reduced congruence is 2x≡3 modulo five. The inverse of two there is three, since 2·3≡1. It gives x≡9≡4 modulo five.
- The complete residues modulo fifteen are 4,9,14. Each is four modulo five, and advancing by five lists all such residues before the pattern repeats at fifteen.
- Substituting them into 6x gives 24,54,84, all congruent to nine modulo fifteen. Dividing the coefficient and the right-hand side by three also changes the divisibility requirement to the reduced modulus five.
The solutions are x≡4 modulo five, giving 4,9,14 modulo fifteen.
Convert a probability density to a new scale
Let X be uniform on [2,6] and Y=3X−1. Find the density of Y and the probability that Y lies in [8,11].
- The original uniform support [2,6] has length four. Applying Y=3X−1 gives endpoints five and seventeen, so its support length is twelve.
- A subinterval of the Y support of length ℓ corresponds to X length ℓ/3. Its probability is (ℓ/3)/4=ℓ/12, yielding density 1/12 there and zero outside.
- The desired interval [8,11] lies in the new support and has length three. It has probability 3/12=1/4.
- Equivalently its preimage is [3,4], which has length one in the original interval of length four. The two probabilities agree under the change of scale.
The density is 1/12 on [5,17] and zero outside. The required probability is 1/4.
Evaluate a cubic in Horner form
Evaluate 2x³−3x²+5x−7 at x=3 by the displayed monomials and by nested multiplication. Count the scalar multiplications and additions of the nested evaluation.
- Direct substitution gives 2·27−3·9+5·3−7=54−27+15−7=35. Each power and its coefficient stay with their designated term.
- The Horner expression is ((2x−3)x+5)x−7. Expanding the nested form gives exactly the same cubic.
- At x=3 start with two. Multiply by three and add −3 to get three. Multiply by three and add five to get fourteen. Then multiply by three and add −7 to get thirty-five.
- This nested evaluation uses three multiplications and three additions of signed coefficients. Both evaluations agree in exact arithmetic, and the grouped method preserves the original polynomial.
The value is 35. The Horner calculation uses three multiplications and three additions.
Try it yourself
Evaluate (20−6)−4 and 20−(6−4), give the difference and identify the operation whose input grouping changes.
Show the answer and reasoning
The two values are ten and eighteen. The second exceeds the first by eight.
The first grouping subtracts six from twenty, giving fourteen, and then subtracts four. It evaluates to ten. The second grouping carries out 6−4=2 first. Subtracting that intermediate result from twenty gives eighteen. The second value minus the first is eight. In the first expression the outer subtraction uses fourteen and four, while in the second it uses twenty and two. The same three initial values occur in the same order in both displays. Their arithmetic trees differ because the parentheses assign the inner subtraction to different inputs.
Starting with x=3 and y=1, compare simultaneous (x,y)←(x+y,x−y) with x←x+y first and then y←x−y. Find both resulting pairs.
Show the answer and reasoning
The simultaneous pair is (4,2). The ordered pair is (4,3).
In the simultaneous rule both right-hand sides use x=3,y=1. Thus x+y=4 and x−y=2 give the pair (4,2). In the ordered rule the first step changes x to four and leaves y equal to one. This gives the intermediate pair (4,1). The second step reads the new x and the still old y. Its result for y is 4−1=3, producing the final pair (4,3). The first components agree because the x assignment was computed from the same inputs. The other component differs because it uses x=3 in the simultaneous case and x=4 in the ordered case.
For Σ_{i=1}³ (2i+j) at j=4 evaluate the sum, then rename the bound index to k. Show what goes wrong if the index is renamed to j and both occurrences are read as bound.
Show the answer and reasoning
The value is 24 before and after changing i to k. Capturing j gives 18.
Set the free parameter j equal to four. Then the terms at i=1,2,3 are six, eight and ten, totaling twenty-four. Using k as the new index gives Σ_{k=1}³(2k+j). It retains j as the free parameter and gives those same three terms at j=4. If both occurrences of j are taken as bound in Σ_{j=1}³(2j+j), its terms are three, six and nine. Their sum is eighteen. The accidental capture removed the fixed input j=4 from the summand. Changing a bound name preserves the problem when the name is fresh and the range and bound uses all change together.
Write the union of [−1,1) and (1,3] as a relation to [−1,3]. Then include [1,2] and find the new union.
Show the answer and reasoning
The first union omits one from [−1,3]. Adding [1,2] gives [−1,3].
The interval [−1,1) includes −1 and every point before one down to that endpoint. The interval (1,3] includes every point after one up to and including three. Together they give every point of [−1,3] except one. Neither interval includes one because the first has an open right end and the second an open left end there. Adding [1,2] restores one, since it includes both its endpoints. All its other points already lie within the original range. The new union is [−1,3]. The bracket at the new interval’s left endpoint decides whether the gap at the shared coordinate is filled.
For f(x)=(x²−4)/(x−2) find its domain and continuous extension. Solve f(x)=4 on the actual domain and then solve the same level equation for the extension.
Show the answer and reasoning
The original excludes two and gives no solution at level four. Its continuous extension has solution x=2.
The denominator x−2 is zero at two, so the original domain is R∖{2}. The numerator is (x−2)(x+2). For every allowed input the simplified value is x+2. Its limit at x=2 is four, so the continuous extension is the function x↦x+2 on R. Solving f(x)=4 over the original domain would require x+2=4 and hence x=2. This input is excluded, so there is no solution. The extension is defined at two and has value four there. It therefore has the unique solution x=2. The use of cancellation preserved the values on the original domain.
Evaluate arcsin(sin(2π/3)) and 1/sin(2π/3). State the principal arcsine range and classify the values by the operations that produced them.
Show the answer and reasoning
The principal inverse sine gives π/3. The reciprocal gives 2/√3.
The sine of 2π/3 equals the sine of π/3, since the two angles are supplementary. That value is √3/2. The principal arcsine range is [−π/2,π/2]. The angle π/3 lies there and has the specified sine, so arcsin(sin(2π/3))=π/3. Taking the reciprocal instead divides one by √3/2, giving 2/√3. Multiplying this number by the sine value gives one. The inverse function result is the principal angle producing the input sine. The reciprocal result is the multiplicative inverse of that sine value. The two computations solve different equations.
Convert 72 kilometres per hour to metres per second. Use both representations to calculate the distance covered at this constant speed in 150 seconds.
Show the answer and reasoning
The speed is 20 metres per second and the distance is 3000 metres, or 3 kilometres.
One kilometre is one thousand metres and one hour is 3600 seconds. Thus 72 kilometres per hour is 72000/3600 metres per second, or 20 metres per second. At this constant rate, multiplying by 150 seconds gives 20·150=3000 metres. The seconds cancel in the rate-time product. Using the original units, 150 seconds is 150/3600=1/24 hour. The distance is 72/24=3 kilometres. Three kilometres is 3000 metres. Both representations give the same physical distance when the duration is expressed in the unit appearing in the rate’s denominator.
If four real numbers in a chain differ by at most 0.02 between successive entries, give the strongest uniform endpoint bound and a set of four entries that attains it.
Show the answer and reasoning
The uniform endpoint bound is 0.06, attained by 0,0.02,0.04,0.06.
There are three successive differences in any chain of four entries. Write the last entry minus the first as the sum of the three differences. The triangle inequality bounds its magnitude by the sum of the three magnitudes, at most 3·0.02=0.06. The chain 0,0.02,0.04,0.06 has every adjacent difference equal to 0.02 and endpoint difference equal to 0.06. Since the example attains the claimed bound, a smaller number cannot serve as a uniform bound for every permitted chain.
With v=(3,4), w=(2,−1) and Q having rows (0,−1) and (1,0), calculate v·w and (Qv)·(Qw). State which matrix identity explains the equality.
Show the answer and reasoning
Both dot products equal two, because QᵀQ=I.
The dot product in the original coordinates is 3·2+4·(−1)=2. The matrix Q sends any pair (x,y) to (−y,x). Thus Qv=(−4,3) and Qw=(1,2). The dot product is (−4)·1+3·2=2, matching the original. Multiplying QᵀQ gives the identity matrix. The columns of Q each have squared length one and have inner product zero. In matrix form (Qv)ᵀ(Qw)=vᵀQᵀQw=vᵀw. This identity gives equality for every pair in the corresponding coordinate system.
For F(x,y)=xy and y=x², find the partial derivative with respect to x at (2,4) and the derivative along the curve at x=2. Explain the extra term.
Show the answer and reasoning
The partial derivative is four and the derivative along the curve is twelve.
With y fixed, the change in F(x,y)=xy per unit change in x is y. At (2,4), this gives partial derivative four. Along y=x² the composite function is x·x²=x³. Its derivative at x=2 is 3·2²=12. The increment formula gives a second contribution x·dy/dx along the curve. Here dy/dx=2x=4 at x=2, so the extra term is 2·4=8. The sum of the fixed-y contribution four and the extra contribution eight is twelve. The two derivatives come from different choices about how y changes.
For a_n=3/n with n a positive integer, find the smallest N for which |a_n|<0.01 for every n≥N and verify its minimality.
Show the answer and reasoning
The smallest tail index is 301.
The given sequence is positive and decreases for n≥1. Thus the bound on |a_n| is a condition on 3/n without an absolute-value sign. The strict inequality 3/n<0.01 is equivalent to 3<n/100, so it holds exactly when n>300. It therefore holds for every integer n≥301. The largest a_n in that tail is 3/301, which is strictly below the tolerance. Any smaller positive tail start includes n=300, where 3/300=0.01 and the strict inequality fails. This proves the minimal index is 301.
Evaluate log₂(32) and log₈(4). State the real domain on which log_b(x²)=2log_b|x| for b>0, b≠1.
Show the answer and reasoning
The two logarithms are 5 and 2/3. The identity holds for every real x≠0.
The equality 2⁵=32 gives log₂(32)=5 directly from the inverse relation between exponentials and logarithms. Since eight is 2³ and four is 2², the equation 8^u=4 becomes 2^(3u)=2². Injectivity gives u=2/3, which is log₈(4). The identity x²=|x|² has a positive value exactly when x≠0. In that case |x| is also positive and can be used as a logarithm argument. Applying the logarithm power rule to |x| gives log_b(x²)=2log_b|x| on R∖{0}. Both expressions are defined there for every stated base.
Prove n∈O(n²) for n≥1 and prove n²∉O(n). Specify which inequality can no longer hold with a constant in the reverse direction.
Show the answer and reasoning
The forward bound holds with constant one. The reverse would require n bounded by one fixed C throughout a tail.
For each integer n≥1, one has n≤n², so n∈O(n²) with constant one and tail starting at one. For the reverse relation there would be a positive constant C and a start N such that n²≤Cn for all n≥N. Dividing by n>0 would give n≤C throughout the tail. One can choose an integer n≥N larger than C, contradicting the claimed bound. The two sequences therefore satisfy only the displayed first direction. Swapping the roles of the compared sequences changes the requirement.
Divide −17 by 5 using the Euclidean remainder convention. Compare the quotient and remainder from truncating the real quotient toward zero.
Show the answer and reasoning
The Euclidean quotient and remainder are −4 and 3. Truncation gives −3 and −2.
The quotient −17/5 lies between −4 and −3. Its floor is −4. The remainder is −17−5(−4)=3. The equation −17=5(−4)+3 has remainder in the interval from zero through four, so it is the required Euclidean division. Truncation toward zero gives the quotient −3. Its paired remainder is −17−5(−3)=−2. The latter pair satisfies the same equality but has a negative remainder. The floor and truncation conventions answer different rounding questions on this input.
Show that −6/8 and 3/(−4) are equivalent. Add each to 5/6 using cross-products and reduce the respective answers.
Show the answer and reasoning
The two displayed fractions are equal and each sum reduces to 1/12.
To compare (−6,8) and (3,−4), cross-multiply. The products (−6)(−4) and 8·3 are both twenty-four, so the fractions agree. Adding the first to 5/6 gives (−6·6+8·5)/(8·6)=4/48. Dividing both numbers by four gives 1/12. Using (3,−4) gives (3·6+(−4)·5)/((−4)·6)=−2/−24. This also reduces to 1/12. The displays have different intermediate denominators and signs. The addition operation preserves the value when an equivalent fraction pair is substituted.
Let the graph have vertices 0,1,2,3 and edges {0,1} and {2,3}. Find a nonempty proper subset with no crossing edge. Add one edge and prove the new graph is connected.
Show the answer and reasoning
The cut {0,1} has no crossing edge. Adding {1,2} gives the spanning path 0,1,2,3.
Take U={0,1}, whose complement is {2,3}. The only edge in U joins zero to one, and the only edge outside joins two to three. No edge joins a point in U to a point outside, so this is a nonempty proper cut with no crossing edge. The original graph is disconnected. Add the edge {1,2}. The vertices now appear in the path 0,1,2,3 with each consecutive pair joined. Every pair of vertices can reach each other along the corresponding subpath, in either direction because the edges are undirected. The graph after that addition is connected.
For P(A)=0.2 and P(B|A)=0.6 find P(A∩B) and P(Aᶜ∪B). Give the possible range of P(B) under these two stated constraints.
Show the answer and reasoning
The intersection is 0.12, the implication event has probability 0.92 and P(B) may range from 0.12 to 0.92.
The definition of conditional probability gives P(A∩B)=P(B|A)P(A)=0.6·0.2=0.12. The event Aᶜ∪B is the disjoint union of Aᶜ and A∩B. Its probability is 0.8+0.12=0.92. For P(B), add P(A∩B)=0.12 to P(Aᶜ∩B)=t. The latter can range from zero to P(Aᶜ)=0.8, giving the interval [0.12,0.92]. Every value in this interval is attainable by assigning joint masses 0.12, 0.08, t and 0.8−t to the four cells for A and B. Those masses are nonnegative, sum to one and give the two stated constraints.
For v=(1,−2,3,−4), find its maximum norm and sum norm. Then give a nonzero vector in four dimensions achieving the upper inequality with equality.
Show the answer and reasoning
The two norms of v are four and ten. The vector (2,−2,2,−2) attains the upper bound.
The absolute coordinates of v are one, two, three and four. Their largest value is four, so ||v||∞=4. Their sum is ten, so ||v||₁=10. This lies between four and four times four, in agreement with the general inequality. To attain the upper bound choose w=(2,−2,2,−2). All four absolute values are two, so its maximum norm is two and its sum norm is eight. For this nonzero w the sum norm is exactly four times the maximum norm. The equality occurs because every term in the sum equals that maximum.
What to carry forward
- Parentheses, index ranges and declared domains are part of the meaning of an expression.
- A mathematical equality and a state assignment carry different instructions.
- An inverse image can include several inputs even when a function has no inverse.
- Equivalent representations preserve what their defining relation requires them to preserve.
- Observation, measurement and probability statements carry scale and scope information.
- An exact algebraic identity can preserve the answer of a reorganized computation.
- Floating-point grouping matters because intermediate values are rounded.
- A bound may depend on the dimension, tolerance, state or model in use.
References
Sources for the concepts and teaching approaches in this article.
- Parallel strokes used to write equalityRobert Recorde, facsimile selection hosted by Indiana University of PennsylvaniaPrimary
- Evaluate the subexpressions of a nested combinationHarold Abelson and Gerald Jay Sussman, with Julie SussmanPrimary · PDF
- A reasoned convention for interval endpoints and starting at zeroEdsger W. DijkstraPrimary
- Mathematics for Computer Science, §4.1, set membership and distinct-elements presentationEric Lehman, F. Thomson Leighton and Albert R. MeyerPrimary · PDFA set records membershipSum a geometric sequence of decreasing termsThe empty product acts as the multiplicative identityRound down to the lower integerConnectedness as reachability by pathsElementary prime questions and unique factorizationReading an asymptotic bound
- Calculus of a Complex Variable, §1.9(i), definition of the imaginary unit and complex number coordinatesNIST Digital Library of Mathematical FunctionsPrimaryReal and imaginary components of a complex numberChoose a principal branch for inverse sineLogarithm and exponential definitionsEvaluate a polynomial by nested multiplication
- Numerical values change with unitsBureau International des Poids et MesuresPrimary
- Norm definitions and finite-dimensional comparisonStephen Boyd and Lieven VandenberghePrimary · PDF
- A linear map written in a new basisLior SilbermanPrimary · PDF
- Name the variables held fixed before differentiatingMassachusetts Institute of TechnologyPrimary · PDF
- A vertical line fixes an input coordinateOpenStaxPrimary
- Probability conditional on a positive-mass eventRobert G. GallagerPrimary · PDF
- A historical source for a numerical equation methodWilliam George HornerPrimary
- Arithmetic grouping can affect a rounded resultDavid GoldbergPrimary
- Truth-table validity and derivabilityP. D. Magnus, Tim Button and collaborators, with Richard ZachPrimary · PDF
- The role of uniformity and continuityJiří LeblPrimary · PDF
- Flowing quantities and their rates in Newton’s notationIsaac Newton, edited by the Newton ProjectPrimary
- Leibniz’s differentials at a geometric constructionGottfried Wilhelm LeibnizPrimary
- Combining states of a finite Markov chainJohn G. Kemeny and J. Laurie SnellPrimary · PDF