Bài 3:
b: Ta có: \(\sqrt{x^2-2x+1}=\left|x-2\right|\)
\(\Leftrightarrow\left|x-1\right|=\left|x-2\right|\)
\(\Leftrightarrow x-1=2-x\)
\(\Leftrightarrow2x=3\)
hay \(x=\dfrac{3}{2}\)
Bài 4: ĐK: x>0
a) \(B=\dfrac{x^2+\sqrt{x}}{x-\sqrt{x}+1}+1-\dfrac{2x+\sqrt{x}}{\sqrt{x}}\)
\(\Leftrightarrow B=\dfrac{\sqrt{x}\left[\left(\sqrt{x}\right)^3+1\right]}{x-\sqrt{x}+1}+1-\dfrac{\sqrt{x}\left(2\sqrt{x}+1\right)}{\sqrt{x}}\)
\(\Leftrightarrow B=\dfrac{\sqrt{x}.\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}{x-\sqrt{x}+1}+1-2\sqrt{x}-1\)
\(\Leftrightarrow B=\sqrt{x}.\left(\sqrt{x}+1\right)-2\sqrt{x}=x+\sqrt{x}-2\sqrt{x}\)
\(\Leftrightarrow B=x-\sqrt{x}\)
Vậy với x>0 thì \(B=x-\sqrt{x}\)
b) Ta có: \(B=2\)
\(\Leftrightarrow x-\sqrt{x}=2\)
\(\Leftrightarrow x-\sqrt{x}-2=0\)
\(\Leftrightarrow x-2\sqrt{x}+\sqrt{x}-2=0\)
\(\Leftrightarrow\sqrt{x}.\left(\sqrt{x}-2\right)+\left(\sqrt{x}-2\right)=0\)
\(\Leftrightarrow\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)=0\)
Do \(\sqrt{x}+1>0\) nên, ta suy ra:
\(\sqrt{x}-2=0\Leftrightarrow\sqrt{x}=2\Leftrightarrow x=4\) \(\left(TMĐK\right)\)
Vậy \(x=4\) thì \(B=2\)
Bài 4:
a: Ta có: \(B=\dfrac{x^2+\sqrt{x}}{x-\sqrt{x}+1}-\dfrac{2x+\sqrt{x}}{\sqrt{x}}+1\)
\(=\sqrt{x}\left(\sqrt{x}+1\right)-\left(2\sqrt{x}+1\right)+1\)
\(=x+\sqrt{x}-2\sqrt{x}-1+1\)
\(=x-\sqrt{x}\)
b: Để B=2 thì \(x-\sqrt{x}-2=0\)
\(\Leftrightarrow\sqrt{x}-2=0\)
hay x=4