Combining Step Gradients and Linear Gradients in Density