When the going gets rough, a pep talk from former president Barack Obama may come in handy.
A day after president Donald Trump's downcast speech on terrorism and political adversaries during the U.N. General Assembly (UNGA), Obama discussed the power of optimism at the inaugural Bill & Melinda Gates Foundation's "Goalkeepers" event.
In his speech, Obama notes the world's challenges, including growing economic inequality, a changing climate, mass migration and the rise of nationalism and xenophobia.
When it's time for you to confront future hurdles, roadblocks and disappointment and when others are "purposefully undermining efforts you know can make a difference," there is only only way to respond, Obama says, if you want to be successful.
"Your response has to be to reject cynicism and reject pessimism and push forward, with a certain infectious and relentless optimism," he says. "Not blind optimism, not one that ignores the scale and scope of our challenges, but that hard-earned optimism, that's rooted in the stories of very real progress that have occurred throughout human history."
"We have to reject the notion that we're suddenly gripped by forces that we cannot control," Obama says. "We've got to embrace the longer and more optimistic view of history and the part that we play in it."
But how can anyone be optimistic under those conditions, you may ask? Obama wants you to consider this: "By just about every measure, America is better — and the world is better — than it was 50 years ago, 30 years ago or even 10 years ago."
"I know that statement doesn't jibe with the steady stream of bad news and cynicism that we're fed through television and Twitter," Obama says.
He then points out that although he was "born at a time when women and people of color were systematically, routinely excluded from enormous portions of American life," today they now have the opportunity to rise in all professional fields.
Obama says it's important to remember that small successes accumulate to create progress for humankind.
"Each new generation stands on the successes of the previous generation," he says, bending "that arc of history in the direction of more freedom and more opportunity and more justice."
"I have great faith in you," he says, "and I'm certain that if you keep pushing forward, then America and the world are going to be just fine."
Like this story? Like CNBC Make It on Facebook.