Learn/Algebra/Linear Functions
Algebra • Topic 12

Linear Functions

Linear functions appear simple (), but in Olympiad problems, they often involve optimization, integer solutions (Diophantine equations), or systems with parameters.

Forms of Linear Equations

1. Slope-Intercept Form

  • : Slope (Rate of change).
  • : y-intercept.

2. Point-Slope Form

Useful for finding the equation of a line passing through with slope .

3. Standard Form

  • Useful for integer problems (Diophantine equations).
  • Slope is .

Properties

1. Parallel and Perpendicular

  • Parallel Lines: .
  • Perpendicular Lines: (Negative reciprocals).

2. Distance from Point to Line

The perpendicular distance from a point to the line :
Theorem (Distance Formula)

Linear Diophantine Equations

Equations of the form where must be integers.
Theorem (Bézout's Identity)
The equation has integer solutions if and only if divides .

If is one solution, the general solution is:

where and .

Practice Problems

Exercise (Problem 1)
Find the distance from the point to the line .
Exercise (Problem 2)
Find all integer pairs that satisfy .
Exercise (Problem 3)
A line passes through and creates a triangle of area 4 with the positive x and y axes. Find the equation of the line.