Intercept form : If $a$ and $b$ are the intercepts made by a line on the axes of
$x$ and $y$, its equation is written $$\frac{x}{a} + \frac{y}{b} = 1$$

To find the equation of $\overleftrightarrow{l}$ in intercept form, let’s first find the equation of $\overleftrightarrow{l}$ in slope intercept form. Observe that $\overleftrightarrow{l}$ passes through the point $(a,0)$ and intersects the y-axis at $(0,b)$. This means the
- slope $(m)$ of $\overleftrightarrow{l}$ is $-\dfrac{b}{a}$, and
- the y-intercept of $\overleftrightarrow{l}$ is $b$
So, we can write the equation of $\overleftrightarrow{l}$ in slope-intercept form as $$ y= -\dfrac{b}{a} x+b$$
Now, by adding the term $\dfrac{b}{a} x$ on both sides of this equation, we can rewrite it as \begin{aligned}y+\dfrac{b}{a}x=b\\ \Rightarrow \dfrac{y}{b}+\dfrac{x}{a}=1\end{aligned} [Dividing both LHS and RHS by $b$.]
This is known as the equation of a line in intercept form, where $a$ and $b$ are $x$ and y-intercepts of the line respectively as shown below

Practice question:
What is the equation of the line with $5$ and $-3$ as $x-$ and y-intercept, respectively? See the Solution.