Answer:
a = 1.5
b = 1.75
Step-by-step explanation:
First, we need to solve [tex](x+a)^2[/tex] and replace the result in the initial equation as:
[tex]x^2+3x+4=(x+a)^2+b\\x^2+3x+4=x^2+2ax+a^2+b[/tex]
Then, this equality apply only if the coefficient of [tex]x[/tex] is equal in both sides and the constant is equal in both sides.
It means that we have two equations:
[tex]3x=2ax\\4=a^2+b[/tex]
So, using the first equation and solving for a, we get:
[tex]3x=2ax\\3=2a\\a=\frac{3}{2}=1.5[/tex]
Finally, replacing the value of a in the second equation and solving for b, we get:
[tex]4=a^2+b\\4=1.5^2+b\\b=4-1.5^2\\b=4-2.25\\b=1.75[/tex]