I'm having a bit of trouble showing that the Gelfand transform $A \rightarrow C(\operatorname{sp}(A))$ is isometric iff $\|x^2\| = \|x\|^2$ for a general unital commutative Banach algebra. For a $C^*$ algebra, where we know $xx^*$ is closed in $A$ then this task is simple however I can't see a way of showing this for a general Banach algebra.
Could someone please give me a push in the right direction?
For reference, the $C^*$ algebra proof I know relies on using $y = xx^*$ to show something along the lines of $\|\hat{x}\|^2 = \|\hat{x}\hat{x}^*\| = \|x\hat{x}^*\| =\|\hat{y}\| = \|y\| = \|xx^*\| = \|x^2\|$.