f[x_, y_] := (n!/(a! * b! * (n-a-b)!)) * x^a * (y-x)^b * (1-y)^{n-a-b}
D[f[x, y],x, y]
ToString[TeXForm[D[f[x, y],x, y]]]
\left\{\frac{a b n! x^{a-1} (y-x)^{b-1} (1-y)^{-a-b+n}}{a! b! (-a-b+n)!}-\frac{a n!\ > x^{a-1} (-a-b+n) (y-x)^b (1-y)^{-a-b+n-1}}{a! b! (-a-b+n)!}-\frac{(b-1) b n! x^a\ > (y-x)^{b-2} (1-y)^{-a-b+n}}{a! b! (-a-b+n)!}+\frac{b n! x^a (-a-b+n) (y-x)^{b-1}\ > (1-y)^{-a-b+n-1}}{a! b! (-a-b+n)!}\right\}
CopyToClipboard[ToString[TeXForm[D[f[x, y],x, y]]]]