Set up basic equation