This is very, very difficult to understand.
I'm not seeing any tangents or cotangents in there. This leads me to believe that you really are not understanding the problem or that you have reported the problem inaccurately.
Just EXACTLY what is the problem statement and what EXACTLY were your efforts to solve it?
Note: Try to remember that honesty does not imply insult.