1.
b = -a - c
ax² - (a+c)x + c = 0
D = a² + c² + 2ac - 4ac = a² + c² - 2ac = (a-c)²
x₁ = ((a+c)-(a-c))/2a = c/a
x₂ = ((a+c)+(a-c))/2a = 1
2.
b = a+c
ax² + (a+c)x + c = 0
D = a² + c² + 2ac - 4ac = a² + c² - 2ac = (a-c)²
x₁ = (-(a+c)-(a-c))/2a = -1
x₂ = (-(a+c)+(a-c))/2a = -c/a