Math Atlas

직선의 방정식 구하기Writing Equations of Lines

Algebra 1Algebra 1 · 2. 일차함수와 그래프2. Linear Functions & Graphs

학습 목표
  • 점-기울기꼴 yy1=m(xx1)y - y_1 = m(x - x_1)을 직접 유도하고 자유롭게 쓴다.
  • 기울기와 한 점, 또는 두 점이 주어졌을 때 직선의 방정식을 구한다.
  • 표준형 ax+by=cax + by = c로 바꿔 쓰고, 언제 이 꼴이 편한지 안다.
  • 두 데이터로 일차 모델을 세우고 예측에 사용한다.

그래프 없이 직선을 잡아내기

지난 차시에서는 식을 보고 그래프를 그렸다. 이번에는 반대다 — 직선에 대한 정보만 주어졌을 때 식을 찾아낸다. 필요한 정보는 놀랄 만큼 적다. 직선은 한 점과 기울기만으로, 또는 두 점만으로 완전히 정해진다. (두 점이면 기울기를 계산할 수 있으니, 결국 첫 번째 경우로 돌아온다.)

yy절편이 주어진다면 이미 아는 y=mx+by = mx + b에 바로 넣으면 된다. 문제는 주어진 점이 yy축 위에 있지 않을 때다. 그 경우를 위한 도구를 만들자.

점-기울기꼴: 정의에서 바로 나온다

(x1,y1)(x_1, y_1)을 지나고 기울기가 mm인 직선이 있다. 이 직선 위의 다른 점을 아무거나 잡아 (x,y)(x, y)라 하자.

x y O x − x1 y − y1 (x1, y1) (x, y)
기울기 m인 직선 위의 고정점 (x₁, y₁)과 임의의 점 (x, y). 두 점 사이의 가로 이동은 x − x₁, 세로 이동은 y − y₁이다.

기울기는 어느 두 점에서 재도 같으므로, (x1,y1)(x_1, y_1)(x,y)(x, y)로 잰 기울기도 mm이어야 한다:

yy1xx1=m.\frac{y - y_1}{x - x_1} = m.

양변에 (xx1)(x - x_1)을 곱하면:

정의점-기울기꼴

(x1,y1)(x_1, y_1)을 지나고 기울기가 mm인 직선의 방정식은

yy1=m(xx1)y - y_1 = m(x - x_1)

곱하기 전의 식은 x=x1x = x_1일 때(즉 점 (x1,y1)(x_1, y_1) 자신) 분모가 0이라 쓸 수 없었지만, 곱한 뒤에는 0=00 = 0으로 성립한다. 그래서 점-기울기꼴은 기준점 자신까지 포함해 직선 전체를 정확히 담는다.

외울 것은 사실상 없다 — "기울기를 두 점으로 쓴 다음 분모를 넘긴 것"이 전부다. 유도를 아는 사람은 시험장에서 공식이 헷갈릴 수가 없다.

예제 1 · 기울기와 점 하나

기울기가 2이고 점 (3,1)(3, 1)을 지나는 직선의 방정식을 구하라.

풀이. 점-기울기꼴에 넣으면

y1=2(x3),y - 1 = 2(x - 3),

전개해 정리하면 y=2x5y = 2x - 5이다.

검산: x=3x = 3을 대입하면 y=65=1y = 6 - 5 = 1 — 주어진 점을 지난다. 기울기도 식에서 바로 2다.

다른 길도 있다. y=2x+by = 2x + b로 두고 (3,1)(3, 1)을 대입해 1=6+b1 = 6 + b, b=5b = -5를 얻는 방법이다. 어느 쪽이든 답은 y=2x5y = 2x - 5 — 취향대로 골라 쓰되, 두 방법 모두 할 줄 알아야 한다.

두 점이 주어졌을 때

두 점이 주어지면 한 단계가 먼저 붙는다: 기울기부터 계산한다. 그다음은 예제 1과 같다.

예제 2 · 두 점

두 점 (1,7)(-1, 7)(2,1)(2, 1)을 지나는 직선의 방정식을 구하라.

풀이. 기울기부터:

m=172(1)=63=2.m = \frac{1 - 7}{2 - (-1)} = \frac{-6}{3} = -2.

(2,1)(2, 1)과 점-기울기꼴을 쓰면 y1=2(x2)y - 1 = -2(x - 2), 정리하면 y=2x+5y = -2x + 5이다.

검산: (1,7)(-1, 7) 대입 — y=2+5=7y = 2 + 5 = 7 ✓. (2,1)(2, 1) 대입 — y=4+5=1y = -4 + 5 = 1 ✓.

