Đk: \(\forall x\in R\)
Ta có:\(\sqrt{x^2+1-2x}+\sqrt{x^2+4x+4}=\sqrt{1+2020^2+\frac{2020^2}{2021^2}}+\frac{2020}{2021}\)
<=> \(\sqrt{\left(x-1\right)^2}+\sqrt{\left(x+2\right)^2}=\sqrt{1+2020^2+2.2020+\frac{2020^2}{2021^2}-2.2020}+\frac{2020}{2021}\)
<=> \(\left|x-1\right|+\left|x+2\right|=\sqrt{\left(1+2020\right)^2+\frac{2020^2}{2021^2}-2.2020}+\frac{2020}{2021}\)
<=> \(\left|x-1\right|+\left|x+2\right|=\sqrt{\left(2021-\frac{2020}{2021}\right)^2}+\frac{2020}{2021}\)
<=> \(\left|x-1\right|+\left|x+2\right|=\frac{2021^2-2020}{2021}+\frac{2020}{2021}\)
<=> \(\left|x-1\right|+\left|x+2\right|=2021\)
Lập bảng xét dầu
x -2 1
x - 1 - | - 0 +
x + 2 - 0 + | -
Xét các TH xảy ra :
TH1: x \(\le\)-2 => pt trở thành: 1 - x - x - 2 = 2021
<=> -2x = 2022 <=> x = -1011 (tm)
TH2: \(-2< x\le1\) => pt trở thành: 1 - x + x + 2 = 2021
<=> 0x = 2018 (vô lí) => pt vô nghiệm
TH3: \(x>1\) => pt trở thành: x - 1 + x + 2 = 2021
<=> 2x = 2020 <=> x = 1010 (tm)
Vậy S = {-1011; 1010}