Logarithmic scale - interpolation

Click For Summary
SUMMARY

This discussion focuses on the method of interpolation on a logarithmic scale, specifically for log-log plots. The user seeks to understand how to interpolate between two points, given their coordinates, using logarithmic transformations. The formula provided for linear interpolation can be adapted for logarithmic scales by applying logarithmic functions to both x and y values. The final result can be converted back to the original scale using the exponential function.

PREREQUISITES
  • Understanding of linear interpolation techniques
  • Familiarity with logarithmic functions and transformations
  • Basic knowledge of plotting on log-log scales
  • Proficiency in using calculators or software like Excel for calculations
NEXT STEPS
  • Research the application of logarithmic transformations in data analysis
  • Learn about log-log plots and their significance in scientific data representation
  • Explore advanced interpolation techniques for non-linear data
  • Study the use of exponential functions in converting logarithmic results back to original values
USEFUL FOR

Data analysts, mathematicians, and scientists who work with logarithmic data representations and need to perform interpolation on log-log plots.

FEAnalyst
Messages
348
Reaction score
149
TL;DR
How can I interpolate between two values on a logarithmic scale plot?
Hi,

knowing the coordinates of two points: ##(x_1,y_1)## and ##(x_2,y_2)## on a linear scale plot, I can use linear interpolation to get ##y## for a point of known ##x## using the formula below: $$y=y_1+(x−x_1) \frac{(y_2−y_1)}{(x_2−x_1)}$$
But how does it look like in the case of logarithmic scale (log-log plot)? How can I get ##y## for known ##x## when I have the coordinates of two other points? So far I haven't found any working formula for that.

Thanks in advance for your help.
 
Mathematics news on Phys.org
FEAnalyst said:
when I have the coordinates of two other points?
You have to specify what you mean by that ! Example: Plot ##y = x^3## on log-log paper. Suppose you want to interpolate between ##(3,27)## and ##(4,64)## to find ##3.75^3## (is 52.73).

1619110562193.png


Do you have the coordinates of those points as found on the axis, or in mm on the paper ?

In the first case your $$y-y1=(x−x_1) \frac{(y_2−y_1)}{(x_2−x_1)}$$is still 'valid' in the logarithm world$$
\log{y\over y_1} = \log{x\over x_1}*{\log(y_2/y_1)\over \log(x_2/x_1)}$$as you can easily check with a calculator (or excel ?:) ):
1619109772500.png


In the second case you do something similar, but you already have the logarithms.
1619110493181.png


##\ ##
 
  • Like
Likes   Reactions: FEAnalyst
Just replace all y values by log(y) and all x-values by log(x). That's all. That's exactly what a log-log plot does. Your result is then log(y), but of course you can recover y using y = exp(log(y)).
 
  • Like
Likes   Reactions: FEAnalyst

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
832
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K