Bài 2:
a: \(M=\dfrac{x^2+2x}{2\left(x+5\right)}+\dfrac{x-5}{x}+\dfrac{50-5x}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+2x^2+2\left(x-5\right)\left(x+5\right)+50-5x}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+2x^2+50-5x+2x^2-50}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+4x^2-5x}{2x\left(x+5\right)}=\dfrac{x\left(x^2+4x-5\right)}{2x\left(x+5\right)}=\dfrac{x-1}{2}\)
b: Khi x=3 thì \(M=\dfrac{3-1}{2}=\dfrac{2}{2}=1\)
Khi x=5 thì \(M=\dfrac{5-1}{2}=\dfrac{4}{2}=2\)