(1+tan x)^2= 2 tan x+2

please show all work

1 + 2 tan x + tan^2 x = 2 tan x + 2

tan^2 x - 1 = 0

tan x = 1 or -1
x = 45 or 135 or or 225 or 315 degrees