Alper, a 26-year-old Turkish corporate lawyer, has benefited enormously from Prime Minister Recep Tayyip Erdogan’s rule. He is one of millions of young Turks who rode the country’s economic boom to a lifestyle his grandparents could scarcely imagine.

Yet he loathes Erdogan, participated in the Taksim Square demonstrations and is taking part in the new “standing man” protests in Istanbul.

“The prime minister is continuing to blatantly lie about the demonstrations,” said Alper, who asked that his last name not be used because he feared arrest. “People are actually scared that if they stop this momentum, then the government will feel free to exercise more force.”

From Turkey to Brazil to Iran the global middle class is awakening politically. The size, focus and scope of the protests vary, but this is not unfolding chaos — it is nascent democracy. Members of the middle class and other protesters are demanding basic political rights, accountable governments and a fairer share of resources.

The movements may lose their way. The demonstrations will have a limited long-term impact if they fail to become organized political movements. And the violence and criminality that erupted during some protests in Brazil have prompted a popular backlash.

Overall, though, Americans jaded about world affairs should see the protests as positive. The demonstrators are performing the same role as middle classes have in developed nations for decades. As their standard of living rises, so do their expectations of government.

The political dynamic in each country is different, of course. First, Turkey. The protests are not the equivalent of the Arab Spring demonstrations that toppled governments across the Middle East. Nor are they a pitched battle between religious conservatives and secular liberals. Instead, they are deeply Turkish — and hugely important.

After decades of the Turkish state reigning supreme, young Turks are demanding pluralism and basic individual rights. The Turkish state should be accountable to the people, they argue, instead of the people being accountable to the state.

“Basic freedoms such as the right to peaceful assembly are undermined by police and government,” Alper said in an email. “There have been no significant repercussions for police officers and their superiors.”

For years, Soli Ozel, a professor of international relations and political science at Istanbul Bilgi University, scoffed at Westerners who viewed Turkey as a model for the Middle East. The new protests, however, make him feel the label may apply.

“After this unprecedented mobilization,” he said in a telephone interview, “we now have a very vibrant and very much alive civil society.”

Brazil presents a different dynamic. The ruling Workers’ Party is left-leaning, enacting economic reforms that have helped the country’s poor and middle class. But now a souring economy, corruption scandals and $12 billion in government spending on stadiums for the 2014 World Cup has sparked one million people to participate in protests.

Marcelo Ridenti, a leading Brazilian sociologist, said reduced inequality and increased education levels have raised expectations. The number of university students in Brazil, for example, doubled in the years from 2000 to 2011.

“This generates huge changes in society, including changes in expectations among young people,” he told The New York Times. “They expect to get not only jobs, but good jobs.”

Recent events in Iran are more difficult to discern. While Brazil and Turkey’s political systems are relatively open, Iran’s is tightly controlled. Until last weekend’s presidential election, hard-line religious leaders seemed to have tightened their grip on power after crushing the country’s 2009 Green Revolution.

In a major upset, cleric Hassan Rowhani won a sweeping victory in presidential elections last weekend. Pro-reform and urban Iranians frustrated with the country’s weak economy, isolation and conservative monopoly on power handed Rowhani the presidency. Rowhani may prove to be more conservative than expected, but his victory prompted thousands of Iranians to take to the streets.

“I am hopeful about the future,” Hoda, a 26-year-old who asked that her last name not be used, told Reuters. “Hopeful that we will have more social freedoms, more stability in Iran, better relations with other countries and hopefully a much better economy.”

Comparing political movements in different countries carries risks. Sweeping statements undercut themselves. But analogies are being made.

The protests in Brazil have been likened to India’s anti-corruption movement, austerity protests in Europe and the Occupy Movement in the United States and Israel. My focus on Turkey, Brazil and Iran is driven by recent events and optimism. Positive dynamics are at work in all three.

First, the explosive spread of social media played a role in the three movements. Networks of like-minded people were able to immediately communicate with one another — and potential recruits. Some online information has been false, but technological change has unquestionably sped up the pace of political organizing.

Second, all three demand basic individual rights and accountable government. They want non-corrupt leaders who respect their right to protest, gather and speak freely. From minority rights in Turkey, to fair elections in Iran, to improved policing, health care and transit in Brazil, protesters want improved governance.

There will be setbacks, excesses and confusion in the weeks ahead. But the burgeoning middle-class political activism in Turkey, Iran and Brazil should be hailed. Like its counterparts in developed countries, it is a check on government excess — and will create stronger, more vibrant societies.

Maine native David Rohde is a columnist for Reuters, a two-time winner of the Pulitzer Prize, and a former reporter for The New York Times and Christian Science Monitor.