solve f x x 3