Numerical methods are used to solve multidimensional problems, finding the extremum of a function determines either the maximum or minimum values. The functions could take on the algorithm search of the bracketing, naive search, or modified secant method. We apply the extremum to the Gradient Descent Method to find the minimum of a vector-valued function by multiplying the gradient with a step size; we get the step size as a dynamic alpha from the algorithm search iterations.
Bracketing Method: Bisection and False-Position
The Bracketing Method consists of the Bisection Method and False-Position Method, both are similar in operation except for it's formula.
- Choose any x_vector =〈x1, x2, ..., xn〉
- Calculate ∇f(x_vector)=〈fx1, fx2, ..., fn〉
- Calculate x_vector_new = x_vector - ∇f(x_vector)alpha
- Repeat until ||∇f(x_vector)|| < e, where e is a small number.
- Choose a function and two inital x: f(x), x1, x2
- Bisection Formula: x_new = x1+x2/2 || False-Position Formula: x_new = x2 - (f(x2)(x1-x2)/f(x1)-f(x2))
- Check if f'(new) > 0 OR f'(new) is < 0.
- Then determine if x_new = x1 OR x2 depedning on the f'(new)'s sign.
- Repeat Step 2 until f'(x_new) < e, where e is a small number.
- Bisection Method: f(x) = x^3 - x - 1, x1 = 1 and x2 = 2
- False-Position Method: f(x) = 2x^3 - 2x - 5, x1 = -5 and x2 = unknown
- Gradient Descent Method: f(x,y) = x^2 + y^2 + x + y + 6, x = -1, y = 1, constant alpha = 0.1, dynamic alpha = *depends on the Bracketing Iterations