When I tried to derive the Wien's displacement law I used Planck's law for blackbody radiation:
$I_\nu = \frac{8 \pi \nu^2}{c^3} \frac{h \nu}{e^{h\nu/k_bT}-1}$
Asking for maximum:
$\frac{dI_\nu}{d \nu}=0:~0= \frac{\partial}{\partial\nu}(\frac{\nu^3}{e^{h \nu/k_bT}-1}) = \frac{3\nu^2(e^{h \nu/k_bT}-1) - \nu ^3h/k_bT \cdot e^{h\nu/k_bT}}{(e^{h \nu/k_bT}-1)^2}$
It follows that numerator has to be $0$ and looking for $\nu>0$:
$3(e^{h \nu/k_bT}-1) - h \nu/k_bT \cdot e^{h\nu/k_bT}=0$
Solving for $\gamma=h\nu/k_bT$:
$3 (e^\gamma-1) - \gamma e^\gamma=0 \rightarrow \gamma=2.824$
Now I look at the wavelength domain:
$\lambda = c/\nu:~ \lambda =\frac{h c}{\gamma k_b} \frac{1}{T}$
but from Wien's law $\lambda T = b$ I expect that $hc/\gamma k_b$ is equal to $b$ which is not:
$\frac{h c}{\gamma k_b}= 0.005099$, where $b = 0.002897$
Why the derivation from frequency domain does not correspond the maximum in wavelength domain?
I tried to justify it with chain rule:
$\frac{dI}{d\lambda} = \frac{dI}{d\nu} \frac{d \nu}{d \lambda} = \frac{c}{\nu^2} \frac{dI}{d \nu}$
where I see that $c/\nu^2$ does not influence where $dI_\lambda/d \lambda$ is zero.