Linearizing Equations Handout Wilfrid Laurier University: C Terry Sturtevant January 21, 2009
Linearizing Equations Handout Wilfrid Laurier University: C Terry Sturtevant January 21, 2009
Terry
c Sturtevant1 2
Linearizing Equations
1.1 Theory
Often, the point of a scientific experiment is to try and find empirical val-
ues for one or more physical quantities, given measurements of some other
quantities and some mathematical relationship between them. For instance,
given a marble has a mass of 5 g, and a radius of 0.7 cm, the density of the
marble can be calculated given that v = 4/3πr3 and ρ = m/v. (For the sake
of simplicity, uncertainties will be ignored for now, although the calculation
of those should be familiar by now.)
Many times, however, rather than having one measurement of a quan-
tity, or set of quantities, we may have several measurements which should
all follow the same relationships, (such as if we had several marbles made
of the same material in the example above), and we wish to combine the
results. The usual way of combining results is to create a graph, and ex-
tract information (such as the density) from the slope and y–intercept of the
graph.
One may be tempted to ask why a graph should be better than merely
averaging all of the data points. The answer is that an average is completely
unbiased. The variation of any one point from the norm is no more or less
important than the variation of any other point. A graph, however, will show
any point which differs significantly from the general trend. Analysis of the
graphical data (such as with a least squares fit) will allow such “outliers” to
be given either more or less weight than the rest of the data as the researcher
deems appropriate. Depending on the situation, the researcher may wish to
verify any odd point(s), or perhaps the trend will indicate that a linear model
is insufficient. In any case, it is this added interpretive value that a graph
has which makes it preferable.
The reason a linear graph is so useful is that it’s easier to identify whether
a line is straight than it is to identify whether it looks more like y = x2 or
y = x3 , for instance.
A straight line is easy to spot with the unaided eye.
y=b
Note that linearizing an equation will produce expressions for the slope and
y–intercept which depend only on the constants in the original equation, not
on the original x and y variables. This means that the constants can be
related to the slope and y–intercept rather than the original variables.
1. Rearrange the equation to get one variable (or a function of it) on the
left side of the equation; this becomes your y variable.
2. Regroup the right side of the equation to create a term containing the
other variable (or some function of it).
3. Use the left-side variable (or the function of it) as your x variable, and
then your slope should be whatever multiplies it; your y intercept is
whatever additive term is left over.
v = (4/3)πr3 (1.1)
and
ρ = m/v (1.2)
where the quantities m and r are measured. (ie. We have several marbles of
the same material, so we can get several measurements of m and r, but we
expect ρ to be the same for all of them.) Thus for this situation, m and r
are variables, and ρ is a constant. We can combine the two equations to get
m
ρ= (1.3)
(4/3)πr3
or
3m
ρ= (1.4)
4πr3
This equation has a constant on one side, and a mixture of variables and
constants on the other. First we should rearrange it to get a variable on the
left hand side. Suppose we rearrange the equation, giving
m = (4/3)πρr3 (1.5)
This leaves a variable on the left. From this point on, there are two main
possibilities for how to proceed: 1
Method I
Now we can create a new variable, Y such that
Y =m
1
Usually the process is not as explicit as this. ie. one doesn’t usually create an X and
a Y , but doing this illustrates the procedure.
By the rule about powers of variables being variables, then we can create a
new variable X given by
X = r3
Then equation 1.5 above becomes
Y = (4/3)πρX (1.6)
since π is a constant, and ρ should be, and using the rule that combinations
of constants produce constants, then we can define M , a constant, (not the
same as m), as
M = (4/3)πρ
so equation 1.6 becomes
Y = MX + 0
which is the equation of a straight line. (In the case, B, the y–intercept
is zero.)2 So if we plot our “modified” variables, we should get a straight
line, passing through the origin with a slope M . How can we get ρ from the
graph? Well, from above
M = (4/3)πρ
so
3M
ρ=
4π
where M is the slope of the graph.
Method II
We can take logarithms of both sides, so that Y such that equation 1.5 above
becomes
ln m = ln ((4/3)πρ) + ln r3 (1.7)
grouping the terms so one only contains constants (and so the combination
should be constant) and one only contains the variable r. We can bring down
the exponent so equation 1.7 becomes
ln m = ln ((4/3)πρ) + 3 ln r
2
Occasionally we can get a situation where the slope is similarly “invisible”, if it is 1
or 0.
r3
Simple variables
A preferable linearization is one which most simplifies understanding the
graph or interpreting the results. For instance, in the above example, it
would have been possible to use (4/3)πr3 instead of r3 as our x variable, but
that would make confusing axis scales and/or units (although it would have
made the slope be ρ with no calculation).
Spread of data
The spread of data will be different for each linearization. A graph with
points which are more equally spaced is generally preferable to one where
the points are concentrated in one area.
ln (m)
ln (r)
1.2 Recap
By the end of this exercise, you should understand the following terms:
• linear graph
• linearized equation