How to find transfer function by state space representation matrices
Use the fact that $\dot x_1 = s x_1$ and take it from there. It appears that your result is correct.

It should be noted that there is a closed form expression to map a state-space representation to a transfer function. However, it includes inverting a matrix with s variables and may hence be more challenging than just solving it as stated above