The process is as follows:
P= group x 2+y 2
y=p*sin(sita)
x=p*cos(sita)
Two variants of the formula are multiplied by p at the same time,
Try simplifying instead.
If there is no problem with the topic, it should be transformed into an equation in rectangular coordinate system.