Show that .

OK, so I'm trying to think through this but getting something completely different. I'm starting with knowing that:

But also that:

So when I substitute these in, I'm instead getting the following:

Which I know is just off by an . It seems to me that they get the second derivative formula like this:

But I don't really understand why it's that way. That seems like to me. Why is it done that way?