I'm trying to compare two fitted curves by looking at the difference in x. Standard regression analysis tools always give you a delta Y (residual) and this is how the fit is done in the first place.(adsbygoogle = window.adsbygoogle || []).push({});

So I have the coefficients of each of the terms for my 7th-order polynomial. it's in the form

[itex]y = f(x) = ax^7 + bx^6 + cx^5 + dx^4 + ex^3 + fx^2 + gx + h[/itex]

The two curves have slightly different coefficients. Now how do I invert this function to get an f(y) so that I can calculate the difference in X for a given Y?

This problem is easy for a simple function like [itex]y = f(x) = ax^2[/itex] then inverting it you get [itex]x = f(y) = \sqrt{y}/a[/itex] for positive y-values.

Since I have the actual X and Y sets of values, I tried rotating the values 90 degrees (http://en.wikipedia.org/wiki/Rotation_matrix) and then looking at the delta Y, but the problem is the X values aren't the same anymore. Yes, a somewhat pointless attempt, but potentially serendipitous nonetheless.

I have the X and Y data and also have access to a basic PC with MATLAB for number crunching if needed.

Are there any clever tricks I can playto get the difference in X for a given Y? I'm sure I'm missing something here...

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Inverting a function? f(y) instead of f(x)

Loading...

Similar Threads for Inverting function instead |
---|

A Infinite matrices and the Trace function |

I How to find admissible functions for a domain? |

I Is there a geometric interpretation of orthogonal functions? |

B Invertibility of a Matrix |

**Physics Forums | Science Articles, Homework Help, Discussion**