tanx+tan(45-x)(1+tanx)
=tanx+[(tan45-tanx)/(1+tan45tanx](1+tanx)
=tanx+[(1-tanx)/(1+tanx](1+tanx)
=tanx+(1-tanx)
=1