Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a question about taking the absolute value of an argument when working with logarithm. I found this solution $u(t) = -\log(\cos(t)+C)$. But i am not sure if I have to take $u(t)=-\log(|\cos(t)+C|)$. Can someone clarify this ?

share|cite|improve this question

In general, $\log x$ has the domain $\{x: x\in \mathbb{R}\wedge x > 0\}$ when the range is confined to the real numbers. Your solution is $u(t)=-\log(\cos(t)+C)$. We write $u(t)=-\log|\cos(t)+C|$ in order to ensure $u(t)$ is defined for all values of $t$ (excluding the case of $t$ such that $|\cos(t)+C|=0$ since $-\log 0$ is undefined.)

If you don't know why $-\log 0$ is undefined, just ask yourself: Does there exist a solution to the equation $-\log 0=y$ given that this equation is equivalent to $e^{-y}=0$?

share|cite|improve this answer

The reason for usually having an absolute value inside the logarithm is that the logarithm isn't defined for negative values in real calculus. Assuming this is real calculus, the logarithm is only defined for all $t$ if $C>1$.

share|cite|improve this answer
I think you mean if $C>1$; consider $t=\frac{3\pi}{2}$ – Daniel Littlewood Dec 2 '12 at 18:40
Wait a second. I think you mean $\cos(t)+C > 0$. (This simplifies to what @DanielLittlewood said considering the range of $\cos(t)$: $-1\le \cos (t)\le 1$.) – 000 Dec 2 '12 at 18:41
Of course :-D typo... :-) thanks! – malin Dec 2 '12 at 22:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.