I was wondering on how to actually do this equation...like the whole thing

I was wondering on how to actually do this equation...like the whole thing class=