  We give improvements and generalizations of both the classical Hardy
inequality and the geometric Hardy inequality based on the divergence theorem.
Especially, our improved Hardy type inequality derives both two Hardy type
inequalities with best constants. Besides, we improve two Rellich type
inequalities by using the improved Hardy type inequality.
