Skip to main content

วิธีการคำนวณ Line Equation

learn.whatIsHeading

The equation of a line in slope-intercept form is y = mx + c, where m is the slope (gradient) and c is the y-intercept. It describes every straight line in 2D space.

สูตร

Slope-intercept: y = mx + b; Point-slope: y − y₀ = m(x − x₀); General: Ax + By + C = 0
m
slope (rise/run)
b
y-intercept
(x₀, y₀)
a point on the line
A, B, C
coefficients in general form

คำแนะนำทีละขั้นตอน

  1. 1Slope m = (y₂−y₁)/(x₂−x₁)
  2. 2y-intercept c = y − mx
  3. 3Parallel lines have equal slopes
  4. 4Perpendicular lines: m₁×m₂ = −1

ตัวอย่างที่มีคำตอบ

อินพุต
Points (0,2) and (3,8)
ผลลัพธ์
m = (8−2)/(3−0) = 2, c = 2, so y = 2x + 2
อินพุต
m = 3, passes through (1, 5)
ผลลัพธ์
y − 5 = 3(x − 1), so y = 3x + 2

คำถามที่พบบ่อย

How do I find the slope between two points?

m = (y₂ − y₁) / (x₂ − x₁).

What is a vertical line equation?

x = c (constant). Vertical lines have undefined slope and cannot be written in y = mx + b form.

How do I convert between slope-intercept and general form?

From y = mx + b to Ax + By + C = 0: rearrange to −mx + y − b = 0 or mx − y + b = 0.

พร้อมที่จะคำนวณแล้วหรือยัง? ลองใช้เครื่องคิดเลข Line Equation ฟรี

ลองด้วยตัวคุณเอง→

การตั้งค่า