Assignment:
A curve is traced by a point P(x,y) which moves such that its distance from the point A(-1,1) is three times its distance from the point B(2,-1). Determine the equation of the curve.
Provide complete and step by step solution for the question and show calculations and use formulas.