Graphical Approach to a Simple Physics Problem
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2008.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
My daughter asked me about her physics homework the other night. The problem was to determine the relationships describing how long it takes water to drain from a hole in the bottom of a bucket given various hole diameters and initial water heights. Given the derived relationships, the student was to determine the time to drain a bucket with a hole of diameter 4 and initial height of 20. The data is shown in this table; presumably diameter and height are in cm and time in sec.

The first step is to plot the data using XY charts. Below we see time to drain vs height for various hole sizes and time to drain vs hole size for various diameters. This was easy: select the range of data, including the top row (with numerical heights but not the “height” label) and left column (with numerical diameters but not the “diam” label, then create an XY chart. Use the data in rows alignment to get the first chart, then copy the chart, and switch to data in columns.


There’s no linear relationships in any of the plotted series. My first impulse when I see curved lines like above is to look for a power law fit of the data. This is done by converting both X and Y axes to logarithmic scales.


Now we have what appear to be straight parallel lines in both charts. This is very promising, because it means we’re likely to have a relationship of the form
Time = A * Height exponent 1 * Diameter exponent 2
One benefit to charting data in this way, is that it can show irregularities in the data. For example, the lowest series in the left hand chart above visibly deviates from a straight line: the second point bulges downward. The lowest series in the left hand chart has a similar bulge at its second point, and the last point of the next highest series seems to have dipped as well. Behavior like this may indicate measurement errors, and a wise researcher would repeat these tests.
A guestimate of the slopes of the charts above show that time increases with height to the power of 0.5 (i.e., the square root of height) and decreases with diameter to the power 2. I’m not sure about the height, but the diameter to the power 2 makes sense: the area of the hole is proportional to the diameter squared, so the amount of water escaping must be proportional to the area of the hole.
We can add power law trendlines to these charts to get more exact fits. In the first chart, the slopes (powers) are about 0.5, and in the second, about -2. Good guestimate.


You can use simple linear regression to determine these formulas. Excel has worksheet formulas that calculate the SLOPE and INTERCEPT of a set of points, using the following syntax:
=SLOPE(Yrange,Xrange) =INTERCEPT(Yrange,Xrange)
To get power law fits, you can take the log of the X and Y values in the worksheet, and use this ligarithmic data in the relationships above, or you can include the log transformation in the SLOPE and INTERCEPT formulas:
=SLOPE(LOG(Yrange),LOG(Xrange)) =INTERCEPT(LOG(Yrange),LOG(Xrange))
For a power law fit, the exponent equals the slope calculated above, while the coefficient is 10 raised to the intercept, 10intercept.
We can plot time vs. square root of height and vs. reciprocal of diameter squared, and we get nice straight lines.


Given straight lines, we can simply interpolate to get the time to drain the bucket for any arbitrary hole size and water height.
In the logarithmic charts below, the initial data is shown by the solid gray data points and lines. Each plotted line has an open symbol corresponding to the interpolated value of height (left) or hole diameter (right). The interpolated values from each chart was used to create an entire interpolated series in the other chart, shown in black. Finally, the final interpolated value was found on this black line, and is shown in red.


The same interpolation can be achieved on the straight lines from the time vs. square root height and time vs. reciprocal diameter squared charts. The time was 8.5 using either set of charts.


For completeness I’ve drawn the interpolated points and series on the original charts.


In actuality I interpolated the data numerically in the worksheet, but only after creating the charts above to tease out the form of the relationships.
There are other techniques for determining the relationships in the problem above. This post shows the graphical approach. The next post on this topic will show regression, a statistical approach. After that I will show how to use Goal Seek and Solver as an optimization approach.
Possibly Related Posts:
- Choosing a Trendline Type
- Regression Approach to a Simple Physics Problem
- Goal Seek - Optimization Approach to a Simple Physics Problem
- SOLVER - Optimization Approach to a Simple Physics Problem
- Excel 2007 Regression Error - Fixed in SP1
- Rolling Wheel Animation
- Plotting Measured Data
- How to Make a Donut-Pie Combination Chart
Posted: Monday, September 8th, 2008 under Data Techniques.
Comments: 2
Comments
I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.
Read the PTS Blog Comment Policy.
Pingback from Excel links of the week [Sep 8] | Pointy Haired Dilbert - Chandoo.org
Time: Monday, September 8, 2008, 1:50 pm
[...] Teaching physics using excel My friend Jon @ PTS Blog tries a different approach to teach physics to his daughter. Who says excel is only for corporates? [...]
Comment from Doug Jenkins
Time: Monday, September 8, 2008, 8:55 pm
I hope you get a good mark :)
I recall there was a discussion on DDoE a little while ago about the best programming language to teach kids. I made the point that if you want to teach them to use a computer for solving scientific problems (as opposed to teaching programming), then a spreadsheet is a great place to start. I think your post is an excellent example of what I had in mind.












Write a comment