I have an implicit equation relating P1, P2, Q:
P1 - P2 - k * ( f(P1,Q) + g(P2,Q) ) = 0
ie. given P1, P2, I can find Q by iteration. I know the functions f and g and also have their analytical derivatives.
I need to find partial derivatives dQ/dP1 and dQ/dP2