기준점으로 (1,7)(-1, 7)을 골랐다면? y7=2(x+1)y - 7 = -2(x + 1)을 정리해도 똑같이 y=2x+5y = -2x + 5가 나온다. 어느 점을 기준으로 잡아도 결과는 같다 — 같은 직선이니까. 계산이 편한 점을 고르면 된다.

표준형이라는 옷

같은 직선도 옷을 바꿔 입을 수 있다. y=2x+5y = -2x + 5의 양변에서 이항하면

2x+y=5.2x + y = 5.

이런 ax+by=cax + by = c 꼴을 표준형이라 한다. 분수 계수를 정수로 만들 때, 그리고 xxyy를 대칭으로 다루고 싶을 때(절편 찾기, 다음 단원의 연립방정식) 편하다. 예컨대 y=23x+4y = \frac{2}{3}x + 4는 양변에 3을 곱해 2x+3y=12-2x + 3y = 12, 관례상 xx 계수를 양수로 맞춰

2x3y=122x - 3y = -12

로 쓴다. 어느 꼴이 "정답"인 것은 아니다 — 문제가 요구하는 꼴, 다음 계산에 편한 꼴로 자유롭게 오가는 것이 실력이다.

수평선과 수직선은 이번에도 별도 취급이다. 점 (4,2)(4, -2)를 지나는 수평선은 y=2y = -2, 수직선은 x=4x = 4 — 수직선은 기울기가 없으므로 점-기울기꼴로는 절대 나오지 않는다.

두 데이터에서 모델로

"두 점으로 직선 찾기"의 실전 버전은 두 번의 측정으로 일차 모델 세우기다.

예제 3 · 온도 데이터

주전자를 불에 올리고 일정하게 가열한다. 3분에 물 온도가 26℃, 8분에 41℃였다.

(1) tt분일 때 온도 TT℃를 식으로 나타내라. ⁠ (2) 불을 켠 순간의 온도는? ⁠ (3) 계속 가열하면 14분에는 몇 도인가?

풀이. (1) 데이터는 두 점 (3,26)(3, 26), (8,41)(8, 41)이다. 기울기(분당 상승 온도)는

m=412683=155=3.m = \frac{41 - 26}{8 - 3} = \frac{15}{5} = 3.

(3,26)(3, 26)으로 점-기울기꼴을 쓰면 T26=3(t3)T - 26 = 3(t - 3), 정리하면 T=3t+17T = 3t + 17이다.

(2) t=0t = 0을 대입하면 T=17T = 17. 절편 17이 곧 **처음 온도 17℃**다.

(3) t=14t = 14를 대입하면 T=42+17=59T = 42 + 17 = 59. **59℃**로 예측된다.

검산: t=8t = 8이면 T=24+17=41T = 24 + 17 = 41 ✓. 모델의 한계도 한 줄: 물은 100℃에서 끓으므로 이 식은 TT가 100에 닿기 전까지만 유효하다 — 3t+17=1003t + 17 = 100이면 t27.7t \approx 27.7분, 그 뒤로는 직선이 아니라 수평선이 된다.

문제 탭에는 절편 조건, 표준형 변환, 그리고 격자 절편을 세는 경시 문제(약수로 직선 개수 세기)까지 열네 문제가 있다.

Goals
  • Derive the point-slope form yy1=m(xx1)y - y_1 = m(x - x_1) yourself, and use it freely.
  • Find a line's equation from a slope and a point, or from two points.
  • Convert to standard form ax+by=cax + by = c, and know when that form earns its keep.
  • Build a linear model from two data points and use it to predict.

Pinning down a line without its graph

Last lesson went from equation to graph. Now we go the other way: given information about a line, recover its equation. Remarkably little is needed — a line is completely determined by one point and a slope, or by two points. (Two points let you compute the slope, which lands you back in the first case.)

If the given point happens to be the yy-intercept, just drop it into y=mx+by = mx + b and go. The trouble is when the known point is not on the yy-axis. Let's build the tool for that.

Point-slope form, straight from the definition

Take the line through (x1,y1)(x_1, y_1) with slope mm, and let (x,y)(x, y) be any other point on it.

x y O x − x1 y − y1 (x1, y1) (x, y)
A line of slope m with a fixed point (x₁, y₁) and a generic point (x, y). The horizontal change between them is x − x₁; the vertical change is y − y₁.

Slope is the same no matter which two points measure it, so measuring with (x1,y1)(x_1, y_1) and (x,y)(x, y) must give mm:

