Finding real part of an expression.

  • Context: Maple 
  • Thread starter Thread starter MathematicalPhysicist
  • Start date Start date
  • Tags Tags
    Expression Maple
Click For Summary

Discussion Overview

The discussion revolves around finding the real part of a complex expression involving a real parameter \( w \). Participants explore methods to simplify and extract the real part using software tools like Mathematica and Maple.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant presents a complex expression and expresses frustration with errors encountered while trying to find the real part using Mathematica or Maple.
  • Another participant suggests using the FullSimplify and Reduce functions in Mathematica to derive expressions for the real and imaginary parts, providing specific output results.
  • A third participant comments on the complexity of the code required for what seems to be a straightforward task.
  • A fourth participant proposes using the ComplexExpand function in Mathematica, providing the resulting expression that separates the real and imaginary components.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best method to extract the real part, as multiple approaches are suggested without agreement on a single solution.

Contextual Notes

There are indications of potential errors in the initial attempts to simplify the expression, and the results from different methods may depend on the specific definitions and assumptions used in the software.

MathematicalPhysicist
Science Advisor
Gold Member
Messages
4,662
Reaction score
372
Hi, I have the next expression:

\frac{iw+3}{(iw-3)(iw+6)(iw+1)}

Now I want to find the real part of this expression via mathematica or maple, and for the love of god it doesn't work, what have I done wrong here?!

the codes and their errors are in the attachments.
http://oi50.tinypic.com/25zs684.jpg
http://oi50.tinypic.com/24wfqt3.jpg

Peace out!

N.B
w is real parameter.
 
Physics news on Phys.org
In[1]:= FullSimplify[Reduce[a+I b==(I w+3)/((I w-3)(I w+6)(I w+1))&& a∈Reals&& b∈Reals&& w∈Reals,{a,b},Backsubstitution->True]]

Out[1]= w∈Reals &&
a == -((54 + 27*w^2 + w^4)/(324 + 369*w^2 + 46*w^4 + w^6)) &&
b == -((w*(-27 + w^2))/(324 + 369*w^2 + 46*w^4 + w^6))

Check this result very carefully before you depend on it
 
Last edited:
Thanks. Who knew that such a simple task should have a long line of code?!
 
What about "ComplexExpand"? ((Mathematica))

ComplexExpand[(I w + 3)/((I w - 3) (I w + 6) (I w + 1))]

<br /> -\frac{27 w^2}{\left(w^2+1\right) \left(w^2+9\right) \left(w^2+36\right)}-\frac{54}{\left(w^2+1\right) \left(w^2+9\right) \left(w^2+36\right)}-\frac{w^4}{\left(w^2+1\right) \left(w^2+9\right) \left(w^2+36\right)}\\+i \left(\frac{27 w}{\left(w^2+1\right) \left(w^2+9\right) \left(w^2+36\right)}-\frac{w^3}{\left(w^2+1\right) \left(w^2+9\right) \left(w^2+36\right)}\right)<br />
 
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K