Basic complex number math -- what am I doing wrong?

  • Context: High School 
  • Thread starter Thread starter Isaac0427
  • Start date Start date
  • Tags Tags
    Complex Complex number
Click For Summary

Discussion Overview

The discussion revolves around the calculation of the magnitude squared of a complex function, specifically ##\psi = fe^{ikx}+ge^{ikx}##, where f and g are real functions and k is a real constant. Participants explore different methods to compute ##\left|\psi \right|^2## and identify discrepancies in their results.

Discussion Character

  • Mathematical reasoning

Main Points Raised

  • One participant presents two methods for calculating ##\left|\psi \right|^2##, leading to different results: Method 1 simplifies to ##f^2 + g^2 + 2fg##, while Method 2 yields ##f^2 + g^2 + 2\cos(2kx)fg##.
  • Another participant questions the origin of the identity ##|a+b|^2=|a|^2+|b|^2+2\Re(ab)##, suggesting a need for clarification on its derivation.
  • A later reply acknowledges a mistake in the identity used, indicating it should be ##2\Re(ab^*)## instead, which resolves the confusion regarding the extra cosine term in Method 2.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct application of the identity for calculating the magnitude squared of the complex function, as there are differing interpretations and corrections made during the discussion.

Contextual Notes

Participants express uncertainty regarding the correct form of the identity used in the calculations, and there are unresolved issues related to the formatting of mathematical expressions in the discussion.

Isaac0427
Insights Author
Gold Member
Messages
718
Reaction score
163
For this, f and g are real functions, and k is a real constant.

I have ##\psi = fe^{ikx}+ge^{ikx}## and I want to find ##\left|\psi \right|^2##. I went about this two different ways, and got two different answers, meaning I must be doing something wrong.

Method 1:
##\psi =(f+g)e^{ikx}##
##\left|\psi \right|^2=(f+g)^2\left|e^{ikx}\right|^2=(f+g)^2=f^2+g^2+2fg##

Method 2:
Since ##|a+b|^2=|a|^2+|b|^2+2\Re (ab)##,
##|\psi |^2=f^2+g^2+2\Re \left( fge^{2ikx} \right)=f^2+g^2+2\cos(2kx)fg##

Method 2 gives me that extra cosine term. Where did I go wrong?
 
Physics news on Phys.org
Isaac0427 said:
Since |a+b|2=|a|2+|b|2+2R(ab)|a+b|2=|a|2+|b|2+2ℜ(ab)|a+b|^2=|a|^2+|b|^2+2\Re (ab),
Edit: Why isn't formatting preserved in quotes?
Where does this come from? If we write a = a + ic and b = b + id
|a + b|2 = |a+b+i(c+d)|2 = (a+b)2 + (c+d)2 = a2 + c2 + b2 + d2 + 2(ab + cd)
ab = ab - cd + i(ad +bc)
Hence |a + b|2 is not equal to |a|2 + |b|2 + 2Re(ab)
 
  • Like
Likes   Reactions: Isaac0427
Isaac0427 said:
Since ##|a+b|^2=|a|^2+|b|^2+2\Re (ab)##,
Where are you getting this from?
Edit: mjc beat me to it. BTW: You can format the TeX in the quotes directly.
 
  • Like
Likes   Reactions: Isaac0427
TeethWhitener said:
Where are you getting this from?
Oh man... I messed up my identities... It should be 2Re(ab*) which would give me where I went wrong. Thank you for pointing this out!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
Replies
8
Views
1K