เครื่องคิดเลขความชัน

ใส่จุดสองจุด (x₁, y₁) และ (x₂, y₂) เพื่อหาความชันและสมการของเส้นตรงที่ผ่านจุดทั้งสอง

ผลลัพธ์

ใส่ค่าแล้วกดคำนวณเพื่อดูผลลัพธ์

สูตร

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}

Slope is rise over run between the two points.

y=mx+b,b=y1−mx1y = mx + b,\quad b = y_1 - m x_1

The y-intercept b is where the line crosses the y-axis.

วิธีใช้เครื่องคิดเลขนี้

  1. Enter the coordinates of two different points.
  2. Press Calculate to see the slope, intercept and equation.

ตัวอย่างพร้อมวิธีทำ

Line through (1, 3) and (3, 7)

m = (7 − 3)/(3 − 1) = 2.

b = 3 − 2·1 = 1, so y = 2x + 1.

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

What does an undefined slope mean?

The two points have the same x value, so the line is vertical: its equation is x = constant.

Is slope the same as gradient?

Yes — “gradient” is the common term in the UK and Australia.

เรียนรู้เพิ่มเติม