Defining and differentiating parametric equations