3

Very simple question: Why doesn't Mathematica simplify this square root expression?

Refine[Sqrt[Exp[I p]], p > 0] // FullSimplify

It should give

Exp[I p/2] 

Where is my mistake?

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574

1 Answers1

9

Just avoid the branch cut:

Refine[Sqrt[Exp[I p]], π > p > 0]

(* ==> E^((I p)/2) *)

The branch cut of the square-root function doesn't allow Mathematica to simplify the expression without the restriction on p from above.

See also the related question and answer here: Using Solve to solve the equation x1/3=−1

Jens
  • 97,245
  • 7
  • 213
  • 499