The sum of all solutions in 0,4π of the equation tan+cotx+1=cosx+π4 is
3π
π2
7π2
4π
We have tanx+cotx=cosx+π4−1
tanx+cotx≤−2 and cosx+π4−1≥−2
It implies that equality holds when both are −2
cosx+π4=−1⇒x+π4=(2n+1)π,n∈z
⇒x=3π4 or 11π4⇒sum=7π2