$a)$ Ta có : $P = I^2.R =(\dfrac{\xi}{R+r})^2.R$
$\Rightarrow 4=\dfrac{6^2}{R^2+4R+4}.R$
$\Rightarrow R^2 - 5R +4=0$
$\Leftrightarrow R=4 \Omega \text{hoặc} R= 1 \Omega$
$b)$ Ta có : $P = I^2.R = (\dfrac{\xi}{R+r})^2.R = \dfrac{\xi^2}{R+2r+\frac{r^2}{R}}$
Vì suất điện động và r không đổi :
$P=P_{max} \Leftrightarrow (R+\dfrac{r^2}{R}) \text{min}$
Theo BĐT Cô si :
$R + \dfrac{r^2}{R}$ `>=` $2\sqrt{R. \dfrac{r^2}{R}}$
$\Rightarrow R + \dfrac{r^2}{R}$ `>=` $2r$
Dấu '=' xảy ra $\Leftrightarrow R=\dfrac{r^2}{R}$
$\Leftrightarrow R=r=2 \Omega$
Khi đó : $P_{max} = \dfrac{\xi^2}{4R} = 4,5 W$