Inverse

This is the dead-simple approach to #1. It doesn't address #2, and inverts the function by brute force bisection search instead of analytically.

Offered merely as a starting point.