Sorry, I don't have time to dig much out. The tldr is that we tend to overestimate the inputs like water and fertilizers and underestimate the massive amount of energy added by the sun.
But then you will need the space freed from agriculture for the solar energy production, instead of forests? In the end, isn't a field of corn a massive solar energy plant?