Derivative of the Real Part of a Complex Function (Mathematica)

Click For Summary

Discussion Overview

The discussion focuses on the differentiation of the real part of a complex function using Mathematica, specifically examining the output when applying the derivative operator to the real part of an exponential function.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant shares their experience with differentiating the real part of a complex function and questions the output received from Mathematica, particularly regarding the appearance of "Re'" in the result.
  • Another participant asks for clarification on the context and language being used, indicating a need for more information to understand the issue.
  • A third participant suggests that Mathematica does not recognize the variable 'u' as being real, which may contribute to the unexpected output.

Areas of Agreement / Disagreement

Participants do not reach a consensus, as there are differing views on the interpretation of the output and the handling of the variable 'u' in Mathematica.

Contextual Notes

There is an assumption that the variable 'u' is intended to be real, but this is not explicitly communicated to Mathematica, leading to potential confusion in the output.

Swamp Thing
Insights Author
Messages
1,048
Reaction score
799
TL;DR
Why doesn't this work:
D [ Re[ Exp[u + 10*I] ], u ] /. u->0.5
When I type in this:
Code:
D [
      Re[
           Exp[u + 10*I]
        ],
           u
   ]    /.  u->0.5
I get this output:
1584851721030.png


Of course, I could just put the Re outside and the D inside, but it would be nice to know what is wrong with the above. What's with the Re' in the output?
 
Physics news on Phys.org
Mathematica.
 
Mathematica doesn’t know that you intend u to be real.
 
  • Like
Likes   Reactions: RUQIAN and Swamp Thing

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K