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