How can I get the derivative of the following formula with respect to X?
$$ g = \frac{X\exp({Y' X)} Z (Z)^{\exp{(Y'X)}}}{1-Z^{\exp{(Y'X)}}}$$
where X is a vector of unknown parameters and Y is a vector same length as X but known, such that for example if the length of parametr X is 2, we have $$X_1 *Y_1+X_2*Y_2+X_3*Y_3$$ Also Z is a vector which is known.