Loops, cusps and dimples

Investigate different values of a and b, and find out the relationships between a and b for the curve to have loops, cusps or dimples. Use the slider for t to move the tangent round the curve. Notice the difference between the behaviour of the tangent at a cusp and at a dimple.