yes, the first equality is pretty much by definition. i'd just assume it is true. after that, your biggest mistake is thinking that you can integrate like that. your integral is wrong (it would probably do you good to look up how to (and when you can) integrate exponential functions. to integrate this, switch to polar coordinates