In this work, we analyze in detail the problem of piston driven shock waves planar media. Similarity solutions to compressible hydrodynamics equations are developed, for a strong wave, generated by time dependent pressure piston, propagating non-homogeneous medium consisting an ideal gas. Power law temporal and spatial dependency is assumed initial density, respectively. The similarity written ...