WASHINGTON — FOR the past three decades, the Indian economy has grown impressively, at an average annual rate of 6.4 percent. From 2002 to 2011, when the average rate was 7.7 percent, India seemed to be closing in on China — unstoppable, and engaged in a second “tryst with destiny,” to borrow Jawaharlal Nehru’s phrase. The economic potential of its vast population, expected to be the world’s largest by the middle of the next decade, appeared to be unleashed as India jettisoned the stifling central planning and economic controls bequeathed it by Mr. Nehru and the nation’s other socialist founders.

But India’s self-confidence has been shaken. Growth has slowed to 4.4 percent a year; the rupee is in free fall, resulting in higher prices for imported goods; and the specter of a potential crisis, brought on by rising inflation and crippling budget deficits, looms.

To some extent, India has been just another victim of the ebb and flow of global finance, which it embraced too enthusiastically. The threat (or promise) of tighter monetary policies at the Federal Reserve and a resurgent American economy threaten to suck capital, and economic dynamism, out of many emerging-market economies.

But India’s problems have deep and stubborn origins of the country’s own making.

The current government, which took office in 2004, has made two fundamental errors. First, it assumed that growth was on autopilot and failed to address serious structural problems. Second, flush with revenues, it began major redistribution programs, neglecting their consequences: higher fiscal and trade deficits.