Looks like you've got a fifth order polynomial on your hands. Probably best to solve via graphical or numerical methods.
Why not start by wrestling it into polynomial form f(D) = 0? Don't be afraid to replace the clutter of other variables (which will have constant values for a given D) with new constants that you can define accordingly.