If we are using Newton's method (or gradient descent), how do we find a maximum instead of a minimum?

If we are using Newton's method (or gradient descent), how do we find a maximum instead of a minimum?
You can still ask an expert for help

• Questions are typically answered in as fast as 30 minutes

Solve your problem for the price of one coffee

• Math expert for every subject
• Pay only if we can solve it

Jaycee Figueroa
Yes, that's exactly what you do. You can think of this sign change as causing you to perform gradient ascent instead of gradient descent (in the case of using a gradient method). Alternatively, you can think of flipping the sign in a gradient method as performing gradient descent in $-f$. By finding a minimum of $-f$ you find a maximum of $f$.
Similar reasoning holds for Newton's method (and various other methods as well).