f(n)=2T(n/2)+T(n/3)+2n2+5n+42 be a shorthand for the right-hand side of the recurrence. We find an lower and upper bound for f by using T(n/3)≤T(n/2):
3T(n/3)+2n2+5n+42≤f(n)≤3T(n/2)+2n2+5n+42
If we use the lower resp. upper bound as right-hand side of the recurrence, we get T′(n)∈Θ(n2) in both cases by the Master theorem. Thus, T(n) is bounded from above by O(n2) and from below by Ω(n2) or, equivalently, T(n)∈Θ(n2).
- For a complete proof, you should prove that T is an increasing function.