Help evaluating complex function in form m+ni?

Click For Summary

Discussion Overview

The discussion revolves around evaluating the complex version of the sigmoid function, specifically in the form $$f(\alpha) =\frac{1}{1+e^{-\alpha}}$$ where $$\alpha = a+bi$$. Participants explore the transformation of this function into standard form $$f = m+ni$$, addressing challenges related to complex numbers and differentiation in the context of the Cauchy-Riemann equations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses difficulty in transforming the sigmoid function into the complex form and mentions an incorrect assumption about an identity for $$e^{e^{x}}$$.
  • Another participant suggests a method involving multiplying by the conjugate to simplify the expression and recommends using Euler's formula.
  • A participant attempts to simplify the expression and questions the correctness of their result, seeking confirmation.
  • There is a discussion about the analyticity of the function, with one participant stating that it does not conform to the Cauchy-Riemann equations, while another argues that it is analytic except where the denominator equals zero.
  • Participants engage in a debate regarding the conditions for differentiability, with one questioning the implications of the Riemann-Cauchy equations and another correcting misconceptions about the derivatives involved.
  • Concerns are raised about the computational efficiency of different approaches to the problem, with one participant defending their method despite challenges to its correctness.

Areas of Agreement / Disagreement

Participants express differing views on the analyticity of the function and the implications of the Cauchy-Riemann equations. There is no consensus on the correctness of the various approaches or results presented.

Contextual Notes

There are unresolved issues regarding the assumptions made in the transformations and the conditions under which the function is differentiable. Participants also note potential sign errors in their calculations and the need for clarity on the definitions of derivatives in the context of complex analysis.

NotASmurf
Messages
150
Reaction score
2
Hey all, I need the complex version of the sigmoid function in standard form, that is to say $$f(\alpha) =\frac{1}{1+e^{-\alpha}} , \hspace{2mm}\alpha = a+bi , \hspace{2mm} \mathbb{C} \to \mathbb{C}$$ in the simplified form: $$f = m+ni$$ but found this challenging, for some reason i assumed there was an identity for $$e^{e^{x} }, \hspace{2mm} x \in \mathbb{C}$$, so wasted my time with
$$e^{-a-bi}= e^{e^{tan^{-1}\frac{b}{a}i + ln[\sqrt{ a^{2} + b^{2} }]}}$$ and tried from there, (just showing I did make an attempt, no matter how abysmal). Any help appreciated as I am not too familiar with complex numbers outside of the basics needed for transformation matrices.
 
Physics news on Phys.org
NotASmurf said:
so wasted my time with
e−a−bi=eetan−1bai+ln[√a2+b2]e−a−bi=eetan−1bai+ln[a2+b2]​
e^{-a-bi}= e^{e^{tan^{-1}\frac{b}{a}i + ln[\sqrt{ a^{2} + b^{2} }]}} and tried from there
No need to go that far.
Try multiplying ##f(\alpha) =\frac{1}{1+e^{-\alpha}}## with ##\frac{1+e^{-\alpha^*}}{1+e^{-\alpha^*}}## and then use Euler formula.
 
  • Like
Likes   Reactions: NotASmurf
Thanks :D ,Comes to $$ \frac{1}{2cos(b) e^{-a}}[1+e^{-\overline{\alpha}]}$$ right (before further simplification)?
Then $$ =[ \frac{1}{2cos(b) e^{-a}} +\frac{1}{2}] + [\frac{1}{2} tan(b)]i $$ ? Or have I screwed up? (can't exactly substitute in numbers as easily in this case to test)
 
Last edited:
[itex]\frac{1}{1+e^{-\alpha}}=\frac{1}{1+e^{-a}(cosb-isinb)}=\frac{1+e^{-a}(cosb+isinb)}{(1+e^{-a}cosb)^2+(e^{-a}sinb)^2}=\frac{1+e^{-a}(cosb+isinb)}{1+2e^{-a}cosb+e^{-2a}}[/itex]

[itex]\alpha[/itex] and a look alike in itex.
 
  • Like
Likes   Reactions: NotASmurf
Thanks mathman but since my previous answer is more computationally efficient (has to run vast iterations for the program) my previous answer correct?
 
Last edited:
Turns out this was a fruitless exercise since $$\frac{\partial u }{\partial x} \neq \frac{\partial v }{\partial y} $$ , so it doesn't conform with the Cauchy -Riemann equations D: (It needs to be differentiable)
 
Last edited:
NotASmurf said:
Turns out this was a fruitless exercise since $$\frac{\partial u }{\partial x} \neq \frac{\partial v }{\partial y} $$ , so it doesn't conform with the Cauchy -Riemann equations D: (It needs to be differentiable)
I think you should check that again. 1/(1+e) is analytic in the complex plane except where (1+e) = 0.
 
well when I reworked it I got $$\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y} $$ BUT $$\frac{\partial u}{\partial y} = \frac{\partial v}{\partial x} $$ when it should be equal to the negative does that mean its diffentiable, but only for certain regions? (havn't had to do complex differentiation before), also quick question , the Riemann - Cauchy equations essentially say $$\frac{\partial f}{\partial z} = 0 $$ must be true for it do be differentiable, this confuses me, can someone elucidate on the intuition here?
 
NotASmurf said:
$$\frac{\partial u}{\partial y} = \frac{\partial v}{\partial x} $$ when it should be equal to the negative
I think there must be a sign problem somewhere.
The series of operations α => -α => e => 1 + e gives an entire function (analytic in the entire complex plane)
Then 1/(1 + e) is analytic for α in ℂ except where it is a division by 0.
the Riemann - Cauchy equations essentially say $$\frac{\partial f}{\partial z} = 0 $$ must be true for it do be differentiable,
This is not right. I'm not familiar with the Wirtinger derivatives (https://en.wikipedia.org/wiki/Wirtinger_derivatives), but apparently this should be the partial wrt z conjugate (see equation 3 of https://en.wikipedia.org/wiki/Cauchy–Riemann_equations )
 
  • Like
Likes   Reactions: NotASmurf
  • #10
NotASmurf said:
Thanks mathman but since my previous answer is more computationally efficient (has to run vast iterations for the program) my previous answer correct?
I doubt it. It is different from mine - unlikely to be correct. Check out the denominator.
 
  • Like
Likes   Reactions: NotASmurf
  • #11
NotASmurf said:
the Riemann - Cauchy equations essentially say
∂f∂z=0​
\frac{\partial f}{\partial z} = 0 must be true for it do be differentiable, this confuses me, can someone elucidate on the intuition here?
No, you are wrong. An analytic function is characterized by [itex]\frac{\partial f}{\partial \bar{z}}=0[/itex] (you need to define [itex]\frac{\partial f}{\partial \bar{z}}[/itex] in a sensible manner, but that should not be too hard).
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K