Following the hint, we let
Then
and so we have
To substitute back to an expression with x you need to undo the original substitution
With the help of a little diagram (included below) and the Pythagorean theorem to see that
and hence
completing the question.