Patrick B. answered 11/20/20
Math and computer tutor/teacher
Option #1: replace |z| = sqrt(z^2)
g(x) = | 1 - x^2 | = sqrt ( (1-x^2)^2)
= ((1-x^2)^2)^(1/2)
0= g'(x) = (1/2) ((1 - x^2)^2)^(-1/2) (2(1-x^2)(-2x))
= (-2x)(1 - x^2) / ((1 - x^2)^2)^1/2
= (-2x)(1-x^2)/ (1 - x^2)
= -2x
relative max at (0,1)
--------------------------------------------------
Option #2: solve the problem twice...
1st, as is; then again with x=-x
it turns out that it is an EVEN function that eats
the negative....
g(-x) = | 1 - (-x)^2 | = | 1 - x^2 | = g(x)
so the absolute values can be dropped because the
function is perfectly symmetrical..
the derivative is -2x , as shown above..
relative max is at ( 0,1)