(log y2 - log y1) / (x2 - x1)
Then if we scale y2 and y1 both by c, which is 1 / population:
(log( c * y2 ) - log( c * y1 )) / (x2 - x1) =
(log c + log y2 - log c - log y1) / (x2 - x1) =
(log y2 - log y1) / (x2 - x1)
So scaling by population does not change the slope of the graphs, only the intercept.
What do you want to learn from (cases) / (people in infected area)? The denominator seems difficult to define since it's not scale invariant. If you defined an "infected area" as being within 1 km of an infected person, for example, you'd get a very different answer from if you defined infected area as 10 km from an infected person.
In the limiting cases where you define infected area with very fine or very course granularity, you get an infection rate of 1.