Pre-computation for line searches. For each of the following functions, explain how the computational cost of a line search can be reduced by a pre-computation. Give the cost of the pre-computation, and the cost of evaluating g(t)=f(x+tΔx) and g′(t) with and without the pre-computation.
((a)) f(x)=−∑i=1mlog(bi−aiTx).
((b)) f(x)=log(∑i=1mexp(aiTx+bi)).
((c)) f(x)=(Ax−b)T(P0+x1P1+⋯+xnPn)−1(Ax−b), where Pi∈Sm, A∈Rm×n, b∈Rm and domf={x∣P0+∑i=1nxiPi≻0}.