The velocity is defined as rate of change of distance with respect to time
.
.
Observe the graph of the position function.
\Find the velocity for the time period
.
So the points in the interval
are
and
.
Velocity in the interval 

.
Velocity of the function in the interval
is
.
Find the velocity for the time period
.
So the points in the interval
are
and
.
Velocity in the interval 

.
Velocity of the function in the interval
is
.
Find the velocity for the time period
.
So the points in the interval
are
and
.
Velocity in the interval 

.
Velocity of the function in the interval
is
.
Graph:
\Graph the velocity function as follows
\Draw a step of amplitude 50 in the interval
as
.
Draw a step of amplitude 0 in the interval
as
.
Draw a step of amplitude 30 in the interval
as
. 
The graph of velocity function is
\
.