This question already has an answer here:
Generally we use the gradient descent to compute the minimum of cost function. My question is why can't we use the maxima minima approach to calculate the cost function. If I am not wrong double derivative of the graph will give us the minima. And we would be able to avoid those gradient steps which are slow to execute. Please feel free If my understanding of the concept is wrong.