Why did Truman decide to use the atomic bomb to end the war?

to show the world a new superweapon

to test the effects of an atomic bomb on a city

to keep the Russians from entering the war

to quickly end the war without an invasion