Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

10. Common tangents, binodals and binary phase diagrams

School of Engineering, Nazarbayev University

It is tempting to read the two local minima of an asymmetric double-well ΔG(x)\Delta G(x) curve, where ∂G/∂x=0\partial G / \partial x = 0, as the compositions of the two coexisting phases. That reading is wrong: two coexisting phases α\alpha and β\beta reach equilibrium only when both species share identical chemical potentials (μAα=μAβ\mu_A^\alpha = \mu_A^\beta and μBα=μBβ\mu_B^\alpha = \mu_B^\beta), which geometrically requires a common tangent, equivalently, the lower convex hull of all candidate free-energy curves. In this lecture we pair exact regular_solution_binodal bisection with the general monotone-chain convex-hull solver common_tangent_binodal, separate metastable nucleation-and-growth zones from unstable spinodal zones, and construct binary isomorphous liquidus–solidus lenses (isomorphous_phase_boundaries) for Cu–Ni and Ge–Si.

Learning objectives

  1. Derive Gibbs’s common-tangent condition from chemical-potential equality μAα=μAβ\mu_A^\alpha = \mu_A^\beta, μBα=μBβ\mu_B^\alpha = \mu_B^\beta and verify phase_thermodynamics.regular_solution_binodal.

  2. Apply the lower-convex-hull solver phase_thermodynamics.common_tangent_binodal to both single-curve miscibility gaps and two-phase (α/β\alpha / \beta) crystal equilibria.

  3. Distinguish stable single-phase, metastable nucleation-and-growth (xb<x<xsx_b < x < x_s, ∂2G/∂x2>0\partial^2 G/\partial x^2 > 0), and unstable spinodal (∂2G/∂x2<0\partial^2 G/\partial x^2 < 0) fields on a T–xT\text{–}x diagram.

  4. Compute Seltz binary isomorphous liquidus and solidus boundaries (isomorphous_phase_boundaries) for Cu–Ni and Ge–Si and relate lens width to entropy of fusion ΔSm\Delta S_m.

Time: about 60 min

1. Chemical-Potential Equality & Exact Regular-Solution Binodal

For two phases at compositions x1x_1 and x2x_2 to coexist in equilibrium at constant (T,P)(T, P), transferring dnAdn_A or dnBdn_B moles across the interface must produce zero Gibbs energy change (μA(x1)=μA(x2)\mu_A(x_1) = \mu_A(x_2) and μB(x1)=μB(x2)\mu_B(x_1) = \mu_B(x_2)). Recall from Lecture 9 that the tangent line to G(x)G(x) at x1x_1 has intercept μA(x1)\mu_A(x_1) at x=0x = 0 and μB(x1)\mu_B(x_1) at x=1x = 1. Two points share both intercepts if and only if they share the same tangent line.

∂Gα∂x∣x1=∂Gβ∂x∣x2=Gβ(x2)−Gα(x1)x2−x1(1.1)\left.\frac{\partial G^\alpha}{\partial x}\right|_{x_1} = \left.\frac{\partial G^\beta}{\partial x}\right|_{x_2} = \frac{G^\beta(x_2) - G^\alpha(x_1)}{x_2 - x_1} \tag{1.1}

For a symmetric regular solution (ΔGmix(x)=ΔGmix(1−x)\Delta G_{\mathrm{mix}}(x) = \Delta G_{\mathrm{mix}}(1 - x)), the common tangent is horizontal (∂ΔGmix/∂x=0\partial \Delta G_{\mathrm{mix}}/\partial x = 0), yielding the transcendental binodal equation (phase_thermodynamics.regular_solution_binodal):

ln⁡ ⁣(1−xbxb)=ΩRT(1−2xb),0<xb1<xs1<12<xs2<xb2=1−xb1(1.2)\ln\!\left(\frac{1 - x_b}{x_b}\right) = \frac{\Omega}{R T}(1 - 2 x_b), \qquad 0 < x_{b1} < x_{s1} < \frac{1}{2} < x_{s2} < x_{b2} = 1 - x_{b1} \tag{1.2}

Demonstration 1: Exact Regular-Solution Binodal vs Spinodal & Chemical-Potential Equality
=========================================================================================
Omega = 18000 J/mol | Tc = 1082.45 K
  T [K] |      x_b1 |      x_s1 |      x_s2 |      x_b2 | |dmu_A1-dmu_A2| | Metastable Width
