gpt-4-0314· OpenAI
WildChat-4.8M (AI2)
solve x^2 + 2x - 15 = 0
- User
solve x^2 + 2x - 15 = 0
- Assistant
To solve the quadratic equation x^2 + 2x - 15 = 0, we can use the quadratic formula:
x = (-b ± √(b^2 - 4ac)) / 2a
where a = 1, b = 2, and c = -15.
First, find the discriminant, which is b^2 - 4ac:
Discriminant = 2^2 - 4(1)(-15) = 4 + 60 = 64
Now, use the quadratic formula:
x = (-2 ± √(64)) / 2(1) x = (-2 ± 8) / 2
We have two possible solutions:
- x = (-2 + 8) / 2 = 6 / 2 = 3
- x = (-2 - 8) / 2 = -10 / 2 = -5
So the solutions are x = 3 and x = -5.