Sub topic 9
Combining errors in sums and differences
Prerequisites and scope
This chapter assumes you can read an instrument's least count, apply zero correction, and compute absolute, relative and percentage error for a set of readings. You should also be comfortable with the idea of a small change from basic differentiation. The chapter covers one rule: how the error in a result Z = A + B or Z = A − B follows from the errors in A and B. Products, quotients and powers come in the next chapter.
The rule
Suppose you measure A = a ± Δa and B = b ± Δb. Here Δa and Δb are absolute errors, the maximum likely deviation of each reading from its true value. The JEE convention is the worst-case (maximum error) rule:
- For Z = A + B, ΔZ = Δa + Δb.
- For Z = A − B, ΔZ = Δa + Δb.
The absolute errors add in both cases. They never subtract, even when the quantities themselves are subtracted.
Why the errors add for a difference
The extreme values of A are a − Δa and a + Δa. The same holds for B. The largest possible value of A − B pairs the biggest A with the smallest B:
(a + Δa) − (b − Δb) = (a − b) + (Δa + Δb)
The smallest possible value pairs the smallest A with the biggest B:
(a − Δa) − (b + Δb) = (a − b) − (Δa + Δb)
So Z = (a − b) ± (Δa + Δb). The same argument for the sum gives the same total error.
The calculus view
For Z = A ± B, a small change gives dZ = dA ± dB. Taking the worst case means choosing the signs so that the two contributions reinforce each other. That gives |dZ| = |dA| + |dB|.
Worked example: a sum
Two rods are placed end to end. Their lengths are measured as L₁ = 5.2 ± 0.1 cm and L₂ = 3.4 ± 0.1 cm.
- Total length: 5.2 + 3.4 = 8.6 cm.
- Absolute error: 0.1 + 0.1 = 0.2 cm.
- Result: L = 8.6 ± 0.2 cm.
Worked example: a difference and the loss of precision
A temperature rises from t₁ = 20.0 ± 0.5 °C to t₂ = 50.0 ± 0.5 °C.
- Rise: 50.0 − 20.0 = 30.0 °C.
- Absolute error: 0.5 + 0.5 = 1.0 °C.
- Result: Δt = 30.0 ± 1.0 °C.
The percentage error of each reading is small, but the difference has a larger relative error than either reading would suggest. Compare the two cases:
| Quantity | Value | Absolute error | Percentage error |
|---|---|---|---|
| t₂ | 50.0 °C | 0.5 °C | 1.0% |
| t₁ | 20.0 °C | 0.5 °C | 2.5% |
| t₂ − t₁ | 30.0 °C | 1.0 °C | 3.3% |
When two nearly equal numbers are subtracted, the result is small but its absolute error is still the sum of the two. The relative error can then become very large. For example, 100.0 ± 0.5 minus 99.0 ± 0.5 gives 1.0 ± 1.0, which is a 100% error.
Code check
The function below computes the result and its error, and reports the percentage error so you can see the precision loss.
def combine_sum_diff(a, da, b, db, op="+"):
"""Return value, absolute error and percentage error for a + b or a - b."""
if op == "+":
z = a + b
elif op == "-":
z = a - b
else:
raise ValueError("op must be '+' or '-'")
dz = da + db
percent = abs(dz / z) * 100 if z != 0 else float("inf")
return z, dz, percent
for label, args in [
("sum of rods", (5.2, 0.1, 3.4, 0.1, "+")),
("temperature rise", (50.0, 0.5, 20.0, 0.5, "-")),
("nearly equal", (100.0, 0.5, 99.0, 0.5, "-")),
]:
z, dz, p = combine_sum_diff(*args)
print(f"{label}: {z:.1f} +/- {dz:.1f} ({p:.1f}%)")The output is:
sum of rods: 8.6 +/- 0.2 (2.3%)
temperature rise: 30.0 +/- 1.0 (3.3%)
nearly equal: 1.0 +/- 1.0 (100.0%)More than two terms
The rule extends directly. For Z = A + B − C + D, the error is ΔZ = Δa + Δb + Δc + Δd. Every term contributes its absolute error with a plus sign, whatever sign it has in the formula.
A multiple of a quantity needs care. For Z = 3A − 2B, the coefficients scale the errors: ΔZ = 3Δa + 2Δb. In general, for Z = pA ± qB, ΔZ = |p|Δa + |q|Δb.
Where this appears in experiments
Differences of readings appear constantly in the lab:
- Vernier and screw gauge. The corrected reading is the observed reading minus the zero error. The error in the corrected reading combines the reading's error and the zero error's error.
- Measuring a length from two positions. A length found as x₂ − x₁ carries both position errors. A metre scale with a least count of 1 mm gives 2 mm for the difference if each end is uncertain by 1 mm.
- Resonance tube. The difference between two resonance lengths, l₂ − l₁, equals half a wavelength. Taking the difference removes the end correction, but the error in the difference is the sum of the two length errors.
- Calorimetry. A temperature change is a difference of two thermometer readings.
Common errors
- Subtracting errors for a difference. Writing ΔZ = Δa − Δb is wrong. The result can only be less certain than either input.
- Adding percentage errors for a sum. The percentage errors add only for products and quotients. For sums, add absolute errors.
- Mixing units. Convert both quantities and errors to the same unit before combining.
- Ignoring the coefficient. For Z = 2A − B, the error in A counts twice.
- Wrong decimal places in the answer. The error should be quoted to the same decimal place as the value. In the rod example, 8.6 ± 0.2 is consistent, while 8.60 ± 0.2 is not.
- Forgetting that a repeated quantity is not independent. In Z = A − A, the errors cancel, because both terms are the same measurement. The rule applies to independent readings. In Z = A + A = 2A, the error is 2Δa, which is the coefficient rule.
Worked JEE-style example
The values A = 10.0 ± 0.1 and B = 6.0 ± 0.1 are measured. Find the percentage error in A − B.
- A − B = 4.0.
- Δ(A − B) = 0.1 + 0.1 = 0.2.
- Percentage error = (0.2 / 4.0) × 100 = 5%.
Each reading has a percentage error of 1% or less than 2%, yet the difference has 5%. A quick estimate that takes the larger of the two percentage errors would give the wrong answer.
Statistical alternative
The maximum-error rule is the one used in JEE. In real laboratories, independent random errors often combine in quadrature, ΔZ = √((Δa)² + (Δb)²), which is smaller than Δa + Δb. If a question does not say which to use, use the addition rule. The addition rule is also an upper bound, so it is always a safe estimate.
Exercise
A student measures x₁ = 12.5 ± 0.1 cm and x₂ = 4.5 ± 0.1 cm. She computes Z = 2x₁ − 3x₂. Find Z, the absolute error in Z, and the percentage error in Z.
Show answer
Z = 2(12.5) − 3(4.5) = 25.0 − 13.5 = 11.5 cm. The absolute error is ΔZ = 2(0.1) + 3(0.1) = 0.5 cm. The percentage error is (0.5 / 11.5) × 100 ≈ 4.3%. So Z = 11.5 ± 0.5 cm.
Exercise
In a resonance tube experiment, the first and second resonance lengths are l₁ = 17.0 ± 0.1 cm and l₂ = 52.0 ± 0.1 cm. Find λ/2 = l₂ − l₁ with its absolute error, and say why the end correction does not appear in this difference.
Show answer
l₂ − l₁ = 52.0 − 17.0 = 35.0 cm, with absolute error 0.1 + 0.1 = 0.2 cm, so λ/2 = 35.0 ± 0.2 cm. The effective lengths are l₁ + e and l₂ + e, where e is the end correction. Their difference is (l₂ + e) − (l₁ + e) = l₂ − l₁, so e cancels.