How do you find local maximum value of f using the first and second derivative tests: #f(x)=x+sqrt(2-x)#?

1 Answer
Feb 6, 2017

See below.

Explanation:

Domain of #f# is #(-oo,2]#

#f'(x) = 1-1/(2sqrt(2-x)) = (2sqrt(2-x)-1)/(2sqrt(2-x))#

#f'# is undefined at #2# and is #0# at #7/4#. So the critical numbers are #2# and #7/4#.

(Some do not apply the term "critical number" at an endpoint of the domain.)

Using the First Derivative Test

On #(-oo,7/4)# we have #f'(x) > 0# and

on #(7/4,2)#, #f'(x) < 0#, so #f(7/4) = 9/4# is a local maximum

and #f(2) = 2# is a local minimum.

(Some do not apply the term "local minimum" at an endpoint of the domain. They would disagree with my answer about that.)

Using the Second Derivative Test (for local extrema)

#f''(x) = -1/(4sqrt(2-x)^3)#

#f''(7/4) < 0#, so #f(7/4) = 9/4# is a local maximum.

#f''(2)# does not exist, so we cannot use the second derivative test at #x=2#