2)
Solve for x:
2008 abs(x^2 - x + 1/2008) = 1
Divide both sides by 2008:
abs(x^2 - x + 1/2008) = 1/2008
Split the equation into two possible cases:
x^2 - x + 1/2008 = 1/2008 or x^2 - x + 1/2008 = -1/2008
Subtract 1/2008 from both sides:
x^2 - x = 0 or x^2 - x + 1/2008 = -1/2008
Factor x from the left hand side:
x (x - 1) = 0 or x^2 - x + 1/2008 = -1/2008
Split into two equations:
x - 1 = 0 or x = 0 or x^2 - x + 1/2008 = -1/2008
Add 1 to both sides:
x = 1 or x = 0 or x^2 - x + 1/2008 = -1/2008
Subtract 1/2008 from both sides:
x = 1 or x = 0 or x^2 - x = -1/1004
Add 1/4 to both sides:
x = 1 or x = 0 or x^2 - x + 1/4 = 125/502
Write the left hand side as a square:
x = 1 or x = 0 or (x - 1/2)^2 = 125/502
Take the square root of both sides:
x = 1 or x = 0 or x - 1/2 = 5 sqrt(5/502) or x - 1/2 = -5 sqrt(5/502)
Add 1/2 to both sides:
x = 1 or x = 0 or x = 1/2 + 5 sqrt(5/502) or x - 1/2 = -5 sqrt(5/502)
Add 1/2 to both sides:
x = 1 or x = 0 or x = 1/2 + 5 sqrt(5/502) or x = 1/2 - 5 sqrt(5/502)
Sum of squares= 1^2 + [1/2 + 5 sqrt(5/502)]^2 + [1/2 - 5 sqrt(5/502)]^2 =1003 / 502