I am trying to understand gradient descent algorithm by plotting the error vs value of parameters in the function. What would be an example of a simple function of the form y = f(x) with just just one input variable x and two parameters w1 and w2 such that its loss function has multiple minima? What i am trying to achieve is something similar to this :
How does one know if the function has multiple minima without plotting the graph ? What branch of mathematics deals with this topic ?