You can plug your description above into the Pythagorean Theorem and solve for x
a2 + b2 = c2
a = longer leg = 2x -1
b = shorter leg = x
c = hypotenuse = 2x + 1
(2x - 1)2 + x2 = (2x + 1)2
PEMDAS
4x2 - 4x + 1 + x2 = 4x2 + 4x + 1
5x2 -4x +1 = 4x2 + 4x + 1
Combine like terms by moving every thing to one side of the equal sign this sets the resulting quadratic equal to 0
5x2 -4x2 -4x -4x +1 -1 = 0
x2 - 8x = 0
Add 8x to both sides of the equation
x2 = 8x
Divide both sides by x to give
x2/x = 8
x = 8
Just plug this value back into the substitutions above to check
x = 8 = The Shorter Leg
2x - 1 = 2(8) - 1 = 16 -1 = 15 = The Longer Leg
2x + 1 = 2(8)+1 = 16 + 1 = 17 = The Hypotenuse
(2(8) -1)2 + 82 = (2(8) + 1)2
(16 -1)2 + 82 = (16 + 1)2
152 + 82 = 172
225 + 64 = 289
The set up
4x2 - 4x +1 + x2 = 4x2 + 4x + 1 Can also be arranged to isolate x2 right away as
x2 = 4x2 + 4x + 1 - (4x2 - 4x +1)
x2 = 4x2 + 4x + 1 - 4x2 + 4x -1
x2 = 4x2 - 4x2 + 4x + 4x + 1 - 1
The 4x2 and 1 cancel out to give
x2 = 8x
Dividing both sides by x gives
x2/x = 8
x = 8
I hope you find this useful if you have any questions please send me a message.