A relative maximum is a point where the function changes its direction from increasing to decreasing.
And a relative minimum is the opposite, is the point where the function changes from decreasing to increasing.
Thus, in the given function the relative maximum are:
And its relative minimums are: