Not x2=π but xx=π.
there isn't a "direct" solution to such a problem.
There are several "trial and improvement" techniques
Newton Raphson is one way - but it is a bit "technical" - however it is fast for "well-behaved" functions (I won't define well behaved at the moment)
"slower" but guaranteed and to any level of accuracy is bisection.
Step 1. If we try x=1 then we find 1
1 = 1
Step 2. If we try x=2 then we find 2
2 = 4
Now, π lies between 1 and 4. Can you think where to go from there?
Another alternative is to use a recursive technique. Has the original poster come across logarithms? Recursion has virtue of being faster than bisection but less "technical" than NR (some limitations on its application depending on "well-behavededness" of function if it is to work)
Clive
Edit: Fiddling with the recursive formula (one converges the other doesn't) and trying numbers in a calculator - I think bisection as well as being simpler is quicker than recursion - probably due to the logarithm. I will give the details later after28hotshot has tried. UG's solution looks correct (at least where my attempts are heading).