How do you solve this differential equation:

1/2(f')^2 + f - 1/3 (f)^3 = C

I think the answer for f should have a tanh function somewhere in it.

Thanks