Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to normalize the following vector in Mathematica with the Normalize command.

$$(-1+2\cot[x]\csc[x]+2\csc[x]^2,\;2^\frac{1}{2} (1+\cos[x])\csc[x],\; 1)$$

I specified that the argument was real, but keep getting Abs in my answer. Is there anyway around this?

share|improve this question

migrated from physics.stackexchange.com Jan 24 at 18:53

This question came from our site for active researchers, academics and students of physics.

    
What's the problem with the absolute value? –  Kyle Kanos Jan 24 at 14:54
1  
Could you post actual Mathematica code ? –  b.gatessucks Jan 24 at 15:08
    
Real isn't enough. For example, Csc[x] is ComplexInfinity when x=Pi. –  bill s Jan 24 at 15:09

1 Answer 1

x being real-valued isn't enough, since some of the trig functions (like Csc[x]) can be infinite for finite x (like x=Pi). If you make the assumption that x is between 0 and Pi, then the expression can be simplified without the Abs[]

v = {-1 + 2 Cot[x] Csc[x] + 2 Csc[x] 2, 2^(1/2) (1 + Cos[x]) Csc[x], 1};
FullSimplify[Normalize[v], 0 < x < Pi]

enter image description here

It also simplifies to the same answer when Pi < x < 2 Pi so the problem really is at the singularity. It's easy to calculate what happens at the singularities by taking the limit as x->0 and x->Pi:

Limit[v, x -> 0]
{∞, ∞, 1}

Limit[v, x -> Pi]
{-∞, 0, 1}
share|improve this answer
    
So it will not simplify then if x is between 0 and $2\pi$ –  user32462 Jan 24 at 15:15
    
It also simplifies if you assume Pi < x < 2 Pi, so the problem really is at the singularity. –  bill s Jan 24 at 15:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.