Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Mixture concentrations from absorbance (additivity of Beer's law, square systems), version 1.0.1

multicomponent-absorbance@1.0.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

What this page can and cannot show

Level: Checked against a reference; Harvey Example 10.3.2 and Exercise 10.3.2 at printed rounding; exact elimination; square systems only. Reference kind: our own exact-arithmetic script and a hand-worked case.

Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

Every version of this method · Every method · What the levels mean

Version 1.0.1

Level: Checked against a reference; Harvey Example 10.3.2 and Exercise 10.3.2 at printed rounding; exact elimination; square systems only. Reference kind: our own exact-arithmetic script and a hand-worked case. multicomponent-absorbance@1.0.1

Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.

Verification statement: A(λ) = Σ εᵢ(λ)·b·Cᵢ solved as a square system, as in Harvey, Analytical Chemistry 2.1, §10.2 eq 10.6 and §10.3 eqs 10.1–10.2 (LibreTexts page modified 5 June 2026, re-read 14 November 2026; a dynamic page, hash not re-matchable). ε as the IUPAC Green Book §2.7 defines it (SHA-256 matching; its erratum list unread). Reproduces Harvey's Example 10.3.2 (Fe 1.8 × 10⁻⁵, Cu 1.3 × 10⁻⁴ M) and Exercise 10.3.2 (Cr 8.86 × 10⁻³, Co 3.60 × 10⁻² M) at printed rounding; the example's alternative working misprints Cu. Compared on 61 cases (25 at the edges: 2 to 5 species, wavelength-count refusals, singular only after unit conversion, near-singular, pivoting, zero absorbance, tiny path, subnormal) with a second implementation in Python by a separate agent of the same model family; each reply checked by substitution at 50 digits.

Concentrations of 2 to 4 absorbing species from absorbances at exactly as many wavelengths: A(λ) = Σ εᵢ(λ)·b·Cᵢ solved exactly.

  • How results are reported: none: full double precision; exact rational elimination, so singularity, zeros and signs are decided exactly on each value as stated: the shortest decimal that reads back as the delivered double, times its unit's exact factor, after each ε is converted to L mol⁻¹ cm⁻¹ by its exact factor
  • Uncertainty: No uncertainty is propagated; near-alike spectra make the results depend strongly on small errors in absorbance, and no warning is given.
  • Reference, as its record states it: Harvey's printed Example 10.3.2 and Exercise 10.3.2, and the full check of 14 November 2026 (second implementation, edge cases)
  • Computes through: absorbance-mixture-solve@1.0.1
  • Level confirmed by this project's ruling of 14 November 2026

What this page can and cannot show

What was checked

97 cases in 2 files, linked by this exact version.

Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 64 agree within the tolerance the file states, 33 refuse as the case expects, 0 differ, 0 were not run.

  • File 1, 36 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-10
    • Reference: Python fractions (exact rational Gaussian elimination), CPython 3.13.18; licence PSF-2.0
    • Tolerance as the file states it: relative 1e-12 (absolute 1e-18 below 1e-6); statuses, codes, labels, flags and units exact
  • File 2, 61 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-14
    • Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
    • Tolerance as the file states it: concentrations relative 1e-12 (absolute 1e-24 M below 1e-12 M); flags, labels, statuses and codes exact

Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.

What was not checked

Least squares over more wavelengths than species; ill-conditioning (no sourced threshold); Beer's-law failures (stray or polychromatic light, concentrated solutions, interactions); mass absorptivities and transmittance (not accepted); uncertainty.

Definition or model

A closed form: the result follows from the inputs by the equations alone.

Equations

Equation 1

A_mix(λ) = Σᵢ εᵢ(λ) · b · Cᵢ
Symbol Meaning and unit
A_mix(λ) decadic absorbance of the mixture at λ, AU
εᵢ(λ) molar (decadic) absorption coefficient, L/(mol*cm)
b path length, cm
Cᵢ molar concentration, M

Source: Harvey D. Analytical Chemistry 2.1, LibreTexts, chapter 10, Spectroscopic Methods; CC BY-NC-SA 4.0, cited and not copied, equation 10.6, section Beer's Law and Multicomponent Samples, the LibreTexts page as retrieved (page metadata: modified 5 June 2026); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning f9d10170f1a1. Free to read (CC BY-NC-SA 4.0 (share-alike, non-commercial; held for the General Counsel)), checked 2026-11-10. No erratum found (searched the LibreTexts pages (no errata notice; two typos as published are recorded in S-HARVEY21; a third, found on re-reading on 14 November 2026: Example 10.3.2's alternative working prints C_Cu as 1.3 × 10⁻⁵, against 1.3 × 10⁻⁴ in the main working and in this method's computation; no published correction exists, and line 4 checks against 1.3 × 10⁻⁴)), 2026-11-14.

Equation 2

n species need absorbances at n wavelengths
the n equations are solved simultaneously
Symbol Meaning and unit
n number of species and of wavelengths, two to four
Cᵢ molar concentration of each species, M

Source: Harvey D. Analytical Chemistry 2.1, LibreTexts, chapter 10, Spectroscopic Methods; CC BY-NC-SA 4.0, cited and not copied, equation 10.1–10.2 of that section, section Quantitative Analysis of Mixtures, the LibreTexts page as retrieved (page metadata: modified 5 June 2026); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning ab525448a52c. Free to read (CC BY-NC-SA 4.0 (share-alike, non-commercial; held for the General Counsel)), checked 2026-11-10. No erratum found (searched the LibreTexts pages (no errata notice; two typos as published are recorded in S-HARVEY21; a third, found on re-reading on 14 November 2026: Example 10.3.2's alternative working prints C_Cu as 1.3 × 10⁻⁵, against 1.3 × 10⁻⁴ in the main working and in this method's computation; no published correction exists, and line 4 checks against 1.3 × 10⁻⁴)), 2026-11-14.

Equation 3

ε = A10 / (c · l)
the derivation 1 m² = 10⁴ cm² and 1 L = 10³ cm³, so 1 m² mol⁻¹ = 10 L mol⁻¹ cm⁻¹ (exact), is not at this locator, whose note 22 gives only the usual unit
Symbol Meaning and unit
ε molar (decadic) absorption coefficient, L/(mol*cm)
A10 decadic absorbance, AU
c amount concentration, M
l path length, cm

Source: IUPAC, Quantities, Units and Symbols in Physical Chemistry (the Green Book), 3rd ed., 2007 (2nd printing 2012), section §2.7, molar (decadic) absorption coefficient, 3rd edition, 2nd printing 2012 (searchable PDF); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning dc9cf52d6cf3. Free to read (free to read on iupac.org; © IUPAC (cited, not copied)), checked 2026-11-10. Erratum: Errata to the IUPAC Green Book, 3rd edition (2007): an English list reported February 2010 (ed. J. Stohner), known only through AIST NMIJ's Japanese-translation errata (December 2010), which cites it. Neither list read. The copy read (2nd printing, December 2012 searchable PDF) is taken as uncorrected. Whether any entry falls in §2.7 or §2.10 is unknown. For multicomponent absorbance, the definition ε = A10/(c·l) is matched by Harvey's Beer's law (eq 10.6), re-read 14 November 2026, and the computation rests on Harvey and on SI unit factors, not on Green Book text. For this method's mass fraction, the 2019 SI finding of that ruling does not reach it: n·A/M is invariant to the value taken for M_u, which cancels between numerator and denominator, so the reader checks only the definition w = m_B/m. (2026-11-14).

Constants

Constants: none used.

Worked example

Worked example: one case of multicomponent-absorbance@1.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • pathLength = 1 cm
  • species[0].label = X
  • species[1].label = Y
  • wavelengths[0].label = w1
  • wavelengths[0].absorbance = 0.12 AU
  • wavelengths[0].absorptivities[0].species = X
  • wavelengths[0].absorptivities[0].absorptivity = 1000 L/(mol*cm)
  • wavelengths[0].absorptivities[1].species = Y
  • wavelengths[0].absorptivities[1].absorptivity = 100 L/(mol*cm)
  • wavelengths[1].label = w2
  • wavelengths[1].absorbance = 0.1 AU
  • wavelengths[1].absorptivities[0].species = X
  • wavelengths[1].absorptivities[0].absorptivity = 200 L/(mol*cm)
  • wavelengths[1].absorptivities[1].species = Y
  • wavelengths[1].absorptivities[1].absorptivity = 800 L/(mol*cm)

Steps

  1. f = 0.2, from wavelengths; by a rule this method's record does not list as an equation.
  2. pivot = 780, from wavelengths, pathLength, f; by a rule this method's record does not list as an equation.
  3. rhs = 0.076, from wavelengths, f; by a rule this method's record does not list as an equation.
  4. Y = 0.000097435897 M, from pivot, rhs; by equation 2; gives concentrations[1].concentration.
  5. X = 0.00011025641 M, from wavelengths, pathLength, Y; by equation 2; gives concentrations[0].concentration.

The working, as the case writes it:

det = 1000x800 - 100x200 = 780000
CX = (0.12x800 - 100x0.10)/780000 = 86/780000 = 1.10256e-4 M
CY = (1000x0.10 - 200x0.12)/780000 = 76/780000 = 9.7436e-5 M.

Answer

  • concentrations[1].concentration = 0.000097435897 M
  • concentrations[0].concentration = 0.00011025641 M

Where these values came from: our own exact-arithmetic script and a hand-worked case; Harvey D. Analytical Chemistry 2.1, LibreTexts (pages last modified 12 September 2021), section 10.2 eq. 10.6 and section 10.3 eqs. 10.1-10.2; exact rationals.

At build the tool returned this answer within the tolerance the file states: relative 1e-12 (absolute 1e-18 below 1e-6); statuses, codes, labels, flags and units exact.

Who worked this case: not recorded.

What it refuses, and its input ranges

  • TOO_FEW_WAVELENGTHS: fewer wavelengths than species Next: Give absorbances at as many wavelengths as there are species.
  • MORE_WAVELENGTHS_THAN_SPECIES: more wavelengths than species: least squares is not offered at this version (no source on the method read) Next: Give absorbances at exactly as many wavelengths as there are species.
  • INVALID_STRING (invalid input): two species or two wavelengths share a label
  • OUT_OF_RANGE (invalid input): fewer than 2 or more than 4 species
  • MISSING_ARGUMENT (invalid input): a wavelength lacks an ε for a listed species, or gives one for an unlisted species

Flags and notes a reply may carry

A flag says a number must be read differently:

  • NEGATIVE_CONCENTRATION: A negative concentration is physically impossible: an assumption has failed (a wrong absorptivity, a species left out, a baseline offset or an interaction between species), not a finding that the species is absent.

Changes

No correction is logged for multicomponent-absorbance@1.0.1.

Tools that use it

Cite this version

Mixture concentrations from absorbance (additivity of Beer's law, square systems). Drybench; multicomponent-absorbance@1.0.1; https://www.drybench.com/methods/m/multicomponent-absorbance/1.0.1 (accessed [date]).