Derivation of Marshallian and Hicksian demand from n-good Cobb-Douglas utility function