I have some data in polar coordinates:
datar = Import["https://pastebin.com/raw/CM7Rj6jC", "Table"];
datar1 = Rescale[datar[[All, 2]]];
datar2 = Rescale[datar[[All, 3]]];
plot2 = ListPolarPlot[{datar1, datar2}]
I want to fit the two curves to the equation: $r=A\cos^{2}\left(t+\phi\right)$, where $t$ is the angle and $A$ and $\phi$ are constants to be determined for each curve. How can I find those constants and overlay the fitting to the data?