how to find the inverse algebraically