If a body moves with varying speed in a fixed direction i.e., with variable velocity, the displacement-time graph is not a straight line, but it is a curve. The velocity at any instant can then be obtained by finding the slope of the tangent drawn on the curve at that instant of time.
