Help me with the optimization of functions of two variables in Matlab.

Need to:

1. Find the zeros of the method of optimizing the 'active-set'

2. Find extrema of the function by the method of optimization 'trust-region-reflective'

Prompt where to start? Had never before met with optimization ...