# equation of a line when two points are given

- Author:
- Mathguru

- Topic:
- Equations

We can clearly see a line ‘a’ whose equation is ax+by=c and which passes through two given points A and B. (x1,y1 ) are co-ordinates of A and (x2, y2 ) are co-ordinates of B.
We can change the values of x1, y1, x2 and y2 using their corresponding slide bars. Observe how the position of the line changes as we change the values of x1, y1, x2 and y2.