Line slope calculator x+2y=5


Enter coordinates of two different points:

Straight line given by points A[1; 2] and B[3; 1]

Calculation:

Slope-intercept form of line: y = -0.5x+2.5

Canonical form of the line equation: x+2y-5 = 0

Parametric form of the line equation:
x = 2t+1
y = -t+2      ; t ∈ R

Slope: m = -0.5

Slope angle of line: φ = -26°33'54″ = -0.4636 rad

X intercept: x0 = 5

Y intercept: y0 = q = 2.5

Distance line from the origin: d0 = 2.2361

The length of the segment AB: |AB| = 2.2361

Vector: AB = (2; -1)

Normal vector: n = (1; 2)

Midpoint of the segment AB: M = [2; 1.5]

Perpendicular Bisector equation: 2x-y-2.5 = 0


Vector OA = (1; 2) ;   |OA| = 2.2361
Vector OB = (3; 1) ;   |OB| = 3.1623
Scalar product OA .OB = 5
Angle ∠ AOB = 45° = 0.7854 rad