Register to reply

Finding real part of an expression.

by MathematicalPhysicist
Tags: expression, real
Share this thread:
MathematicalPhysicist
#1
Dec9-12, 07:30 AM
P: 3,243
Hi, I have the next expression:

[tex] \frac{iw+3}{(iw-3)(iw+6)(iw+1)}[/tex]

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.
Phys.Org News Partner Science news on Phys.org
What lit up the universe?
Sheepdogs use just two simple rules to round up large herds of sheep
Animals first flex their muscles
Bill Simpson
#2
Dec9-12, 03:45 PM
P: 1,037
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
MathematicalPhysicist
#3
Dec9-12, 09:56 PM
P: 3,243
Thanks. Who knew that such a simple task should have a long line of code?!

Hepth
#4
Dec11-12, 05:02 PM
PF Gold
Hepth's Avatar
P: 471
Finding real part of an expression.

What about "ComplexExpand"? ((Mathematica))

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

[tex]
-\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)
[/tex]


Register to reply

Related Discussions
Finding real part of complex eqn Calculus & Beyond Homework 10
Real and imaginary parts of an expression General Math 1
HOW TO GET A REAL AND IMAGINARY PART FOR THIS e Calculus & Beyond Homework 0
Mathematica...real part... Math & Science Software 4
Real Part of a Function General Math 7