Another way of doing the first one:
Since x=2 (the root)
sub. x=2 into the equation because whenever we sub a root into the equation it satisfies it, we want to find the value of m such that when we sub x=2 in, we get 0
4+4m-6=0
4m=2
.: m=1/2
I think this is approach is more logical and easier to understand
Here's a slight variation on the second using product of roots:
let the roots be k and k+1, then:
k(k+1)=2
k^2+k=2
k^2+k-2=0
(k+2)(k-1)=0
.: k= -2, 1
Now if we use sum of roots then we get this:
k+k+1= -m
sub. values of k in
-4+1=-m
m= 3
1+1+1=-m
m=-3