Of course, that's not to say that the two answers you gave aren't correct. They are. In fact, all three answers are correct. If you want proof, differentiate.
In future to check the answer you can try substituting a few values, if they give the same solutions for the same values of x, chances are the answers are the same.