Defining intermediate operations

We can indeed reduce the number of operation to half of those listed in the brute force approach above. We define the following quantities

$$ a = x^2, $$

and

$$ b = \exp{x^2} = \exp{a}, $$

and

$$ c= a+b, $$

and

$$ d=f(x)=\sqrt{c}. $$