0

I want to apply square root operation to an equation.

In[1]:= Equation := x^2 == 2 y;

In[2]:= Sqrt[Equation]

Here is the output:

[1]: https://i.stack.imgur.com/Tz97V

My goal is to simplify this expression, so as it would take Root of the left and right parts separately

How can I do that?

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
Elias
  • 357
  • 1
  • 7

3 Answers3

2

It's generally not a good idea to start your symbol names with an uppercase letter and you should look at the difference between SetDelayed, i.e. := and Set, i.e. =.

That said, one answer to your question is to use Map (/@ below) to apply Sqrt to both sides of your equation and add an assumption to Simplify to allow it to simplify Sqrt[x^2] to x which is what I assume you want.

eqn = x^2 == 2 y;
Simplify[Sqrt /@ eqn, x > 0]

x == Sqrt[2] Sqrt[y]

If you don't want this then Solve[eqn, x], gives an alternative form as stated by others.

MikeLimaOscar
  • 3,456
  • 17
  • 29
2

Thread[] is one of the classical ways to do this operation:

Thread[Sqrt[x^2 == 2 y], Equal]
   Sqrt[x^2] == Sqrt[2] Sqrt[y]
J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
1
Solve[x^2 == 2 y, {x}]
{{x -> -Sqrt[2] Sqrt[y]}, {x -> Sqrt[2] Sqrt[y]}}
Kuba
  • 136,707
  • 13
  • 279
  • 740
webcpu
  • 3,182
  • 12
  • 17