----------------------------------------------------------------------------------------------
  550.0 |   0.02283 |   0.14932 |   0.85068 |   0.97717 |        2.66e-09 |          0.12649
  700.0 |   0.06268 |   0.20280 |   0.79720 |   0.93732 |        1.69e-09 |          0.14012
  850.0 |   0.13448 |   0.26830 |   0.73170 |   0.86552 |        5.57e-11 |          0.13382
 1000.0 |   0.26836 |   0.36200 |   0.63800 |   0.73164 |        1.68e-10 |          0.09364

What Demonstration 1 shows. At every subcritical temperature T<TcT < T_c, the binodal solvus compositions (xb1,xb2)(x_{b1}, x_{b2}) strictly enclose the spinodal (xs1,xs2)(x_{s1}, x_{s2}) and satisfy ∣Δμi(xb1)−Δμi(xb2)∣<3×10−9 J/mol|\Delta\mu_i(x_{b1}) - \Delta\mu_i(x_{b2})| < 3\times 10^{-9}\ \mathrm{J/mol}. In the metastable collar xb1<x<xs1x_{b1} < x < x_{s1}, the solid solution is locally stable against infinitesimal fluctuations (∂2G/∂x2>0\partial^2 G/\partial x^2 > 0) so phase separation requires overcoming a classical nucleation barrier.


2. General Lower-Convex-Hull Common-Tangent Solver (common_tangent_binodal)

When Gex(x)G^{\mathrm{ex}}(x) is skewed (L1≠0L_1 \neq 0) or when two distinct crystal structures compete, say FCC α\alpha with Gα(x)G^\alpha(x) vs. BCC β\beta with Gβ(x)G^\beta(x), the common tangent has a non-zero slope. Because any cord on the lower convex hull of min⁡ϕGϕ(x)\min_\phi G^\phi(x) that jumps across a non-convex region or switches phase (phase_left != phase_right) is automatically a global common tangent, Andrew’s O(N)O(N) monotone-chain algorithm (phase_thermodynamics.common_tangent_binodal) solves single-curve and two-curve equilibria without initial-guess sensitivity.


Demonstration 2: Lower-Convex-Hull Solver on Single-Curve Miscibility Gap & Two-Phase FCC/BCC Equilibrium
=========================================================================================================
Single-curve hull tie-line : [0.08247, 0.91753] vs exact [0.08231, 0.91769]
Two-phase FCC/BCC tie-line : x_FCC = 0.2534 (phase 0) <-> x_BCC = 0.7674 (phase 1) | slope = +261.4 J/mol
<Figure size 792x451 with 1 Axes>

Figure 10.1. Gibbs energies of two phases (assumed parameters), their lower convex hull and the common tangent between the two equilibrium compositions.

What Demonstration 2 shows. In Case B, neither GFCC(x)G^{\mathrm{FCC}}(x) nor GBCC(x)G^{\mathrm{BCC}}(x) has a horizontal common tangent: the global convex hull follows single-phase FCC up to xα=0.253x_\alpha = 0.253, bridges across the two-phase (α+β)(\alpha + \beta) field along a tilted common tangent (slope +261.4 J/mol+261.4\ \mathrm{J/mol}) to xβ=0.767x_\beta = 0.767, and then follows single-phase BCC to x=1x = 1.


3. Complete Miscibility-Gap Map & Seltz Isomorphous Phase Diagrams (Cu–Ni & Ge–Si)

When both liquid (LL) and solid (SS) behave as ideal solutions across (0,1)(0, 1) with pure-element melting points Tm,A,Tm,BT_{m,A}, T_{m,B} and enthalpies of fusion ΔHm,A,ΔHm,B\Delta H_{m,A}, \Delta H_{m,B}, equating μiS(T)=μiL(T)\mu_i^S(T) = \mu_i^L(T) (ΔGm,i(T)≈ΔHm,i(1−T/Tm,i)\Delta G_{m,i}(T) \approx \Delta H_{m,i}(1 - T/T_{m,i})) yields Seltz’s (1934) exact binary isomorphous lens equations (phase_thermodynamics.isomorphous_phase_boundaries):

ci(T)≡exp⁡ ⁣[ΔHm,iR(1T−1Tm,i)],xL(T)=1−cA(T)cB(T)−cA(T),xS(T)=cB(T) xL(T)(3.1)c_i(T) \equiv \exp\!\left[\frac{\Delta H_{m,i}}{R}\left(\frac{1}{T} - \frac{1}{T_{m,i}}\right)\right], \qquad x_L(T) = \frac{1 - c_A(T)}{c_B(T) - c_A(T)}, \qquad x_S(T) = c_B(T)\,x_L(T) \tag{3.1}

