My question is as follows:
Is the below a useful elementary way of dealing with negative arguments? If not, what is a better (elementary or not) way of dealing with negative arguments of the logarithm? How could you extend those methods to complex arguments?
Today I was in pre-calculus and was playing around with $\pi$ approximations (having finished my work), because I recently did a probabilistic Buffon's Needle $\pi$ approximation and accompanying proof for an AP stats project, and was interested in other $\pi$ approximations.
While doing this I came upon this reasoning: $$ e^{i\pi} + 1 = 0 \Rightarrow \ln(-1)=i\pi . $$ Which I generalized to: $$ \log_{b}(x) = \log_{b}(x) + \frac{i\pi}{\ln(b)}; x < 0.$$ I then defined the logarithm function in a recursive way for all arguments $ x \in \mathbb{R} \wedge x \not= 0$ as follows: $$ \log_b(x) = \begin{cases} \log_b(x) & x > 0 \\ \log_b(x) + \frac{\pi i }{\ln(b)} & x < 0 \end{cases} $$ Because my pre-calculus teacher had said that the logarithmic function was not defined for negative arguments, and I knew complex analysis extends the logarithm (but I am not there yet, I just started real analysis) to complex arguments, I assumed there was not elementary way of dealing with negative arguments (although from the definition of the natural logarithm in calculus I ascertained, but never proved, that there was a way). There is two obvious problems I can see with my definition, namely it is recursive and in is not continuous at zero
edit:
I have tried to use the approach of using: $$-\int\limits_{-x}^1 \frac{dt}{t} = \ln(-x)$$ but it got nowhere, so I went back to Euler's identity approach, but more generalized.
Here is the argument I came up with:
let $x \in \mathbb{R}$. We now take the natural logarithm to be well defined for the positive reals, and so $\ln(|x|)$ is well defined.
We also take $\log_b(x)$ to be defined as follows: $$ \log_b(x) := \frac{\ln(x)}{\ln(b)} $$
We will show that $$\forall x, \log_b(-|x|) = \frac{\pi i}{\ln(b)}+ \log_b(x)$$
lemma: First we show that $$\ln(-|x|) = \pi i + \ln(|x|)$$
We consider $e^{zi} = \cos(z) + i \sin(z)$ where $z \in \mathbb{R}$ and $z$ is modulo $2 \pi$. we can see that $ln(\cos(z) + i \sin(z)) = zi$, if we let $\cos(z) + i \sin(z) = -1$ then $z \equiv \pi \bmod{2\pi}$.
Now we look back and and expand our original equation: $$\ln(-|x|) = \ln(-1) + \ln(|x|)\ \ .$$ Now we can substitute $\ln(-1)$ with $\ln(\cos(z) + i \sin(z))$, where we have restricted $z$ to $-2\pi \leq z \leq 2\pi $ and we say it is equal to $\pi$. We get $$\ln(-|x|) = \ln(-1) + \ln(|x|) = \ln(\cos(z) + i \sin(z)) + \ln(|x|) \ \ .$$
Now we can see that because $ln(\cos(z) + i \sin(z)) = zi$ we can say: $$\ln(-|x|) = \pi i + \ln(|x|)\ \ \ \Box$$
Now we use this result to show our original conjuncture $$\forall x, \log_b(-|x|) = \frac{\pi i}{\ln(b)}+ \log_b(x) \ \ .$$
Because we defined $\log_b(x)$ as $\frac{\ln(x)}{\ln(b)}$ we can see that $$\log_b(-|x|) = \frac{\ln(-|x|)}{\ln(b)}$$ which, via our lemma, we see is $$\log_b(-|x|) = \frac{\pi i + \ln(|x|)}{\ln(b)}$$ which is simplified to $$\forall x, \log_b(-|x|) = \frac{\pi i}{\ln(b)}+ \log_b(x) \ \ \ \ \blacksquare$$
This argument, I think, is a bit stronger than starting at the special case $e^{\pi i} -1 = 0$.
I have also considered the logarithm through the integral $$\int \frac{dx}{1+ax} = \frac{1}{a}\ln(1+ax) + C$$, but haven't seen if it would be fruitful to follow this path.