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
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
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!