John Kenneth Galbraith, the iconoclastic economist, teacher and diplomat and an unapologetically liberal member of the political and academic establishment he often needled in prolific writings for more than half a century, died Saturday at a hospital in Cambridge, Mass. He was 97.