I am working a problem on mathlab. It looks straightforward until I apply the quadratic formula and I get a negative number under a square root, which isn't allowed.

Locate the critical points of the function

the derivative is

Critical points are when F'=0, so I apply the quadratic formula to find the CP's.

this will simply to

and

The negative number in the sqrt doesn't make sense.