We plot both the T–xT\text{–}x miscibility-gap stability map (binodal vs. spinodal) and the binary isomorphous lenses of Cu–Ni and Ge–Si.


Demonstration 3: T-x Miscibility-Gap Regimes & Cu-Ni / Ge-Si Isomorphous Phase Lenses
=====================================================================================
Cu-Ni isomorphous max two-phase width max(x_S - x_L) = 0.0718
Ge-Si isomorphous max two-phase width max(x_S - x_L) = 0.2909
<Figure size 1056x451 with 2 Axes>

Figure 10.2. (a) Binodal and spinodal of a regular solution with the assumed Ω=18 kJ/mol\Omega = 18\ \mathrm{kJ/mol}. (b) Liquidus and solidus of Cu–Ni and Ge–Si from the ideal-solution model.

What Demonstration 3 shows. In panel (b), the two-phase (L+S)(L + S) lens of Ge–Si (max⁡(xS−xL)=0.291\max(x_S - x_L) = 0.291) is 4.1 times wider than that of Cu–Ni (max⁡(xS−xL)=0.072\max(x_S - x_L) = 0.072), although the two melting points differ by a similar amount in both systems. Section 4 examines the role of Richard’s entropy of fusion ΔSm=ΔHm/Tm\Delta S_m = \Delta H_m / T_m in Section 4.


4. Conceptual Exploration & Parameter Sensitivity (“What-If”: Entropy of Fusion ΔSm/R\Delta S_m / R)

Close-packed metals obey Richard’s rule (ΔSm=ΔHm/Tm≈1.1 R\Delta S_m = \Delta H_m / T_m \approx 1.1\,R), whereas tetrahedrally coordinated semiconductors (Si, Ge) collapse into higher-coordination metallic liquids on melting, releasing a large entropy of fusion (ΔSm≈3.6 R\Delta S_m \approx 3.6\,R). We fix Tm,A=1200 KT_{m,A} = 1200\ \mathrm{K} and Tm,B=1700 KT_{m,B} = 1700\ \mathrm{K} while sweeping ΔSm/R∈{1.0,2.0,3.5,5.0}\Delta S_m / R \in \{1.0, 2.0, 3.5, 5.0\}.


Demonstration 4: Sensitivity of Isomorphous Two-Phase Lens Width to Fusion Entropy dSm / R
==========================================================================================
  dSm / R |  dHm_A [kJ/mol] |  dHm_B [kJ/mol] | Max Lens Width (x_S - x_L)
--------------------------------------------------------------------------
     1.00 |            9.98 |           14.13 |                     0.0866
     2.00 |           19.95 |           28.27 |                     0.1720
     3.50 |           34.92 |           49.47 |                     0.2949
     5.00 |           49.89 |           70.67 |                     0.4087

Inside the algorithm

In Demonstration 4, increasing the dimensionless entropy of fusion ΔSm/R\Delta S_m / R from 1.0 (simple metals) to 5.0 (covalent/molecular crystals) expands the two-phase solidification lens nearly five-fold, from 0.087 to 0.409, directly amplifying compositional partitioning k=xS/xLk = x_S / x_L during crystal growth.

Below we inspect phase_thermodynamics.common_tangent_binodal and phase_thermodynamics.isomorphous_phase_boundaries and verify the 2D cross-product convexity test from scratch.

Check against the library


