Looks right. I assume you are wondering about pulling the m from the square root. It may be the long way around, but try expanding.
[tex]N^2 = (mg)^2-(ma)^2[/tex]
can be expanded into:
[tex]N^2 = mmgg-mmaa[/tex]
factor out the m squared:
[tex]N^2 = mm(gg-aa)[/tex]
[tex]N^2 = m^2(g^2-a^2)[/tex]
Take the square root of both sides (raise both sides to the half power):
[tex]N = \sqrt{m^2(g^2-a^2)}[/tex]
[tex]N = m\sqrt{g^2-a^2}[/tex]
I know this is a long winded response to a relatively simple question, but I am new to helping on the forums and trying to figure out how to use LaTeX. Sorry I am just a beginner myself, but I hope it may give you some insight into the math involved.