Zero in disguise

You look like an angel
Walk like an angel
Talk like an angel
But I got wise
You’re the zero in disguise
Oh, yes, you are
The zero in disguise

Elvis was singing about you ….

Ronan, in his recent comment under my post on Quaternion evolution, has noticed that Maple, the software he is using, gives for the function \psi(t) result that than the one I was advocating. How can it be? Mathematics is an exact science (physics, on the contrary, is not exactly an exact science). For a given question there should be one answer. Or is mathematics a devil in disguise? Looks like an exact science, walks like an exact science, but exact science it is not?

Devil likes to hide in the details, so let us examine the details.

My formula for \psi(t) comes from integration. I claim that if we integrate

(1)   \begin{equation*} \psi(t)=\int_0^t\frac{\cosh( \frac{s}{2\sqrt{3}})+1}{2\cosh(\frac{s}{2\sqrt{3}})+1}\,ds \end{equation*}

the result is given by rather simple a formula:

(2)   \begin{equation*} \psi_A(t)=\frac{t}{2}+ 2\arctan\left(\frac{\tanh \left(\frac{t}{4 \sqrt{3}}\right)}{\sqrt{3}}\right). \end{equation*}

Ronan, who is using Maple, gets for the same problem a different answer:

(3)   \begin{multline*} \psi_R(t)=\pi i \sqrt{3}+2\arctan(\frac{1}{3}\tanh(\frac{1}{12}t\sqrt{3})\sqrt{3})\\-\sqrt{3}\ln\left(\tanh\left(\frac{1}{12}t\sqrt{3}\right)-1\right)+\\\sqrt{3}\ln\left(\tanh\left(\frac{1}{12}t\sqrt{3}\right)+1\right). \end{multline*}

Taking the difference we get

(4)   \begin{multline*} \psi_A-\psi_R=\frac{t}{2}-\pi i\sqrt{3}+\\\sqrt{3}\ln\left(\tanh\left(\frac{1}{12}t\sqrt{3}\right)-1\right)-\sqrt{3}\ln\left(\tanh\left(\frac{1}{12}t\sqrt{3}\right)+1\right). \end{multline*}

If mathematics is not a devil in disguise, the last expression, namely \psi_A-\psi_R must be a zero in disguise. But is it?
I tried to ask Maple to simplify it, with no result. The algorithms known to otherwise very clever software are not smart enough. So, let is see what we can do with our eyes and hands.

The first thing that comes to our attention is that we have a difference of logarithms. And we know from the kindergarten that \ln a-\ln b=\ln\frac{a}{b}. So we write

(5)   \begin{equation*} \psi_A-\psi_R=\frac{t}{2}-\pi i\sqrt{3}+\sqrt{3}\ln\frac{\tanh\left(\frac{1}{12}t\sqrt{3}\right)-1}{\tanh\left(\frac{1}{12}t\sqrt{3}\right)+1}. \end{equation*}

But what is \tanh? We know that \tanh x=\sinh x/\cosh x, therefore

(6)   \begin{equation*} \frac{\tanh(x)-1}{\tanh(x)+1}=\frac{\frac{\sinh x}{\cosh x}-1}{\frac{\sinh x}{\cosh x}+1}=\frac{\sinh x -\cosh x}{\sinh x+\cosh x}. \end{equation*}

Now, \cosh x=(e^x+e^{-x})/2,\quad \sinh x=(e^x-e^{-x})/2, therefore \sinh x+\cosh x=e^x, \sinh x-\cosh x=-e^{-x}. Thus

    \[\frac{\tanh(x)-1}{\tanh(x)+1}=\frac{e^{-x}}{e^{x}}=-e^{-2x},\]

and so

    \[ \ln \frac{\tanh(x)+1}{\tanh(x)-1}=\ln -e^{-2x}.\]

We can write now

    \[\ln -e^{-2x}=\ln ((-1)e^{-2x})=\ln(-1)+\ln e^{-2x}=\ln(-1)-2x.\]

What is \ln(-1)? It is an imaginary number. We know that e^{\pi i}=-1, and if we ask Maple what is \ln(-1)? – the answer is i\pi. So, we finally get

    \[ \ln \frac{\tanh(x)+1}{\tanh(x)-1}= i\pi -2x.\]

In our case x=\frac{1}{12}t\sqrt{3}, 2x=\frac{1}{6}t\sqrt{3}.
In Eq. (5) we have \sqrt{3} in front of the \ln, so we get

    \[\sqrt{3}\ln\frac{\tanh\left(\frac{1}{12}t\sqrt{3}\right)-1}{\tanh\left(\frac{1}{12}t\sqrt{3}\right)+1}=-\frac{t}{2}+\sqrt{3}i\pi. \]

Thus \psi_A-\psi_r=0. The zero has been cleverly disguised using functions \tanh and \ln. Einstein once commented that God is subtle, but He is not malicious. Well, here we could see Mathematics can be subtle

8 thoughts on “Zero in disguise

  1. Wow. I didn’t expect this tonight. Thank you. Amazing how different softwares work. I was all set to dive into simplifying. Instead this enabled me do do a great deal of error checking and correcting. I now have the code for http://arkadiusz-jadczyk.eu/blog/2017/03/quaternions-you-eat/
    post working properly as it agrees with yours.
    Tried a general solution for the diff eqn. It actually worked be setting .
    Edit:-General solution means,not giving I1,I2 and I3 numetical values. Had to define d=1/I2 and k=1.

  2. Found something interesting during the week when trying to solve for d not = 1/2. Convert the equation to partial fraction (d=1/2) and you get {\frac {\rm d}{{\rm d}t}}\psi \left( t \right) =1/2+1/2\, \left( 2\, \cosh \left( 1/6\,\sqrt {3}t \right) +1 \right) ^{-1} this solves nicely to \psi \left( t \right) =2\,\arctan \left( 1/3\,\sqrt {3}\tanh \left( 1/ 12\,\sqrt {3}t \right)  \right) +t/2

Leave a Reply