Step-by-step explanation:
Explosion is defined as violent shattering or blowing of something. during explosion a rapid expansion in volume takes place with release of large amount energy in the from of heat and loud sound as a shock wave
Dynamite explosion: Dynamite is absorbent material which soaked in nitroglycerin. Small wick on the dynamite is lit by which spark is send inside the dynamite which leads to the explosion. A single dynamite explosion creates large amount heat and loud sound.
Firework explosion: In fireworks, the small amount of explosive substance is present with some metallic salts. They are comparatively small in size from the dynamites. By lighting the wick sparks are send inside to the explosive substance which on explosion gives heat, sound and color(which creates sense of joy). Less heat and sound is generated during firework explosion as compare to dynamites.