# Convex Hull Construction of Phase Diagrams

A visual introduction

## Common Tangent Construction

For a two-component system (component A and component B) with two phases (phase $$\alpha$$ and phase $$\beta$$), phase equilibria are established when 3 conditions are met:

1. $T^\alpha=T^\beta$
2. $P^\alpha=P^\beta$
3. $\mu^\alpha_A=\mu^\beta_A,\; \mu^\alpha_B=\mu^\beta_B$

All of these conditions give rise to the common tangent construction. Namely, the thermal and mechnical equilibria make sure the common tangent construction is valid only when there is no temperature or pressure gradient across different phases. The chemical potential equilibrium enforces that the partial differentials of $$\mu$$ with respect to component A and B have to be on the same line. For a binary system, the common tangent points are found by solving a system of two equations:

1. $\frac{\partial\mu^\alpha}{\partial X_B}\bigg|_{X_B^\alpha} = \frac{\partial\mu^\beta}{\partial X_B}\bigg|_{X_B^\beta}$
2. $\frac{\mu^\beta(X_B^\beta)-\mu^\alpha(X_B^\alpha)}{X_B^\beta-X_B^\alpha}=\frac{\partial\mu^\alpha}{\partial X_B}\bigg|_{X_B^\alpha} \text{ or } = \frac{\partial\mu^\beta}{\partial X_B}\bigg|_{X_B^\beta}$

The first equation means that the tangent lines of the $$\alpha$$ and $$\beta$$ evaluated at $$X_B^\alpha$$ and $$X_B^\beta$$ respectively are parallel. The second equation then ensures the two tangent lines coincide, satisfying the chemical potential equilibrium. Graphically, solving these two equations can be represented with the following animation.

It is also worth pointing out that the absolute values of the reference energies $$\mu^{oL}$$ and $$\mu^{oS}$$ of the pure components do not matter. What matters is the energy difference between the phases at pure components. As long as $$\mu^{oL}_A - \mu^{oS}_A$$ and $$\mu^{oL}_B - \mu^{oS}_B$$ stay fixed, the compositions of the common tangent points will stay put.

## Convex Hull Construction

Alternatively, finding the common tangent points can be reformulated as a convex hull problem. The convex hull is the smallest convex shape that can bound the Gibbs free energy curves. One can imagine pulling a string from below the Gibbs free energy curves. The string is being pulled up with a very strong force, such that it comes into very close contact with the gibbs energy curves. The shape formed after such close contact is the convex hull. Whenever there is a gap between the convex hull and the Gibbs free energy curves, there is a two-phase phase equilibrium, where the gap’s endpoints are equivalent to the common tangent points.

Now that we can find common tangents at a given temperature and pressure. If we fix pressure and now allow temperature to change, we can construct the familiar temperature-composition phase diagram.

## Isothermal Ternary Phase Diagram

The convex hull idea can be easily extended to higher dimensions. For a ternary system, the convex hull becomes a piece of cloth being pulled up against the Gibbs energy surfaces, rather than a string in the binary case. If we choose a certain pressure and temperature, we can visulize an isothermal section of the ternary phase diagram.

If we lower the temperature from 400K to 280K, the isothermal section changes to