Subverting democracy

Important politicians and commentators believe that at the root of terrorism there is poverty and a lack of education. In truth many terrorists come from the middle classes and are well educated. So who are the terrorists, what are they thinking and what motivates them?