Study of a non-interacting, nonuniform electron gas in two dimensions