A ball on a spring
Set the spring constant
1 N/m 4 N/m
Set the mass of the ball
1 kg 4 kg
Set the damping parameter
0 1
Graph (versus time):
Graph (versus position):

A ball on a spring moves horizontally. If the damping is set to zero, the surface is frictionless. The larger the damping, the larger the friction.

The ball is always released from rest when the spring is stretched 1.0 m from its natural length.

Check out all the different graphs, and compare the zero friction case to the case with friction.