It is given that tanα=xx+1 and tanβ=12x+1.
It is known that tan(α+β)=tanα+tanβ1−tanαtanβ, then,
tan(α+β)=xx+1+12x+11−(xx+1)(12x+1)
=x(2x+1)+(x+1)(x+1)(2x+1)(x+1)(2x+1)−x(x+1)(2x+1)
=2x2+x+x+12x2+x+2x+1−x
=2x2+2x+12x2+2x+1
=1
(α+β)=tan−1(1)
α+β=π4