yy1xx1=m.\frac{y - y_1}{x - x_1} = m.

Multiply both sides by (xx1)(x - x_1):

DefinitionPoint-slope form

The line through (x1,y1)(x_1, y_1) with slope mm has equation

yy1=m(xx1)y - y_1 = m(x - x_1)

Before multiplying, the equation broke down at x=x1x = x_1 (zero denominator — the base point itself); after multiplying, that point satisfies it as 0=00 = 0. So point-slope form captures the whole line, base point included.

There's nothing to memorize here, really — it's just "the slope formula with the denominator moved across." If you can rederive it, it can't desert you in a test.

Example 1 · A slope and one point

Find the equation of the line with slope 2 through the point (3,1)(3, 1).

Solution. Point-slope form gives

y1=2(x3),y - 1 = 2(x - 3),

which expands to y=2x5y = 2x - 5.

Check: x=3x = 3 gives y=65=1y = 6 - 5 = 1, so the line passes through the given point, and the slope reads off as 2.

There's a second route: write y=2x+by = 2x + b and substitute (3,1)(3, 1) to get 1=6+b1 = 6 + b, so b=5b = -5. Same answer, y=2x5y = 2x - 5. Use whichever you prefer — but own both.

Given two points

With two points, one step comes first: compute the slope. After that it's Example 1.

Example 2 · Two points

Find the equation of the line through (1,7)(-1, 7) and (2,1)(2, 1).

Solution. Slope first:

m=172(1)=63=2.m = \frac{1 - 7}{2 - (-1)} = \frac{-6}{3} = -2.

Using the point (2,1)(2, 1): y1=2(x2)y - 1 = -2(x - 2), which tidies to y=2x+5y = -2x + 5.

Check: at (1,7)(-1, 7), y=2+5=7y = 2 + 5 = 7 ✓; at (2,1)(2, 1), y=4+5=1y = -4 + 5 = 1 ✓.

What if we'd used (1,7)(-1, 7) as the base point instead? Then y7=2(x+1)y - 7 = -2(x + 1), which tidies to... y=2x+5y = -2x + 5. The same. Either point works — it's the same line — so pick whichever makes the arithmetic friendlier.

Standard form, a change of clothes

One line can dress differently. Moving terms in y=2x+5y = -2x + 5:

2x+y=5.2x + y = 5.

This shape, ax+by=cax + by = c, is called standard form. It shines when you want integer coefficients instead of fractions, and when xx and yy deserve equal billing — finding intercepts, and the systems of equations coming next unit. For instance, y=23x+4y = \frac{2}{3}x + 4 becomes, after multiplying through by 3 and making the xx-coefficient positive by convention,

2x3y=12.2x - 3y = -12.

No form is "the right one." Moving fluently between forms, choosing whichever suits the next computation, is the actual skill.

Horizontal and vertical lines remain special. Through (4,2)(4, -2): the horizontal line is y=2y = -2 and the vertical line is x=4x = 4 — and no amount of point-slope will ever produce a vertical line, since it has no slope.

From two data points to a model

The real-world version of "line through two points" is a linear model from two measurements.

Example 3 · Temperature data

A kettle heats water at a steady rate. At 3 minutes the water is 26°C; at 8 minutes it is 41°C.

(1) Express the temperature TT in °C at time tt minutes. ⁠ (2) What was the temperature when the heat went on? ⁠ (3) If heating continues, what does the model predict at 14 minutes?

Solution. (1) The data are two points, (3,26)(3, 26) and (8,41)(8, 41). The slope — degrees per minute — is

m=412683=155=3.m = \frac{41 - 26}{8 - 3} = \frac{15}{5} = 3.

Point-slope with (3,26)(3, 26): T26=3(t3)T - 26 = 3(t - 3), which tidies to T=3t+17T = 3t + 17.

(2) At t=0t = 0, T=17T = 17: the intercept is the starting temperature, 17°C.

(3) At t=14t = 14, T=42+17=59T = 42 + 17 = 59 — the model predicts 59°C.

Check: t=8t = 8 gives T=24+17=41T = 24 + 17 = 41 ✓. And one line about the model's limits: water boils at 100°C, so the formula only holds until TT reaches 100 — from 3t+17=1003t + 17 = 100, about t27.7t \approx 27.7 minutes, after which the graph flattens instead of climbing.

The Problems tab has fourteen problems: intercept conditions, standard-form conversions, and a contest finale that counts lines through a point with integer intercepts — by counting divisors.