a. M=\(\frac{1}{x-2}-\frac{1}{x+2}+\frac{x^2+4x}{x^2-4}\)
\(M=\frac{1}{x-2}-\frac{1}{x+2}+\frac{x^2+4x}{\left(x-2\right)\left(x+2\right)}\) MC = (x-2)(x+2)
\(M=\frac{x+2}{\left(x-2\right)\left(x+2\right)}-\frac{x-2}{\left(x+2\right)\left(x-2\right)}+\frac{x^2+4x}{\left(x-2\right)\left(x+2\right)}\)
\(M=\frac{x+2-x+2+x^2+4x}{\left(x-2\right)\left(x+2\right)}\)
\(M=\frac{x^2+4x+4}{\left(x-2\right)\left(x+2\right)}\)
\(M=\frac{\left(x+2\right)^2}{\left(x-2\right)\left(x+2\right)}\)
\(M=\frac{x+2}{x-2}\)
b. Ta có: \(M=\frac{x+2}{x-2}=\frac{x-2+2+2}{x-2}=\frac{x-2+4}{x-2}=\frac{x-2}{x-2}+\frac{4}{x-2}=1+\frac{4}{x-2}\)
Để M đạt giá trị nguyên thì \(\frac{4}{x-2}\) cũng phải đạt giá trị nguyên
\(\Leftrightarrow\left(x-2\right)\inƯ\left(4\right)=\left\{1;-1;2;-2;4;-4\right\}\)
\(\Leftrightarrow x=\left\{3;1;4;0;6;-2\right\}\)
a) \(M=\frac{1}{x-2}-\frac{1}{x+2}+\frac{x^2+4x}{\left(x+2\right)\left(x-2\right)}\)
\(\Rightarrow M=\frac{x+2-\left(x-2\right)+x^2+4x}{\left(x+2\right)\left(x-2\right)}\)
\(\Rightarrow M=\frac{x+2-x+2+x^2+4x}{\left(x+2\right)\left(x-2\right)}\)
\(\Rightarrow M=\frac{x^2+4x+4}{\left(x+2\right)\left(x-2\right)}=\frac{\left(x+2\right)^2}{\left(x+2\right)\left(x-2\right)}=\frac{x+2}{x-2}\)
b) \(\frac{x+2}{x-2}=\frac{x-2+4}{x-2}=\frac{x-2}{x-2}+\frac{4}{x-2}=1+\frac{4}{x-2}\)
\(\Rightarrow x-2\inƯ_4\left\{-4;-2;-1;1;2;4\right\}\)
Ta có :
\(x-2=-4\Rightarrow x=-2\) (loại)
\(x-2=-2\Rightarrow x=0\)
\(x-2=-1\Rightarrow x=1\)
\(x-2=1\Rightarrow x=3\)
\(x-2=2\Rightarrow x=4\)
\(x-2=4\Rightarrow x=6\)
Vậy: Các giá trị của x để \(M\in Z\) là:
\(x=0;1;3;4;6\)