I have a question about ln(1-(tanh(x))^2). My calculation process is shown in the image below. However, the answer (in blue font) is different from mine, and I don’t know where I went wrong.
I am very grateful for your reply! You gave two calculation results, and the derivation process is very concise. I learned a lot from it.
However, I still have a question to ask you. In the “correct answer”, when x>0, why is ln(1-tanh^2(x)) equal to: ln4 -2x-2 ln(1+exp(-2x))? ( In our calculations,ln(1-tanh^2(x))=2 ln 2 + 2 x-2 ln(1+exp(2x)) for ALL x including 0.)
Dear Joachim Domsta, the expression ln(1-tanh2(x)) is clearly nonpositive as a result of 1-tanh2(x)0. Similarly, the formula lnexp(-x)=-x holds for x0. Finally, we may note that for x=0, the two expressions also hold. Therefore, ln(1-tanh2(x))= ln4-2ln(1+exp(2x))+2x if x=0.
If you see any false equality in my or @Wei Xin's derivation, please copy it and find at least one value of x which makes the equality false. It would be useful for all participants :-)
In your outline the following is an example of incomplete statements:
ln exp(x)=x for x>0.
You can easily check that this holds for ALL real values of x. For example, if x= -1, then exp(x) = 1/e > 0 and therefore the ln of exp(x) exists and equals -1, which is the value of the RHS.
Dear Joachim Domsta , you are right. I got confused by the linear approximation exp(x)=1+x I used. If more terms are added, it is seen that the expression ln4-2ln(1+exp(2x))+2x is indeed negative near 0. Actually, the function f:R->R defined by f(x)=ln4-2ln(1+exp(2x))+2x is even, as it is straightforwardly seen. Its graph can be seen in the following link:
By the way, I have never heard about "incomplete" statements; I know about true or false statements only. Probably, you mean that the truth set of the respective predicate is a superset of the given set.
The following addition is about my statements that
lnexp(x)=x for every x>0 and lnexp(-x)=-x for every xB and a function g:C->D, if the image f(A) of f, which is a subset of B, is also a subset of C, then f(x) belongs to C for every x belongs to A, and the composition g*f is a function from A to D.
(i) Let f:R->R defined by f(x)=exp(x) and let g:(0,infinity)->R defined by g(x)=lnx. Since exp(x)>0 for every x belongs to R, it follows that f(R) is a subset of (0,infinity) (in particular, f(R)=(0,infinity)) and g*f is a function from R to R. As a result, (g*f)(x)=g(f(x))=lnexp(x)=x for every x belongs to R.
(ii) Let f:R->R defined by f(x)=exp(-x) and let g:(0,infinity)->R defined by g(x)=lnx. Since exp(-x)>0 for every x belongs to R, it follows that f(R) is a subset of (0,infinity) (in particular, f(R)=(0,infinity)) and g*f is a function from R to R. As a result, (g*f)(x)=g(f(x))=lnexp(-x)=-x for every x belongs to R.
(iii) Let f: (0,infinity)->R defined by f(x)=lnx and let g:R->R defined by g(x)=exp(x). By the previous reasoning, g*f is a function from (0,infinity)->R and (g*f)(x)=exp ln(x)=x for x>0.
(iv) Let f: (-infinity,0)->R defined by f(x)=ln(-x) and let g:R->R defined by g(x)=exp(x). By the previous reasoning, g*f is a function from (-infinity,0)->R and (g*f)(x)=exp ln(-x)=-x for x0, and