Given:
A line passes through the origin and the point (-2,1).
To find:
The slope of the line.
Solution:
If a line passes though two point, then the slope of the line is
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2022/formulas/mathematics/college/bpkoq3bvkesp0enrhm14yweiccwgnbhsww.png)
It is given that a line passes through the origin, .i.e., (0,0) and the point (-2,1). So, the slope of the line is
![m=(1-0)/(-2-0)](https://img.qammunity.org/2022/formulas/mathematics/high-school/82n2kcnch465gdx0yaisxu9z80zhifpzyf.png)
![m=(1)/(-2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/dvpgbto6t1gort8lexxqi5gfxk2qsx8mxy.png)
![m=-(1)/(2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/ket6vmcqq5uagkn39rjqidsm8e9czkb7bq.png)
Therefore, the slope of the line is
.