$${x = x_0 + \frac{v_x^2 + v_{0x}^2}{2a_x}}$$