First of all $f$ must be a real valued function. In order to find min/max you need to study the graph of $f$ and see where it is monotone (increasing, decreasing).
In order to do that usually you find the sign of the $f'$ and its roots. The roots of $f'$ are possible min/max of $f$. So you find the roots and draw a small table with rows $x, f(x),f'(x)$ and you mark the roots of $f'$ and the values of $x$ for which $f$ or $f'$ are not well defined.
You put a + (-) sign where $f'$ is positive and this is where f is increasing (decreasing).
If at a root of $f'$ there is a change of sign then you have a min/max.
The arrows in the table mean decreasing and increasing respectively.
You need to read some simple textbook describing how to find min/max in the way you want