1) The derivative does not exist at an endpoint.
2) Nothing can "change" at an endpoint, since there is only one side.
3) Extrema can occur at endpoints, but the calculus will find them only by design or coincidence. You must check the endpoints yourself.