(* Created with the Wolfram Language : www.wolfram.com *)
{{(-2 + d)/z, 0, 0}, {0, 0, 3}, {(-2 + d)^2/(2*(-1 + z)*z^2*(-1 + 9*z)), 
  -1/2*((-3 + d)*(-8 + 3*d)*(-1 + 3*z))/((-1 + z)*z*(-1 + 9*z)), 
  (-4 + d + 100*z - 30*d*z - 144*z^2 + 45*d*z^2)/(2*(-1 + z)*z*(-1 + 9*z))}}
