Hi Brian,
It is customary to use \, instead of \text{ } to achieve the appropriate spacing before dx in an integral. It's good to know the spacing commands \, \; and \quad.
Thanks! This is very useful for me.