✦ScienexySCIENCE KNOWLEDGE LIBRARY
General science · SCI-FORM-ALG-046

Harmonic Mean of Two Numbers

The harmonic mean of two numbers is the reciprocal of the arithmetic mean of their reciprocals.

\(H = 2ab/(a + b), \text{ for } a + b \neq 0\)

What this formula means

Definition

The harmonic mean of two numbers is the reciprocal of the arithmetic mean of their reciprocals.

Interpretation

It is particularly useful when averaging rates or ratios where equal quantities are divided by different numerical values.

Mathematical Significance

The harmonic mean gives greater influence to smaller positive values than the arithmetic mean and is commonly used for averaging rates over equal distances or equal quantities.

Special Cases

  • For positive equal numbers a = b, the harmonic mean equals that number.

  • For positive a and b, the harmonic mean is no greater than their arithmetic mean.

  • If either number is zero, the reciprocal definition is undefined.

  • For positive unequal numbers, the harmonic mean is smaller than the arithmetic mean.

Scientific principle

Principle

The harmonic mean is calculated by taking the reciprocal of the arithmetic mean of the reciprocals.

Derivation

  • For two nonzero numbers a and b, take their reciprocals: 1/a and 1/b.

  • Calculate their arithmetic mean: [(1/a) + (1/b)]/2.

  • Combine the fractions: (a + b)/(2ab).

  • Take the reciprocal of this mean.

  • The result is H = 2ab/(a + b).

Final Result

H = 2ab/(a + b)

Variables and their meanings

H

Harmonic mean of the two numbers.

A

First nonzero number.

B

Second nonzero number.

SI units and conversions

Si Unit

Same unit as a and b when both represent quantities with the same unit.

Dimensional Formula

Same dimension as a and b when their dimensions are compatible.

Explanation

The formula is mathematically defined for nonzero a and b with a + b ≠ 0. For physical applications, both values must have compatible units.

Conditions of use

  • Both input numbers must be nonzero.

  • Their sum must not be zero.

  • For averaging positive physical rates, both rates should be positive.

  • The quantities must be expressed in compatible units.

Limitations and assumptions

  • The formula is undefined if either input is zero.

  • The formula is undefined when a + b = 0.

  • The harmonic mean is not the appropriate average for every dataset; the meaning of the quantities and weighting must be considered.

  • The two-number formula assumes equal weighting.

Step-by-step worked examples

ProblemGivenSolutionAnswer

Find the harmonic mean of 4 and 12.

A

4

B

12

  • Use H = 2ab/(a + b).

  • Substitute: H = 2 × 4 × 12/(4 + 12).

  • H = 96/16.

  • H = 6.

The harmonic mean is 6.

A vehicle travels equal distances at 30 km/h and 60 km/h. Find its average speed.

V 1

30 km/h

V 2

60 km/h

Distance Condition

Equal distances

  • For equal distances, average speed is the harmonic mean of the two speeds.

  • Use H = 2v_1v_2/(v_1 + v_2).

  • H = 2 × 30 × 60/(30 + 60).

  • H = 3600/90 = 40 km/h.

The average speed is 40 km/h.

Real-world applications

  • Calculating average speed over equal travel distances.

  • Averaging rates such as production rates under equal-output conditions.

  • Combining electrical resistances in parallel through reciprocal relationships.

  • Statistical analysis of ratios and certain financial indicators.

Formula Meaning

Definition

The harmonic mean of two numbers is the reciprocal of the arithmetic mean of their reciprocals.

Interpretation

It is particularly useful when averaging rates or ratios where equal quantities are divided by different numerical values.

Mathematical Significance

The harmonic mean gives greater influence to smaller positive values than the arithmetic mean and is commonly used for averaging rates over equal distances or equal quantities.

Special Cases

  • For positive equal numbers a = b, the harmonic mean equals that number.

  • For positive a and b, the harmonic mean is no greater than their arithmetic mean.

  • If either number is zero, the reciprocal definition is undefined.

  • For positive unequal numbers, the harmonic mean is smaller than the arithmetic mean.

Sources and further reading

No source has been supplied for this item yet. Treat the claim as needing editorial verification.

← Back to Formula Hub · Suggest a correction or source