solve sqrt(x)=x-2

We solve in ℝ: x = x -2
We isolate the square root: x = x -2. Since the square root is nonnegative, square both sides, provided that x -2 ≥ 0:
x = (x -2)2
x -(x -2)2 = 0
ⓘ Raising a sum to a positive integer power means multiplying it by itself as many times as the exponent indicates: (x -2)2 = (x -2)·(x -2)
x -(x -2)·(x -2) = 0
ⓘ Multiply each term of the sum by the other factor, using the distributive law: -(x -2)·(x -2) = -(x·x + x·(-2) -2x -2·(-2))
x -(x·x + x·(-2) -2x -2·(-2)) = 0
ⓘ With a minus sign before parentheses, change the sign of every term inside: -(x·x + x·(-2) -2x -2·(-2)) = -x·x -x·(-2) + 2x + 2·(-2)
x -x·x -x·(-2) + 2x + 2·(-2) = 0
ⓘ A pair of minus signs cancels out: -x·(-2) = 2x■Group like terms by adding their coefficients: x -x·x + 2x = 3x -x2■Perform multiplications before additions and subtractions. In a product, a single minus sign remains: multiplying a negative number by a positive number gives a negative number: 2·(-2) = -4
3x -x2 + 2x -4 = 0
ⓘ Group like terms by adding their coefficients: 3x + 2x = 5x
5x -x2 -4 = 0
-x2 + 5x -4 = 0
Since -1 ≠ 0, divide both sides by -1: x2 -5x + 4 = 0
Given the quadratic form ax2 + bx + c, let's compute the discriminant: Δ = b2 -4ac. Here a = 1, b = -5 and c = 4
Δ = (-5)2 -4·1·4
ⓘ Powers are computed before multiplications, additions and subtractions. With a positive integer exponent, a power corresponds to a repeated product: (-5)2 = (-5)·(-5) = 25
Δ = 25 -4·4
ⓘ Perform multiplications before additions and subtractions: 4·4 = 16
Δ = 25 -16
ⓘ Start from 25 and move back 16 on the number line: 25 -16 = 9
Δ = 9
As Δ > 0, the equation has two roots:
The quadratic formula gives x1 = -b -Δ2a = -(-5) -92·1
x1 = 5 -92
ⓘ The square root of a nonnegative real number is the nonnegative number whose square is that number: 9 = 3 since 32 = 9
x1 = 5 -32
ⓘ The numerator and the denominator are computed before the division: 5 -3 = 2
x1 = 22
ⓘ We simplify the fraction by dividing the numerator and the denominator by 2, their greatest common divisor: 22 = 1
x1 = 1
The quadratic formula gives x2 = -b + Δ2a = -(-5) + 92·1
x2 = 5 + 92
ⓘ The square root of a nonnegative real number is the nonnegative number whose square is that number: 9 = 3 since 32 = 9
x2 = 5 + 32
ⓘ The numerator and the denominator are computed before the division: 5 + 3 = 8
x2 = 82
ⓘ We simplify the fraction by dividing the numerator and the denominator by 2, their greatest common divisor: 82 = 4
x2 = 4
Solutions obtained: x = { 1, 4 }
For x = 1, x -2 = -1 is negative, whereas a square root is never negative, so the solution is discarded
For x = 4, x -2 = 2 is nonnegative, so the solution is kept
▶Solution obtained: x = 4

The 100% free maths solver with steps

100% free

  • Access to every feature and every step
  • Unlimited queries
  • No signup required

Simple

  • Queries in natural language
  • Detailed explanations for every step
  • A simple interface for desktop and mobile

Reliable and lean

  • Fast calculations
  • Reproducible results
  • No AI, low energy use

For everyone

  • Calculation, differentiation, integration, solving, factoring, graphing...
  • Pupils, students, individuals, teachers…
  • Through high school and beyond