The Mathematics of Modelling Directional Wells