Integration in Finite Terms with Special Functions: the Error Function