Build first-order (linear) and second-order (quadratic) Taylor approximations of a loss function at a given point.