In a camera, focusing adjusts the lens-to-sensor distance to satisfy the lens equation 1/f = 1/u + 1/v. The lens must be positioned so that the image forms precisely on the sensor/film. Moving the lens changes the image distance to achieve sharp focus at different object distances.