Maximum/minimum through logarithm

  • Thread starter Thread starter Bipolarity
  • Start date Start date
  • Tags Tags
    Logarithm
Click For Summary
The discussion revolves around maximizing or minimizing the function f(x) = (x-4)², which clearly has a minimum at x = 4. The confusion arises when attempting to analyze the logarithm of the function, ln((x-4)²), which leads to the conclusion that it lacks a maximum or minimum. Participants clarify that the logarithm function is not defined for x ≤ 4, thus excluding the critical point from its domain. The critical point remains valid for the original function, but the logarithmic transformation introduces domain restrictions that affect the analysis. Ultimately, the logarithmic approach fails to yield the same extremum due to these domain limitations.
Bipolarity
Messages
773
Reaction score
2
Hi I seem to have run into a strange problem.
Suppose one wishes to maximize/minimize the function ## f(x) = (x-4)^{2} ##. Clearly, this function has a minimum at x = 4. One could find the extremum by taking the derivative and setting to zero.

One could also compute the logarithm of this function, i.e. ## ln (x-4)^{2} = 2 \ ln(x-4) ##, and then find the corresponding extremum of the resulting function, and since ## ln(x )## is monotonic over the region on which it is defined, the maximum/minimum of ##f(x)## and the maximum/minimum of ## f(ln(x))## should coincide.

This however is not the case, since ## 2 \ ln(x-4) ## seems not to have a maximum or a minimum. What am I missing here?

Thanks.

BiP
 
Physics news on Phys.org
I hope I understand your point ...

Actually the two function would have the same critical point
see:
$$y=(x-4)^2$$
$$y'=2(x-4)$$
when you equate by zero your critical point is 4.

Also
$$lny=2ln(x-4)$$
$$\frac{y'}{y}=\frac{2}{x-4}$$
$$y'=y\times\frac{2}{x-4}$$
$$y'=(x-4)^2\times\frac{2}{x-4}$$
$$y'=2(x-4)$$
Again your critical point is 4.

is that what you mean?

Am I right ..
:)
 
Bipolarity said:
Hi I seem to have run into a strange problem.
Suppose one wishes to maximize/minimize the function ## f(x) = (x-4)^{2} ##. Clearly, this function has a minimum at x = 4. One could find the extremum by taking the derivative and setting to zero.

One could also compute the logarithm of this function, i.e. ## ln (x-4)^{2} = 2 \ ln(x-4) ##, and then find the corresponding extremum of the resulting function, and since ## ln(x )## is monotonic over the region on which it is defined, the maximum/minimum of ##f(x)## and the maximum/minimum of ## f(ln(x))## should coincide.

This however is not the case, since ## 2 \ ln(x-4) ## seems not to have a maximum or a minimum. What am I missing here?

Thanks.

BiP

Your problem is that \ln x is not defined for x \leq 0. Thus the critical point of (x - 4)^2 is not in the domain of \ln(x - 4).
 
Bipolarity said:
## ln (x-4)^{2} = 2 \ ln(x-4) ##

Also:

## ln (x-4)^{2} = 2 \ ln|x-4| \ \ (x \ne 4)##
 
Personally, I wouldn't use "logarithms" or "derivatives". A x^2 is never negative and is 0 only for x= 0, so that (x- 4)^2 is never negative and is 0 only for x- 4= 0 or x= 4.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K