How to get optimal solution

image
how to get optimal solution for \tau ?

-rel_entr(1-tau,1-tau+a*tau)

Thanks,you are right!