lhs function and inverse