So I stumbled upon a question here to find an asymptotic bound for the recurrence $$ T(n) = 4T(n/4) + \left( \frac {n} {\log n} \right)^2 $$
The solution shows a solution using master method to prove the answer as $O(n)$ However, I tried to solve it using substitution as:
$$T(\frac {n} {4^i}) = 4^{i+1} T(\frac {n} {4^{i+1}} ) + \sum_{j=0}^{i} \frac {n^2} {4^j {(\log \frac{n}{4^j})^2} }$$
I then get $$ T(n) = 4^{x+1}(Base Constant) + \sum_{j=0}^{logn -1} \frac {n^2} {4^j {(log \frac{n}{4^j})^2} }$$ $x=\log n$
Now for the summation: $$n^2\sum_{j=0}^{\log n -1} \frac {1} {4^j {(log(n) - j\log (4))^2} }$$
All logarithms to be taken base 4: $n^2\sum_{j=0}^{\log n -1} \frac {1} {4^j {(\log (n) - j)^2} }$
Now, the first substitution I made was $t = \log n -j $
$n^2\sum_{j=1}^{\log n -1} \frac {4^t} {4^{\log n} {t^2} }$
= $n^2\sum_{j=1}^{\log n -1} \frac {4^t} {n {t^2} }$ = $n\sum_{j=1}^{\log n -1} \frac {4^t} { {t^2} }$
Using wolfram and wkipedia, the sum comes out to $Li2(4) -n Lerch Function(4,2,\log (n)-1)$
I could simple assume this is constant and that would prove my bound to be $O(n)$ as the master theore suggests, but I ahve no proof to bound the Lerch and dilogarithmic function.
Another substitution I tried was
$$ t=4^j (\log n -j)^2 $$ which gives me $$n^2 H(n) - H((\log n)^2) $$ where $H(n)$ is the nth harmonic number I again could not reach a bound for this, besides $\log (n) - \log (\log n) $ which is quite different from my first substitution.
If someone could help me with what error I'm making, or why the substitutions yield different results that would be great.