# Problem with latex math expression

I've been trying to write p = sqrt2^(sqrt2) like this $p= \sqrt 2^ (\sqrt2)$. And, the output I am getting is not what I am looking for. How can I write this properly?

• Try $p= \sqrt{2}^{(\sqrt{2})}$. Note that since the exponent is complex it must be placed in braces. Do you need the parenthesis? Apr 10 '14 at 20:37
• Thanks. It worked now. And, thanks for editing. I meant to say output not input. Apr 10 '14 at 20:40
• The expression worked the way I wanted without the parenthesis. But, I think I can still add it though. Thanks again. Apr 10 '14 at 20:49
• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Apr 10 '14 at 20:53
• @azetina an answer? or too localized? you decide :) Apr 10 '14 at 21:51

\documentclass[letterpaper]{article}
$p= \sqrt{2}^{(\sqrt{2})}$
$p= \sqrt{2}^{\sqrt{2}}$