Unsure how to treat y in this derivative/log problem

Need to find the derivative of $h(y)=\mathrm{ln}({y}^{2}\mathrm{cos}y)$

Treating it like a normal variable like an x isn't working for me, the way we used y's in earlier problems where you get a y' in there doesn't seem right, so I'm not quite sure here.

Need to find the derivative of $h(y)=\mathrm{ln}({y}^{2}\mathrm{cos}y)$

Treating it like a normal variable like an x isn't working for me, the way we used y's in earlier problems where you get a y' in there doesn't seem right, so I'm not quite sure here.