Linear interpolation, also called simply interpolation or “lerping,”[1] is the ability to deduce a value between two values explicitly stated in a table or on a line graph. While many people can interpolate on an intuitive basis, the article below shows the formalized mathematical approach behind the intuition.

Steps

  1. 1
    Identify the value for which you want to find a corresponding value. Interpolation can be used for such things as finding a logarithm or trigonometric function value or for the corresponding gas pressure or volume for a given temperature in chemistry.[2] Because scientific calculators have largely replaced logarithmic and trigonometric tables, we’ll use as our example for finding an interpolated value that of finding the pressure of a gas for a temperature whose value isn’t listed in the reference table or as a graph point.
    • For the equation we’ll derive, we’ll represent the value that we want to find a corresponding value for as ‘’x’’ and the interpolated value we want to find as ‘’y’’. (We’ll use these labels, because on a graph, the value we know would be plotted on the horizontal, or x-axis, and the value we’re trying to find would be plotted on the vertical, or y-axis.)
    • Our ‘’x’’ value will be the temperature of the gas, which for this example will be 37 °C (99 °F).
  2. 2
    Find the closest values below and above the value of x in the table or on the graph. Our reference table doesn’t give a gas pressure for 37 °C (99 °F), but it does list values for 30 °C (86 °F) and 40 °C (104 °F). The gas pressure at 30 °C (86 °F) is 3 kilopascals (kPa) and the pressure at 40 °C (104 °F) is 5 kPa.
    Advertisement
  3. 3
    Find the interpolated value mathematically. The equation for finding the interpolated value can be written as y = y1 + ((x – x1)/(x2 - x1) * (y2 - y1))[3]
  4. Advertisement

Community Q&A

  • Question
    What is the interpolation of 27.5?
    Hibou8
    Community Answer
    When you are doing a linear interpolation, you are approximating the function between points as a line. From there, you can find the estimated value at any point between them. Therefore, you cannot ask the interpolation of a single number - rather, you need multiple numbers to determine your line, and from there you can ask what value you would expect at a point.
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 294,774 times.
112 votes - 84%
Co-authors: 8
Updated: December 19, 2019
Views: 294,774
Categories: Mathematics
Advertisement