Text this: Variational approach to the solution of the torsion problem