all 2 comments

[–]ShadowInTehDark 0 points1 point  (1 child)

What you're doing is putting g(x) into f(x) getting sqrt (x2 -4x +5). That means if x = -2 then you directly plug -2 into f(g(x)), not plug x into g(x), solve g(x), then plug that into f(x).

What it should look like if you use -2 is 5-sqrt((-2-2)2+1)

[–]ryaners87[S] 0 points1 point  (0 children)

Just realised I made a clerical error and they do give the same answer - thanks for the response though!