In all of these cases, economic failure and a lack of opportunities and hope for the poor and young are fueling political and religious extremism, resentment of the West and, in some cases, outright terrorism.