Given a continuous function #f(x)# a closed interval #[a, b]#, any extrema will occur either at an endpoint or a critical point, that is, a point where #f'(x)=0# or a point at which #f'(x)# does not exist.
In our case, we have #f(-x) = xe^((-x)^2/128)#, meaning #f(x) = -xe^(x^2/128)#.
Differentiating, we can use the product rule and the chain rule to get
#f'(x) = d/dx -xe^(x^2/128)#
#=-x(d/dxe^(x^2/128))+e^(x^2/128)(d/dx-x)#
#=-x[e^(x^2/128)(d/dxx^2/128)]+e^(x^2/128)(-1)#
#=-xe^(x^2/128)(x/64)-e^(x^2/128)#
#=-e^(x^2/128)(x^2/64+1)#
As this is defined for all real numbers, we only need look for points at which #f'(x) = 0#. Doing so, we get
#-e^(x^2/128)(x^2/64 + 1) = 0#
As #e^(x^2/128) > 0# for all real numbers, #x^2/64+1 > x^2/64 >= 0# for all real numbers, and the product of two nonzero values is nonzero, we know that there are no real solutions to the above. Thus, our function has no critical points.
As our function has no critical points on #[-4, 16]# (or anywhere, for that matter), its extrema must occur at the endpoints. Evaluating, we get
#f(-4) = 4e^((-4)^2/128) = 4e^(1/8)#
#f(16) = -16e^(16^2/128) = -16e^2#
So the above are the extrema of the function on #[-4, 16]#, giving us our answer:
#f(-4) = 4e^(1/8)# is the maximum value of #f# on #[-4, 16]#
and
#f(16) = -16e^2# is the minimum value of #f# on #[-4, 16]#