In mathematics, a line graph is used to represent the values of a function. Functions of x that do not contain exponents (such as x=y or y=2x+1) are linear in nature, so the gradient (rise over run) is simple to calculate.
Functions of x that contain exponents (such as y=2x^2 +1) are more difficult to calculate, since the y-component of the line may curve in relation to the x-axis.
- Mathematical function of X (such as "y=x^2")
- Scientific calculator
- Graph paper
- Pen or pencil
Since a slope of a curve is constantly changing, the gradient will vary between any two points. As such, a any gradient measurement must be performed at one point or between a set of two points, as opposed to along the whole curve.
Calculate the corresponding "Y-axis" values of ten "X-axis" numbers. For example, if y=x^2, calculate the Y-axis values for X where X equals -5, -4, -3, -2, -1, 0, 1, 2, 3 and 4. Plot these values on the graphing paper, where the X value is the horizontal axis, and the Y value is the vertical axis.
Choose two ascending points on the graph (such as "X=2" and "X=3"). Draw a straight line from one point to the other.
Count the number of lines on the vertical axis between the two points, and write this number down as the numerator. Count the number of lines on the horizontal axis between the two points, and write this number down as the denominator. The gradient is the numerator divided by the denominator.
Things You'll Need
About the Author
David Sandoval holds a degree in microelectronics, and has several years of experience in the technology field. He has written articles for eHow, Answerbag, and wiseGEEK in the disciplines of chemistry, electronics, and physics.
graph image by Roman Sigaev from Fotolia.com