sounds more like someone preparing for olympiad and mucking around here.
anyway, the first graph is called a cardiod, it looks like a heart, why don't you plot it with some software or just search cardiod up the net
the second question.
say A is on the point (a,0) and B is on the point...