f(x)=ln |x/1+x^2| , because we have ln function , abs[ x/1+x^2] >0, since in this case the denominator always positive , therefore x can be positive and negative but not equal zero.
Domain of x : (-∞,0) U (0,∞ )
To find the relative max or min , we can drive the function ,and to make it easy ,write the function in this form,
f(x) = ln x - ln ( 1+ x^2 )
f ' (x) = 1/x - 2 x / ( 1+x^2)
= (1+ x^2 - 2x^2 ) / x (1+x^2 )
= ( 1-x^2) / x(1+ x^2)
1- find zeroes : 1- x^2 =0 , x^2 = 1, either x = +1 or x= -1
2- find undefined : x(1+ x^2) = 0 , either x=0 ( must be neglected, out of domain)
or 1+ x^2 =0 , x^2 = -1 ( neglect , this gives not real values)
so the possible relative extrema value is at x=1 , x=-1
we have to see if at x=1,x= -1 we have relative max or min,
take value less than x=1 for example x=1/2 , plug this value in f'
then take value greater than x=1 for example x=2 , plug this value in f'
f' (1/2) = ( 1-1/4) / [1/2(1+1/ 4)] = (3/4) /( 5/8) = + 6/5 positive value
f'( 2) = (1-4) / 2(1+4) = -3/10 negative value
we see that f'( slope) changes from + to - which means that we have relative max at ( x=1 , f(1) = ln 1/2 )
Now take value less than x=-1 for example x=-2 , plug this value in f'
then take value greater than x=-1 for example x=-1/2 , plug this value in f'
f' (-2) = ( 1-4) /[ (-2)(1+ 4)] = ( -3) /(-10) =+ 3/10 positive value
f'(-1/2) = (1-1/4) /[(-1/ 2)(1+1/4)] =(3/4) / (-5/8) = - 6/5 negative value
we see that f'( slope) changes from + to - which means that we have another relative max at ( x= -1 , f(-1) = ln 1/2 )
Hint: there is another way to check if we have relative max or min by using 2nd derivative test :
f ' (x) = 1/x - 2 x / ( 1+x^2)
f'' (x) = -2/ x^2 - [ 2(1+x^2)- 2x*2x]/ ( 1+x^2) ^2
= -2/ x^2 -( 2-2x^2)/ ( 1+x^2) ^2
f''(1) = -2 negative value , so the function is concave down, and that's mean we have relative max at (1, ln 1/2)
f''(-1) =-2 negative value, so the function is concave down, and that's mean we have relative max at (-1, ln 1/2)


RAFAH A.
02/07/21
Doug C.
if f(x) does include absolute value of the x/(x^2+1) then the only x value not in the domain of f is x = 0. Here is a graph depicting that situation: desmos.com/calculator/egohvklq0k02/07/21