Inside the Algorithm: common_tangent_binodal & isomorphous_phase_boundaries
===========================================================================
def common_tangent_binodal(
    x_grid: np.ndarray,
    g_alpha: np.ndarray,
    g_beta: np.ndarray | None = None,
) -> dict:
    """Construct lower convex hull of one or two Gibbs curves to locate common-tangent two-phase tie-lines."""
    xg = np.asarray(x_grid, dtype=float).ravel()
    ga = np.asarray(g_alpha, dtype=float).ravel()
    if xg.size != ga.size or xg.size < 4:
        raise ValueError("x_grid and g_alpha must be 1-D arrays of equal length >= 4.")

    if g_beta is None:
        pts = [(float(xg[i]), float(ga[i]), 0, i) for i in range(xg.size)]
    else:
        gb = np.asarray(g_beta, dtype=float).ravel()
        if gb.size != xg.size:
            raise ValueError("g_beta must match x_grid length.")
        pts = [(float(xg[i]), float(ga[i]), 0, i) for i in range(xg.size)] + [
            (float(xg[i]), float(gb[i]), 1, i) for i in range(xg.size)
        ]

    pts.sort(key=lambda p: (p[0], p[1]))

    hull: list[tuple[float, float, int, int]] = []
    for pt in pts:
        if hull and abs(hull[-1][0] - pt[0]) < 1e-14:
            continue
        while len(hull) >= 2:
            x1, y1, _, _ = hull[-2]
            x2, y2, _, _ = hull[-1]
            x3, y3, _, _ = pt
            cross = (x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1)
            if cross <= 1e-15:
                hull.pop()
            else:
                break
        hull.append(pt)

    dx_grid = float(np.max(np.diff(np.sort(xg))))
    tie_lines = []
    for k in range(len(hull) - 1):
        p1, p2 = hull[k], hull[k + 1]
        is_jump = (p1[2] != p2[2]) or ((p2[0] - p1[0]) > 2.5 * dx_grid)
        if is_jump:
            slope = (p2[1] - p1[1]) / (p2[0] - p1[0])
            intercept = p1[1] - slope * p1[0]
            tie_lines.append(
                {
                    "x_left": p1[0],
                    "x_right": p2[0],
                    "g_left": p1[1],
                    "g_right": p2[1],
                    "phase_left": p1[2],
                    "phase_right": p2[2],
                    "tangent_slope": slope,
                    "mu_A_eq": intercept,
                    "mu_B_eq": intercept + slope,
                }
            )
    return {
        "hull_x": np.array([p[0] for p in hull], dtype=float),
        "hull_g": np.array([p[1] for p in hull], dtype=float),
        "tie_lines": tie_lines,
    }

Cu-Ni at 1550 K: x_liquidus = 0.474797, x_solidus = 0.545992 (exact match to 1e-15).

Exercises

Worked solutions are in 10_solutions.ipynb. The cell below the list is a short self-check to start from.

  1. Verify a result. Verify on an asymmetric Redlich–Kister curve (L0=20 000,L1=−4 500 J/mol,T=800 KL_0 = 20\,000, L_1 = -4\,500\ \mathrm{J/mol}, T = 800\ \mathrm{K}) that common_tangent_binodal yields mu_A_eq and mu_B_eq matching analytical dmu_A, dmu_B at both tie-line endpoints, and verify Seltz’s partition identities (1−xS)/(1−xL)=cA(T)(1-x_S)/(1-x_L) = c_A(T) and xS/xL=cB(T)x_S/x_L = c_B(T) across Cu–Ni to 10-14.

  2. Find how it fails. Demonstrate the local-minima fallacy on G(x)=2000x+ΔGRK(x;T=700 K,L0=22 000,L1=−3 000)G(x) = 2000 x + \Delta G_{\mathrm{RK}}(x; T=700\ \mathrm{K}, L_0=22\,000, L_1=-3\,000): find the two local minima where ∂G/∂x=0\partial G/\partial x = 0, compare them with the true common_tangent_binodal tie-line, and show that the common tangent yields a strictly lower two-phase Gibbs energy at x0=0.50x_0 = 0.50.

  3. Implement it yourself. Implement hull_isomorphous_tie_line(T_K, Tm_A, dHm_A, Tm_B, dHm_B, n_grid=4000) by constructing GL(x,T)=RT[xln⁡x+(1−x)ln⁡(1−x)]G^L(x, T) = R T[x\ln x + (1-x)\ln(1-x)] and GS(x,T)=−(1−x)ΔHm,A(1−T/Tm,A)−xΔHm,B(1−T/Tm,B)+GL(x,T)G^S(x, T) = -(1-x)\Delta H_{m,A}(1 - T/T_{m,A}) - x\Delta H_{m,B}(1 - T/T_{m,B}) + G^L(x, T) and calling common_tangent_binodal(x_grid, G_L, G_S). Verify agreement with isomorphous_phase_boundaries across 6 Cu–Ni temperatures to < 1e-3.


Self-check for the exercises
============================
800 K Binodal [0.106 0.894] encloses Spinodal [0.2446 0.7554] | Cu-Ni(1550 K): xL=0.475, xS=0.546.
All checks passed.