已知P1(x1,y1),P2(x2,y2)是直线ax+by+c=0(b≠0)上的两点,则P1P2的长是(  ) A.a2+b2|b||x1-x2| B.1a2+b2|x1-x2| C.a2+b2|x1-x2| D.a2+b2|b||x1+x

问题描述:

已知P1(x1,y1),P2(x2,y2)是直线ax+by+c=0(b≠0)上的两点,则P1P2的长是(  )
A.

a2+b2
|b|
|x1-x2|
B.
1
a2+b2
|x1-x2|
C.
a2+b2
|x1-x2|
D.
a2+b2
|b|
|x1+x2|

∵P1(x1,y1),P2(x2,y2)是直线ax+by+c=0(b≠0)上的两点
y1=−

a
b
x1
c
b
y2=−
a
b
x2
c
b

y1y2=−
a
b
(x1x2)

由两点间距离公式知,
|P1P2|=
(x1x2)2+(y1y2)2

=
(1−
a2
b2
)(x1x2)2

=
a2+b2
|b|
|x1x2|

故选A.