How to find the recurrence relation using domain range substitution method for the below: $$ T(n) = 2T\left(\frac{n}{2} +1\right) + n -2 $$
I am unable to get a pattern with this relation as it is really confusing. I am guessing the below for $T(n/2 + 1)$: $$ T\left(\frac{n}{2} +1\right) = 2T\left(\frac{n+2}{4}+1\right)+ \frac{n+2}{2} - 2 $$
When I substitute this for $T(n)$ it becomes a mess.
Can someone guide me in this please.