Mediant (mathematics)

From HandWiki

In mathematics, the mediant of two fractions, generally made up of four positive integers

[math]\displaystyle{ \frac{a}{c} \quad }[/math] and [math]\displaystyle{ \quad \frac{b}{d} \quad }[/math] is defined as [math]\displaystyle{ \quad \frac{a+b}{c+d}. }[/math]

That is to say, the numerator and denominator of the mediant are the sums of the numerators and denominators of the given fractions, respectively. It is sometimes called the freshman sum, as it is a common mistake in the early stages of learning about addition of fractions.

Technically, this is a binary operation on valid fractions (nonzero denominator), considered as ordered pairs of appropriate integers, a priori disregarding the perspective on rational numbers as equivalence classes of fractions. For example, the mediant of the fractions 1/1 and 1/2 is 2/3. However, if the fraction 1/1 is replaced by the fraction 2/2, which is an equivalent fraction denoting the same rational number 1, the mediant of the fractions 2/2 and 1/2 is 3/4. For a stronger connection to rational numbers the fractions may be required to be reduced to lowest terms, thereby selecting unique representatives from the respective equivalence classes.

The Stern–Brocot tree provides an enumeration of all positive rational numbers via mediants in lowest terms, obtained purely by iterative computation of the mediant according to a simple algorithm.

Properties

  • The mediant inequality: An important property (also explaining its name) of the mediant is that it lies strictly between the two fractions of which it is the mediant: If [math]\displaystyle{ a/c \lt b/d }[/math] and [math]\displaystyle{ c\cdot d\gt 0 }[/math], then [math]\displaystyle{ \frac a c \lt \frac{a+b}{c+d} \lt \frac b d. }[/math] This property follows from the two relations [math]\displaystyle{ \frac{a+b}{c+d}-\frac a c={{bc-ad}\over{c(c+d)}} ={d\over{c+d}}\left( \frac{b}{d}-\frac a c \right) }[/math] and [math]\displaystyle{ \frac b d-\frac{a+b}{c+d}={{bc-ad}\over{d(c+d)}} ={c\over{c+d}}\left( \frac{b}{d}-\frac a c \right). }[/math]
  • Componendo and Dividendo Theorems: If [math]\displaystyle{ a/c = b/d }[/math] and [math]\displaystyle{ c \ne 0,\ d \ne 0 }[/math], then[1] [math]\displaystyle{ \frac a c = \frac b d = \frac{a+b}{c+d} }[/math]
[math]\displaystyle{ \frac{a+c}{c} = \frac{b+d}{d} }[/math]
[math]\displaystyle{ \frac{a-c}{c} = \frac{b-d}{d} }[/math]
  • Assume that the pair of fractions a/c and b/d satisfies the determinant relation [math]\displaystyle{ bc-ad=1 }[/math]. Then the mediant has the property that it is the simplest fraction in the interval (a/c, b/d), in the sense of being the fraction with the smallest denominator. More precisely, if the fraction [math]\displaystyle{ a'/c' }[/math] with positive denominator c' lies (strictly) between a/c and b/d, then its numerator and denominator can be written as [math]\displaystyle{ a'=\lambda_1 a + \lambda_2 b }[/math] and [math]\displaystyle{ c' = \lambda_1 c + \lambda_2 d }[/math] with two positive real (in fact rational) numbers [math]\displaystyle{ \lambda_1,\,\lambda_2 }[/math]. To see why the [math]\displaystyle{ \lambda_i }[/math] must be positive note that [math]\displaystyle{ \frac{\lambda_1 a+\lambda_2 b}{\lambda_1 c+\lambda_2 d }-\frac a c=\lambda_2 {{bc-ad} \over {c(\lambda_1 c+\lambda_2 d)}} }[/math] and [math]\displaystyle{ \frac b d - \frac{\lambda_1 a+\lambda_2 b}{\lambda_1 c+\lambda_2 d }=\lambda_1 {{bc-ad}\over{d(\lambda_1 c+\lambda_2 d )}} }[/math] must be positive. The determinant relation [math]\displaystyle{ bc-ad=1 \, }[/math] then implies that both [math]\displaystyle{ \lambda_1,\,\lambda_2 }[/math] must be integers, solving the system of linear equations [math]\displaystyle{ a'=\lambda_1 a+ \lambda_2 b }[/math] [math]\displaystyle{ c' = \lambda_1 c+ \lambda_2 d }[/math] for [math]\displaystyle{ \lambda_1,\lambda_2 }[/math]. Therefore, [math]\displaystyle{ c'\ge c+d. }[/math]
  • The converse is also true: assume that the pair of reduced fractions a/c < b/d has the property that the reduced fraction with smallest denominator lying in the interval (a/cb/d) is equal to the mediant of the two fractions. Then the determinant relation bcad = 1 holds. This fact may be deduced e.g. with the help of Pick's theorem which expresses the area of a plane triangle whose vertices have integer coordinates in terms of the number vinterior of lattice points (strictly) inside the triangle and the number vboundary of lattice points on the boundary of the triangle. Consider the triangle [math]\displaystyle{ \Delta(v_1,v_2,v_3) }[/math] with the three vertices v1 = (0, 0), v2 = (ac), v3 = (bd). Its area is equal to [math]\displaystyle{ \text{area}(\Delta) = {{bc-ad}\over 2} \, . }[/math] A point [math]\displaystyle{ p=(p_1,p_2) }[/math] inside the triangle can be parametrized as [math]\displaystyle{ p_1=\lambda_1 a+\lambda_2 b,\; p_2=\lambda_1 c+\lambda_2 d, }[/math] where [math]\displaystyle{ \lambda_1\ge 0,\,\lambda_2 \ge 0, \,\lambda_1+\lambda_2 \le 1. }[/math] The Pick formula [math]\displaystyle{ \text{area}(\Delta)=v_\mathrm{interior} + {v_\mathrm{boundary}\over 2} - 1 }[/math] now implies that there must be a lattice point q = (q1, q2) lying inside the triangle different from the three vertices if bcad > 1 (then the area of the triangle is [math]\displaystyle{ \ge 1 }[/math]). The corresponding fraction q1/q2 lies (strictly) between the given (by assumption reduced) fractions and has denominator [math]\displaystyle{ q_2 = \lambda_1 c+ \lambda_2 d \le \max(c,d)\lt c+d }[/math] as [math]\displaystyle{ \lambda_1+\lambda_2 \le 1. }[/math]
  • Relatedly, if p/q and r/s are reduced fractions on the unit interval such that |ps − rq| = 1 (so that they are adjacent elements of a row of the Farey sequence) then [math]\displaystyle{ ?\left(\frac{p+r}{q+s}\right) = \frac1 2 \left(?\left(\frac p q\right) + {}?\left(\frac r s\right)\right) }[/math] where ? is Minkowski's question mark function.
    In fact, mediants commonly occur in the study of continued fractions and in particular, Farey fractions. The nth Farey sequence Fn is defined as the (ordered with respect to magnitude) sequence of reduced fractions a/b (with coprime a, b) such that b ≤ n. If two fractions a/c < b/d are adjacent (neighbouring) fractions in a segment of Fn then the determinant relation [math]\displaystyle{ bc-ad=1 }[/math] mentioned above is generally valid and therefore the mediant is the simplest fraction in the interval (a/cb/d), in the sense of being the fraction with the smallest denominator. Thus the mediant will then (first) appear in the (c + d)th Farey sequence and is the "next" fraction which is inserted in any Farey sequence between a/c and b/d. This gives the rule how the Farey sequences Fn are successively built up with increasing n.

