How to animate a camera to follow an object
Create an Empty and parent the camera to that instead of the actual object. Then add a Copy Location constraint to the Empty to copy the location of the object, ignoring the rotation. To get a delay between the object and the camera (so the camera lags behind the motion) you can use the Slow Parent option when parenting the camera to the Empty.