Answer
$y'=\frac{tan(x)}{cos(x)-1}$
Work Step by Step
$y=ln|\frac{cos(x)}{cos(x)-1}|$
$=ln(cos(x)-ln(cos(x)-1)$
$y’=\frac{-sin(x)}{cos(x)}-\frac{-sin(x)}{(cos(x)-1)}$
$=-\frac{sin(x)}{cos(x)}=\frac{sin(x)}{(cos(x)-1)}$
$=\frac{-(sin(x)cos(x)+sin(x)+(sin(x)cos(x)}{cos(x)(cos(x)-1)}$
$=\frac{sin(x)}{cos(x)(cos(x)-1)}$
$=\frac{tan(x)}{cos(x)-1}$