We have two points of the line, and we have to find the equation of the line in the slope-intercept form:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
First, we find the slope as:
![m=(\Delta y)/(\Delta x)=(y_2-y_1)/(x_2-x_1)=(9-3)/(4-1)=(6)/(3)=2](https://img.qammunity.org/2023/formulas/mathematics/high-school/gjrniacxjrfwqshzf4etp6sytz9553i6sq.png)
With the value of the slope, we can calculate b replacing the values of x and y with one of the know points:
![\begin{gathered} y=mx+b \\ y=2x+b \\ 3=2\cdot1+b \\ 3=2+b \\ b=3-2 \\ b=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/u7qfvfwxwen3hu96mot231q69cj44ff9x8.png)
Now, we have the two parameters (slope and y-intercept) to define the line, and we can write the equation as:
![y=2x+1](https://img.qammunity.org/2023/formulas/mathematics/high-school/58me4lbj08ymnzvhsr3hdd7pgiyxglpj44.png)