We want to minimize the equation below with respect to r.
$$\frac{b}{r}(n+2^r)$$
where b is a constant.
The professor suggested we take the derivative of the equation, set it equal to 0, and then solve for r.
By using the quotient rule and chain rule, I came to the conclusion that the derivative of the equation above is:
$$\frac{b(2^rrln2-n-2^r)}{r^2}$$
But from this point I'm unsure how to solve for r.
EDIT
The answers below are what I found on WolframAlpha as well, but they make me think something has been done incorrectly. This equation is supposed to represent an ideal r value for an equation that is an analysis of an algorithm, so having n=0 be the only case where an actual value is identifiable wouldn't be of much use. I also don't think he would assign this with the intent of us ending up with the Lambert-W function. He seemed like he was expecting a value.
Below I've included all the information I have, just in case I'm misinterpreting something.
$$T(n) = [\frac{b}{r}[n+2^r]]$$ We want to find the best size r, that is, we want to minimize T(n) with respect to r. Take the derivative of T(n) with respect to r. Where n is the number of entries, d is the number of digits per entry, and d is equal to b/r, where b is the number of bits in an entry. This is the equation representing an analysis of Radix sort, if that helps.