Find the value of,
tan−1(cos x−sin xcos x+sin x), for 0<x<π.
Express tan−1cosx1−sinx,−3π2<x<π2 in the simplest form.