设向量a=(2,4),b=(m,-1).(1)若a⊥b,求实数m的值;(2)若|a+b|=5,求实数m的值.

问题描述:

设向量

a
=(2,4),
b
=(m,-1).
(1)若
a
b
,求实数m的值;
(2)若|
a
+
b
|=5,求实数m的值.

(1)由

a
b

a
b
=2m-4=0,
得m=2;
(2)由
a
+
b
=(2+m,3),
|
a
+
b
|=
(2+m)2+32
=5,
解得m=2,或m=-6.