It was conquered from the Moors by the Count Ramon Berenguer IV of Barcelona [?] in 1148.
... left side is now a perfect square; it is the square of (x + b/(2a)). ...