MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Convincing Mathematica that Sqrt[a+b]Sqrt[a-b]==Sqrt[a^2+b^2]


On 21 Dec 2005, at 13:35, Steven T. Hatton wrote:

> Is there a way to convince Mathematica to multiply Sqrt[a+b]Sqrt[a- 
> b] to
> produce Sqrt[a^2+b^2]?

I hope that it will never become convinced of that!
Perhaps you meant to convince it that Sqrt[a+b]Sqrt[a-b] is Sqrt[a^2  
- b^2].  Even so, I hope it will not be convinced *too easily* since:

Sqrt[a - b]*Sqrt[a + b] /. {a -> -1, b -> 0}

-1


Sqrt[(a - b)*(a + b)] /. {a -> -1, b -> 0}


1

However, if you give Mathematica reasonable assumptions then it will  
(usually) also be quite reasonable, e.g.


Simplify[Sqrt[a + b]*Sqrt[a - b], {a >= b}]


Sqrt[a^2 - b^2]

Andrzej Kozlowski




  • Prev by Date: Re: "Alternating" function
  • Next by Date: Re: Convincing Mathematica that Sqrt[a+b]Sqrt[a-b]==Sqrt[a^2-b^2]
  • Previous by thread: Re: Convincing Mathematica that Sqrt[a+b]Sqrt[a-b]==Sqrt[a^2+b^2]
  • Next by thread: Re: Convincing Mathematica that Sqrt[a+b]Sqrt[a-b]==Sqrt[a^2-b^2]