ok. thanks. that would be x=1
one other question, is there a way to find the relative minimum analytically?
in this case, that option is not recommended. you will have to define it as a piece-wise function (here, it would have 4 pieces) and differentiate each piece and so on. too much work