Each formula is shown three ways: (1) rendered equation, (2) the LaTeX code to reproduce it in Obsidian or Overleaf, (3) MATLAB code to compute it numerically. MATLAB's Symbolic Math Toolbox commands are included where symbolic manipulation is useful.
| Constant | Symbol | Value | MATLAB |
|---|---|---|---|
| Avogadro's number | $N_A$ | $6.022 \times 10^{23}$ mol$^{-1}$ | NA = 6.022e23; |
| Gas constant | $R$ | $8.314$ J/(mol·K) | R = 8.314; |
| Gas constant (atm) | $R$ | $0.08206$ L·atm/(mol·K) | R_atm = 0.08206; |
| Boltzmann constant | $k_B$ | $1.381 \times 10^{-23}$ J/K | kB = 1.381e-23; |
| Planck's constant | $h$ | $6.626 \times 10^{-34}$ J·s | h = 6.626e-34; |
| Speed of light | $c$ | $2.998 \times 10^8$ m/s | c = 2.998e8; |
| Faraday constant | $F$ | $96{,}485$ C/mol | F = 96485; |
| Elementary charge | $e$ | $1.602 \times 10^{-19}$ C | e_charge = 1.602e-19; |
| Electron mass | $m_e$ | $9.109 \times 10^{-31}$ kg | me = 9.109e-31; |
| Rydberg constant | $R_H$ | $1.097 \times 10^7$ m$^{-1}$ | RH = 1.097e7; |
| Standard pressure | — | $1$ atm $= 101.325$ kPa $= 760$ mmHg | P_std = 101325; |
| Standard temperature | — | $0°$C $= 273.15$ K | T_std = 273.15; |
| Molar volume (STP) | $V_m$ | $22.414$ L/mol | Vm = 22.414; |
LaTeX: T_K = T_C + 273.15
T_C = 25;
T_K = T_C + 273.15; % 298.15 K
T_F = (9/5)*T_C + 32; % 77 °F
P_atm = 2.5;
P_kPa = P_atm * 101.325; % 253.3 kPa
P_mmHg = P_atm * 760; % 1900 mmHg
P_psi = P_atm * 14.696; % 36.74 psi
LaTeX: E = h\nu = \frac{hc}{\lambda}
h = 6.626e-34; c = 2.998e8;
lambda = 550e-9; % 550 nm (green light)
nu = c / lambda; % 5.45e14 Hz
E = h * nu; % 3.61e-19 J per photon
E_eV = E / 1.602e-19; % 2.25 eV
Every particle has wave-like behavior. $m$ = mass, $v$ = velocity, $p$ = momentum.
h = 6.626e-34; me = 9.109e-31; v = 1e6; % electron at 10^6 m/s
lambda = h / (me * v); % 7.27e-10 m = 0.727 nm
$n_1 = 1$: Lyman (UV). $n_1 = 2$: Balmer (visible). $n_1 = 3$: Paschen (IR).
RH = 1.097e7;
n1 = 2; n2 = 3; % Balmer series, H-alpha
inv_lambda = RH*(1/n1^2 - 1/n2^2);
lambda = 1/inv_lambda; % 6.56e-7 m = 656 nm (red)
n_i = 3; n_f = 1;
dE = -2.18e-18 * (1/n_f^2 - 1/n_i^2); % -1.94e-18 J (emitted)
LaTeX: \Delta x \cdot \Delta p \geq \frac{h}{4\pi}
| Name | Symbol | Values | Determines |
|---|---|---|---|
| Principal | $n$ | $1, 2, 3, \ldots$ | Energy level / shell |
| Angular momentum | $\ell$ | $0, 1, \ldots, n-1$ | Subshell shape (s, p, d, f) |
| Magnetic | $m_\ell$ | $-\ell, \ldots, 0, \ldots, +\ell$ | Orbital orientation |
| Spin | $m_s$ | $+\frac{1}{2}, -\frac{1}{2}$ | Electron spin |
Max electrons per shell: $2n^2$. Max per subshell: $2(2\ell + 1)$.
n = 3;
max_electrons_shell = 2*n^2; % 18
for ell = 0:n-1
max_sub = 2*(2*ell+1);
fprintf('l=%d: %d electrons\n', ell, max_sub)
end
$n$ = moles, $m$ = mass (g), $M$ = molar mass (g/mol), $N$ = number of particles.
m = 36; % grams of water
M_H2O = 2*1.008 + 16.00; % 18.016 g/mol
n = m / M_H2O; % 1.998 mol
N = n * 6.022e23; % 1.203e24 molecules
LaTeX: M = \frac{n}{V} (note: $M$ for molarity, not to be confused with molar mass)
n_solute = 0.5; % 0.5 mol NaCl
V_liters = 0.25; % 250 mL = 0.25 L
Molarity = n_solute / V_liters; % 2.0 M
M1 = 12; V1_needed = []; % 12 M stock HCl
M2 = 1.5; V2 = 0.500; % want 500 mL of 1.5 M
V1 = M2*V2/M1; % 0.0625 L = 62.5 mL of stock
% Percent oxygen in H2O
n_O = 1; A_O = 16.00; M_H2O = 18.016;
pct_O = (n_O * A_O / M_H2O) * 100; % 88.8%
% 2H₂ + O₂ → 2H₂O
n_H2 = 3; n_O2 = 1;
% H2 needs O2 in 2:1 ratio → need 1.5 mol O2 but have 1
% O2 is limiting
n_H2O_theor = n_O2 * (2/1); % 2 mol H2O
actual = 30; % 30 g actual yield
theoretical = n_H2O_theor * 18.016; % 36.03 g
pct_yield = actual/theoretical*100; % 83.3%
% Compound is 40.0% C, 6.7% H, 53.3% O. M = 180 g/mol
m_C = 40.0; m_H = 6.7; m_O = 53.3;
mol_C = m_C/12.01; mol_H = m_H/1.008; mol_O = m_O/16.00;
min_mol = min([mol_C mol_H mol_O]);
ratio = [mol_C mol_H mol_O] / min_mol; % [1 2 1] → CH₂O
M_emp = 12.01 + 2*1.008 + 16.00; % 30.03
n = round(180 / M_emp); % 6
% Molecular formula: C₆H₁₂O₆ (glucose)
$P$ in atm, $V$ in L, $n$ in mol, $R = 0.08206$ L·atm/(mol·K), $T$ in K. Or: $P$ in Pa, $V$ in m³, $R = 8.314$ J/(mol·K).
n = 2; T = 300; R = 0.08206; % 2 mol, 300 K
P = 1; % 1 atm
V = n*R*T/P; % 49.24 L
P1 = 1; V1 = 10; T1 = 300;
P2 = 2; T2 = 450;
V2 = P1*V1*T2 / (T1*P2); % 7.5 L
| Law | Equation | Held Constant |
|---|---|---|
| Boyle's | $P_1 V_1 = P_2 V_2$ | $T$, $n$ |
| Charles's | $\frac{V_1}{T_1} = \frac{V_2}{T_2}$ | $P$, $n$ |
| Gay-Lussac's | $\frac{P_1}{T_1} = \frac{P_2}{T_2}$ | $V$, $n$ |
| Avogadro's | $\frac{V_1}{n_1} = \frac{V_2}{n_2}$ | $P$, $T$ |
$x_i$ = mole fraction of gas $i$.
n = [0.5 0.3 0.2]; % moles of 3 gases
x = n / sum(n); % mole fractions
P_total = 2; % 2 atm total
P_partial = x * P_total; % [1.0, 0.6, 0.4] atm
Lighter gases effuse faster. $r$ = rate, $M$ = molar mass.
M_H2 = 2.016; M_O2 = 32.00;
ratio = sqrt(M_O2/M_H2); % 3.99 → H₂ effuses ~4× faster
$a$ corrects for intermolecular attractions. $b$ corrects for molecular volume.
LaTeX: \left(P + \frac{an^2}{V^2}\right)(V - nb) = nRT
% CO₂: a = 3.59 L²atm/mol², b = 0.0427 L/mol
a = 3.59; b = 0.0427; n = 1; R = 0.08206; T = 500;
% Solve for V numerically using fzero
f = @(V) (1 + a*n^2/V^2)*(V - n*b) - n*R*T; % simplified
% V_ideal = nRT/P as starting guess
$M$ must be in kg/mol (not g/mol). $R = 8.314$ J/(mol·K).
R = 8.314; T = 300; M = 0.032; % O₂ in kg/mol
v_rms = sqrt(3*R*T/M); % 483.6 m/s
v_avg = sqrt(8*R*T/(pi*M)); % 445.6 m/s
v_mp = sqrt(2*R*T/M); % 394.8 m/s
kB = 1.381e-23; T = 300;
KE = 1.5 * kB * T; % 6.21e-21 J per molecule
$\Delta U$ = internal energy change, $q$ = heat, $w$ = work. Sign convention: $q > 0$ = heat absorbed, $w > 0$ = work done on system.
$c$ = specific heat (J/(g·K)), $C$ = molar heat capacity (J/(mol·K)).
m = 100; c = 4.184; dT = 25; % 100g water, heated 25°C
q = m * c * dT; % 10,460 J = 10.46 kJ
% CH₄ + 2O₂ → CO₂ + 2H₂O
dHf_CO2 = -393.5; dHf_H2O = -285.8; % kJ/mol
dHf_CH4 = -74.8; dHf_O2 = 0;
dH_rxn = (1*dHf_CO2 + 2*dHf_H2O) - (1*dHf_CH4 + 2*dHf_O2);
% -890.3 kJ/mol (exothermic)
$\Delta G < 0$: spontaneous. $\Delta G > 0$: non-spontaneous. $\Delta G = 0$: equilibrium.
dH = -890.3e3; dS = -242.2; T = 298; % J and J/K
dG = dH - T*dS; % -817,985 J (spontaneous)
$Q$ = reaction quotient, $K$ = equilibrium constant. At equilibrium: $Q = K$, $\Delta G = 0$.
R = 8.314; T = 298;
dG0 = -33.0e3; % -33.0 kJ/mol
K = exp(-dG0/(R*T)); % 6.48e5
m_water = 500; c = 4.184; C_cal = 850; % J/°C
dT = 3.2;
q_rxn = -(m_water*c*dT + C_cal*dT); % -9,414 J
Breaking bonds requires energy (positive). Forming bonds releases energy (negative).
$k$ = rate constant, $m$ and $n$ = reaction orders (determined experimentally, not from coefficients).
| Order | Integrated Law | Linear Plot | Half-Life |
|---|---|---|---|
| Zero | $[A] = [A]_0 - kt$ | $[A]$ vs. $t$ | $t_{1/2} = \frac{[A]_0}{2k}$ |
| First | $\ln[A] = \ln[A]_0 - kt$ | $\ln[A]$ vs. $t$ | $t_{1/2} = \frac{\ln 2}{k}$ |
| Second | $\frac{1}{[A]} = \frac{1}{[A]_0} + kt$ | $\frac{1}{[A]}$ vs. $t$ | $t_{1/2} = \frac{1}{k[A]_0}$ |
% First-order decay
A0 = 0.5; k = 0.03; % M, s⁻¹
t = linspace(0, 200, 500);
A = A0 * exp(-k*t); % [A] over time
t_half = log(2)/k; % 23.1 s
Two-temperature form (find $E_a$ from two data points):
k1 = 0.005; T1 = 300; k2 = 0.08; T2 = 350; R = 8.314;
Ea = R * log(k2/k1) / (1/T1 - 1/T2); % 52,660 J/mol = 52.7 kJ/mol
% Predict k at new temperature
T3 = 400;
k3 = k1 * exp((Ea/R)*(1/T1 - 1/T3)); % 0.765 s⁻¹
t_half = 5730; % C-14 half-life (years)
lambda = log(2)/t_half;
N0 = 1000; t = 11460; % 2 half-lives
N = N0 * exp(-lambda*t); % 250 (as expected: 1/4 remaining)
For $aA + bB \rightleftharpoons cC + dD$. Pure solids and liquids are omitted.
Kc = 0.042; R = 0.08206; T = 500;
dn = 2 - 3; % example: 3 mol gas → 2 mol gas
Kp = Kc * (R*T)^dn; % 1.02e-3
K1 = 1.5e5; T1 = 298; T2 = 350; dH = -92.2e3; R = 8.314;
K2 = K1 * exp((-dH/R)*(1/T2 - 1/T1)); % 5.96e3 (K decreases for exothermic)
H = 3.5e-4; % [H+] in mol/L
pH = -log10(H); % 3.46
pOH = 14 - pH; % 10.54
OH = 10^(-pOH); % 2.88e-11 M
For weak acid $HA$ at concentration $C$ (assuming $x \ll C$):
Ka = 1.8e-5; C = 0.1; % acetic acid, 0.1 M
H = sqrt(Ka * C); % 1.34e-3 M
pH = -log10(H); % 2.87
pct_ionization = (H/C)*100; % 1.34%
Kb = 1.8e-5; C = 0.15; % ammonia, 0.15 M
OH = sqrt(Kb * C);
pOH = -log10(OH);
pH = 14 - pOH; % 11.21
For a base buffer: $\text{pOH} = \text{p}K_b + \log\frac{[\text{BH}^+]}{[\text{B}]}$
pKa = 4.74; % acetic acid
conc_A = 0.20; conc_HA = 0.15; % conjugate base, acid
pH = pKa + log10(conc_A/conc_HA); % 4.87
Each successive ionization is weaker. For $\text{H}_3\text{PO}_4$: $K_{a1} = 7.5 \times 10^{-3}$, $K_{a2} = 6.2 \times 10^{-8}$, $K_{a3} = 4.8 \times 10^{-13}$. The first ionization dominates the pH.
Ma = 0.1; Va = 25e-3; % 25 mL of 0.1 M acid
Mb = 0.15;
Vb = Ma*Va/Mb; % 16.67 mL base to equivalence
% AgCl ⇌ Ag⁺ + Cl⁻, Ksp = 1.8e-10
Ksp = 1.8e-10;
s = sqrt(Ksp); % 1.34e-5 M (molar solubility)
% Ca₃(PO₄)₂ ⇌ 3Ca²⁺ + 2PO₄³⁻, Ksp = 2.07e-33
Ksp = 2.07e-33;
% Ksp = (3s)^3 * (2s)^2 = 108 s^5
s = (Ksp/108)^(1/5); % 1.14e-7 M
% AgCl in 0.1 M NaCl solution
Ksp = 1.8e-10; C_Cl = 0.1;
s = Ksp / C_Cl; % 1.8e-9 M (much less soluble!)
| Unit | Formula | MATLAB |
|---|---|---|
| Molarity ($M$) | $\frac{\text{mol solute}}{\text{L solution}}$ | M = n/V; |
| Molality ($m$) | $\frac{\text{mol solute}}{\text{kg solvent}}$ | m = n/kg_solvent; |
| Mole fraction | $x_i = \frac{n_i}{\sum n}$ | x = n_i/sum(n); |
| Mass percent | $\frac{m_{\text{solute}}}{m_{\text{total}}} \times 100$ | pct = m_s/m_t*100; |
| ppm | $\frac{m_{\text{solute}}}{m_{\text{total}}} \times 10^6$ | ppm = m_s/m_t*1e6; |
P0 = 23.8; % vapor pressure of pure water at 25°C (mmHg)
x_solvent = 0.98;
P_soln = x_solvent * P0; % 23.3 mmHg
$i$ = van't Hoff factor (1 for non-electrolytes, 2 for NaCl, 3 for CaCl₂, etc.). $K_b$, $K_f$ = ebullioscopic/cryoscopic constants. $m$ = molality.
% NaCl in water (i=2)
i = 2; Kf = 1.86; Kb = 0.512; % water constants (°C/m)
m = 0.5; % 0.5 molal
dTf = i*Kf*m; % 1.86 °C depression
dTb = i*Kb*m; % 0.512 °C elevation
fp = 0 - dTf; % -1.86 °C
bp = 100 + dTb; % 100.51 °C
$\Pi$ = osmotic pressure (atm), $M$ = molarity, $R = 0.08206$ L·atm/(mol·K).
i = 1; M_conc = 0.2; R = 0.08206; T = 298;
Pi = i*M_conc*R*T; % 4.89 atm
$C$ = dissolved gas concentration, $k_H$ = Henry's law constant, $P_{\text{gas}}$ = partial pressure.
kH = 3.4e-2; % O₂ in water, mol/(L·atm)
P_O2 = 0.21; % atm in air
C = kH * P_O2; % 7.14e-3 M dissolved O₂
Cathode = reduction (gains electrons). Anode = oxidation (loses electrons). $E^\circ_{\text{cell}} > 0$ means spontaneous.
E_cathode = 0.34; % Cu²⁺/Cu
E_anode = -0.76; % Zn²⁺/Zn
E_cell = E_cathode - E_anode; % 1.10 V
Often written with $\log_{10}$: $E = E^\circ - \frac{0.0592}{n}\log Q$
E0 = 1.10; n = 2; T = 298;
R = 8.314; F_const = 96485;
Q = 0.01; % reaction quotient
E = E0 - (R*T/(n*F_const))*log(Q); % 1.16 V
n = 2; F_const = 96485; E0 = 1.10;
dG0 = -n * F_const * E0; % -212,267 J = -212.3 kJ
n = 2; F_const = 96485; E0 = 1.10; R = 8.314; T = 298;
K = exp(n*F_const*E0/(R*T)); % 1.69e37
$m$ = mass deposited (g), $M$ = molar mass, $I$ = current (A), $t$ = time (s), $n$ = electrons transferred.
M_Cu = 63.55; I = 5; t = 3600; % 5 A for 1 hour
n = 2; F_const = 96485; % Cu²⁺ + 2e⁻ → Cu
m = M_Cu*I*t/(n*F_const); % 5.93 g copper deposited
$A$ = activity (disintegrations/sec = Bq), $\lambda$ = decay constant.
t_half = 5730*365.25*24*3600; % C-14 half-life in seconds
lambda = log(2)/t_half;
N0 = 1e12; % initial atoms
t = 5730*365.25*24*3600; % 1 half-life
N = N0 * exp(-lambda*t); % 5e11 (half remaining)
A = lambda * N; % activity in Bq
$\Delta m$ = mass defect (kg), $c = 2.998 \times 10^8$ m/s. Often $\Delta m$ in amu: $1 \text{ amu} = 931.5$ MeV.
dm_amu = 0.0304; % mass defect for He-4
E_MeV = dm_amu * 931.5; % 28.3 MeV binding energy
$A$ = mass number (protons + neutrons). Peak stability: Fe-56 at 8.79 MeV/nucleon.
dm = 0.0304; A = 4; % He-4
BE_per_nucleon = dm*931.5/A; % 7.07 MeV/nucleon
| Type | Particle | Symbol | $\Delta Z$ | $\Delta A$ |
|---|---|---|---|---|
| Alpha | He-4 nucleus | ${}^4_2\text{He}$ or $\alpha$ | $-2$ | $-4$ |
| Beta minus | Electron | ${}^0_{-1}e$ or $\beta^-$ | $+1$ | $0$ |
| Beta plus | Positron | ${}^0_{+1}e$ or $\beta^+$ | $-1$ | $0$ |
| Gamma | Photon | $\gamma$ | $0$ | $0$ |
| Electron capture | Inner electron | EC | $-1$ | $0$ |
LaTeX for isotope notation: {}^{A}_{Z}\text{X} renders as ${}^{A}_{Z}\text{X}$, e.g., {}^{238}_{92}\text{U} → ${}^{238}_{92}\text{U}$
t_half = 5730; % years
lambda = log(2)/t_half;
A0 = 15.3; % modern activity (dpm/g)
A = 9.8; % sample activity
t = (1/lambda)*log(A0/A); % 3,690 years old
$Q > 0$: exothermic (releases energy). $Q < 0$: endothermic (requires energy input).
Many of these formulas directly use the algebra you've been studying:
Logarithms: pH, pK, Arrhenius equation, Nernst equation, radioactive decay dating, decibels
Exponentials: First-order kinetics, radioactive decay, Arrhenius temperature dependence, Boltzmann distribution
Quadratics: Weak acid/base equilibrium (ICE tables), multi-ion solubility products
Systems of equations: Hess's Law (combining reactions), partial pressure calculations, buffer problems
Rational expressions: Rate laws, equilibrium expressions, van der Waals equation