In other words, QM≥AM≥GM≥HM. These inequalities often appear in mathematical competitions and have applications in many fields of science.[citation needed]
Jensen's inequality states that the value of a concave function of an arithmetic mean is greater than or equal to the arithmetic mean of the function's values. Since the logarithm function is concave, we have
Taking antilogs of the far left and far right sides, we have the AM–GM inequality.
HM–GM inequality
The reciprocal of the harmonic mean is the arithmetic mean of the reciprocals , and it exceeds by the AM-GM inequality. implies the inequality:
which can be visualized in a semi-circle whose diameter is x1+x2.
Suppose C is a point on [AB] and let AC = x1 and BC = x2. Find the midpoint of [AB] as D and use as the center for the semi-circle from A to B. Construct perpendiculars to [AB] at D and C respectively, intersecting the circle at E and F respectively. Join [CE] and [DF] and further construct a perpendicular [CG] to [DF] at G. The length of DE is the arithmetic mean by the virtue of being the ray of the circle. CE can be calculated to be the quadratic mean from the Pythagorean theorem, CF to be the geometric mean from a combination of Thales's theorem (establishing that △ABF is a right triangle) and Geometric mean theorem, GF to be the harmonic mean from the similarity of triangle △CGF and △DCF (whose edge [DF]'s length can be calculated using the Pythagorean theorem and the two other known edges).
Comparison of harmonic, geometric, arithmetic, quadratic and other mean values of two positive real numbers and