First, note that ## \tilde{r}(0) = A + B = 0 ##, because the pendulum starts off at the origin. This equation gives ## A = -B ##. Next, calculate the time derivative of ## \tilde{r} ##, evaluate it at time zero, and set it equal to ## v_0 + i(0) = v_0##: