Maple Finding real part of an expression.

  • Thread starter Thread starter MathematicalPhysicist
  • Start date Start date
  • Tags Tags
    Expression Maple
AI Thread Summary
The discussion revolves around finding the real part of the expression (iw + 3) / ((iw - 3)(iw + 6)(iw + 1)) using Mathematica or Maple. The user encounters errors in their code and seeks assistance in resolving these issues. They share their attempts, including using FullSimplify and ComplexExpand, but express frustration over the complexity of the task. The resulting expressions for the real and imaginary parts are provided, highlighting the intricacies involved in the calculations. The user emphasizes the need for careful verification of the results before relying on them.
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
Views
2K
Replies
6
Views
4K
Replies
10
Views
3K
Replies
12
Views
4K
Replies
3
Views
3K
Back
Top