Hi Daniel,
I think I might solve it if I get rid of square roots in it. I attempted to expand the f5 function in order to get rid of square roots because for my situation Det[f5]==0. I attempted by using Eliminate command as well as GroebnerBasis command. For some reasons it does not work...it takes more than 15 minutes.
eli=ReplaceAll[Sqrt[f5,D^2 - (x - c)^2]->u]
Eliminate[{eli==0,u^2==D^2 - (x - c)^2},u]
GroebnerBasis[{eli,u^2-D^2 + (x - c)^2},x,u]
Am I right with the code?