Elasticity of demand by calculus method