The first one is correct. I graphed it on desmos and it looks almost identical to the one in your picture.
5.6m questions
7.3m answers