Graphical determination of mediants

Determining the mediant of two rational numbers graphically. The slopes of the blue and red segments are two rational numbers; the slope of the green segment is their mediant.

A positive rational number is one in the form [math]\displaystyle{ a/b }[/math] where [math]\displaystyle{ a,b }[/math] are positive natural numbers; i.e. [math]\displaystyle{ a,b\in\mathbb{N}^{+} }[/math]. The set of positive rational numbers [math]\displaystyle{ \mathbb{Q}^{+} }[/math] is, therefore, the Cartesian product of [math]\displaystyle{ \mathbb{N}^{+} }[/math] by itself; i.e. [math]\displaystyle{ \mathbb{Q}^{+}=(\mathbb{N}^{+})^2 }[/math]. A point with coordinates [math]\displaystyle{ (b,a) }[/math] represents the rational number [math]\displaystyle{ a/b }[/math], and the slope of a segment connecting the origin of coordinates to this point is [math]\displaystyle{ a/b }[/math]. Since [math]\displaystyle{ a,b }[/math] are not required to be coprime, point [math]\displaystyle{ (b,a) }[/math] represents one and only one rational number, but a rational number is represented by more than one point; e.g. [math]\displaystyle{ (4,2),(60,30),(48,24) }[/math] are all representations of the rational number [math]\displaystyle{ 1/2 }[/math]. This is a slight modification of the formal definition of rational numbers, restricting them to positive values, and flipping the order of the terms in the ordered pair [math]\displaystyle{ (b,a) }[/math] so that the slope of the segment becomes equal to the rational number.

Two points [math]\displaystyle{ (b,a)\neq(d,c) }[/math] where [math]\displaystyle{ a,b,c,d\in\mathbb{N}^{+} }[/math] are two representations of (possibly equivalent) rational numbers [math]\displaystyle{ a/b }[/math] and [math]\displaystyle{ c/d }[/math]. The line segments connecting the origin of coordinates to [math]\displaystyle{ (b,a) }[/math] and [math]\displaystyle{ (d,c) }[/math] form two adjacent sides in a parallelogram. The vertex of the parallelogram opposite to the origin of coordinates is the point [math]\displaystyle{ (b+d,a+c) }[/math], which is the mediant of [math]\displaystyle{ a/b }[/math] and [math]\displaystyle{ c/d }[/math].

The area of the parallelogram is [math]\displaystyle{ bc-ad }[/math], which is also the magnitude of the cross product of vectors [math]\displaystyle{ \langle b,a\rangle }[/math] and [math]\displaystyle{ \langle d,c\rangle }[/math]. It follows from the formal definition of rational number equivalence that the area is zero if [math]\displaystyle{ a/b }[/math] and [math]\displaystyle{ c/d }[/math] are equivalent. In this case, one segment coincides with the other, since their slopes are equal. The area of the parallelogram formed by two consecutive rational numbers in the Stern–Brocot tree is always 1.[2]

Generalization

The notion of mediant can be generalized to n fractions, and a generalized mediant inequality holds,[3] a fact that seems to have been first noticed by Cauchy. More precisely, the weighted mediant [math]\displaystyle{ m_w }[/math] of n fractions [math]\displaystyle{ a_1/b_1,\ldots,a_n/b_n }[/math] is defined by [math]\displaystyle{ \frac{\sum_i w_i a_i}{\sum_i w_i b_i} }[/math] (with [math]\displaystyle{ w_i\gt 0 }[/math]). It can be shown that [math]\displaystyle{ m_w }[/math] lies somewhere between the smallest and the largest fraction among the [math]\displaystyle{ a_i/b_i }[/math].

See also

References

External links