We have,
y=a1/2logacosx
On differentiating both sides w.r.t x, we get
dydx=a1/21cosxlogea×−sinx
dydx=−a1/2tanxlogea
Hence, this is the answer.