Solving exponential equation (using a graph)

In summary, the conversation was about using experimental data to solve an equation for T_2 in MRI experiments. The data points collected for t and M(t) were fitted with a linear function, but it was suggested to fit them with an exponential function instead. The value of M_0 was not measured during the experiment, but a calculator estimated it to be 62567. When plotting log(M) vs. t, a good estimate of T_2 and M_0 was obtained, but the graph was not completely linear. It was also mentioned that one data point seemed to be an outlier and the final value of the signal was not known, making it difficult to determine the exact nature of the disappearance kinetics. Further observations over a longer
  • #1
roam
1,271
12

Homework Statement



Using experimental data, I am trying to solve the following equation for ##T_2##

$$M(t)=M_0 e^{-t/T_2}. \tag{1}$$

Here ##M_0## denotes the initial value. There were 8 data points collected for ##t## and ##M(t).## Here is the resulting graph:

LtoVpwG.png


The data and equation (1) in fact relate to MRI experiments. I am attempting to calculate ##T_2## relaxation time of a given solution. (##t## is in ms and ##M(t)## in arbitrary units)

Homework Equations

The Attempt at a Solution



I have fitted the data with a linear fitting. So, what part of equation (1) does the slope of the plot correspond to? This is not obvious because the plot is exponential rather than linear. :confused:

My approach was to somehow equate the slope to some part of equation (1) containing ##T_2##, so I can then solve for it. How could I do that?

Any help would be greatly appreciated.

P. S. I was told the answer should be about ##437.2.##
 
Last edited:
Physics news on Phys.org
  • #2
If you are trying to fit an exponential function you should use an exponential function fit, not a linear one.
 
  • #3
roam said:

The Attempt at a Solution



I have fitted the data with a linear fitting. So, what part of equation (1) does the slope of the plot correspond to? This is not obvious because the plot is exponential rather than linear. :confused:

My approach was to somehow equate the slope to some part of equation (1) containing ##T_2##, so I can then solve for it. How could I do that?

Any help would be greatly appreciated.

P. S. I was told the answer should be about ##96.5.##

It's not at all clear to me what you are trying to do. What is the value of ##M_0##?

If you are looking for an exponetial solution, what is the point of finding a linear solution?

The data, at first sight, does not seem to fit well with any exponential solution.
 
  • #4
PeroK said:
The data, at first sight, does not seem to fit well with any exponential solution.
This is indeed also true. However, the measurements we are presented with do not have error bars, so we cannot really say anything about the goodness of the fit.
 
  • Like
Likes roam
  • #5
This website has a calculator. When I enter my data there (under the T2/T2* menu), it fits the data and gives ##T_2 = 96.5.## The R2 value for their fitting is ##0.9103##. How do I know what sort of exponential fitting was used?

In theory, it should be an exponential decay like the figure below. But as Orodruin mentioned there would be experimental errors.

yjoLdh2.jpg


##M_0## is a parameter which was not measured during the experiment (in MRI, it is the initial magnetisation immediately following the excitation pulse). But the calculator in my link calculates it as being ##M_0 = 62567.##

P. S. The data I used:

t=[9 10 12 15 20 30 50 80]
M=[55356.19 55657.78 54412.25 52885.59 51757.19 48357.24 43246.79 21323.37]
 
Last edited:
  • #6
If you expect a function of the form:
##M(t) = M_0 e^{-t/T_2},##
then the data you have for M should be exponential with the property that
##\ln(M(t)) = \ln(M_0) - t/T_2 ##
which would be linear in t.
Try plotting log(M) vs. t and finding the best linear fit.
 
  • Like
Likes roam and PeroK
  • #7
RUber said:
If you expect a function of the form:
##M(t) = M_0 e^{-t/T_2},##
then the data you have for M should be exponential with the property that
##\ln(M(t)) = \ln(M_0) - t/T_2 ##
which would be linear in t.
Try plotting log(M) vs. t and finding the best linear fit.

Thank you for your input. When I plot log(M) vs. t , I get a good estimate of ##T_2## and ##M_0## (but not as accurate as the exponential model).

And the log graph is not completely linear in t. It has the same overall shape as the original function I've posted above. Why is that?

xvRXSGJ.png
 
  • #8
Like the previous posters mentioned, this data does not appear to be exponential, since linear is a better fit overall. However, if you have to fit it to the model you provided, then fitting the log is one easy way to do it.
In this case, what do you get for M0 and T2?
 
  • Like
Likes roam
  • #9
RUber said:
Like the previous posters mentioned, this data does not appear to be exponential, since linear is a better fit overall. However, if you have to fit it to the model you provided, then fitting the log is one easy way to do it.
In this case, what do you get for M0 and T2?
Apparently, the line labelled "linear" on the plot is really logM vs t, which, for an exponential, would appear linear on the plot if the data was consistent with the equation. There seems to be only one data point "out of whack" on the plot, and this data point should be checked more carefully.
 
  • Like
Likes roam
  • #10
I was going to say the same as Chestermiller.
On the face of it your data is consistent both with an exponential disappearance, and with disappearance at a constant rate!
It is harder to judge about whether exponential fits better because you haven't reproduced the data points in your second graph.
The trouble is judgement is quite affected by just one point, the last one.
Ignoring this point you are not in a very good situation to decide the nature of the decrease, because all your other points are in about the top 20% of your range!
We also don't know what the final value of your signal is – that is, is it something that declines to 0 ?
If it doesn't, then what it makes sense to fit to your exponential to is not M(t) but [M(t) - M(∞)] , ( M(∞) being in practice of the 'final' M you seem to stabilize at finally)..
Conclusions about the nature of the disappearance kinetics would probably have to be very weak at this point, and you would need to do the observations over a longer period. Often of course you don't know this when you do the experiment for the first time.

It would be of interest to know what you are observing - is it a signal that corresponds to one particular substance and in what circumstances?
On the diagram you need to state your units of time - we have no idea.
 
  • Like
Likes roam
  • #11
epenguin said:
The trouble is judgement is quite affected by just one point, the last one.
Ignoring this point you are not in a very good situation to decide the nature of the decrease, because all your other points are in about the top 20% of your range!

Thank you for your comments. Yes, the last point should have a slightly higher intensity in order for the curve to be exponential.

Also, I believe the final value of M is about zero, because when we have saturation, there is no net magnetisation and hence no NMR signal.

I have labeled the units of time on the diagram. In fact, I made several plots for data corresponding to different substances. for more concentrated cases they appear to be more exponential (the data I was trying to fit above is the red line in the graph below). If I use an exponential fitting for the 15 mM case, the R2 value would be 1.

I1TKgEY.png
RUber said:
Like the previous posters mentioned, this data does not appear to be exponential, since linear is a better fit overall. However, if you have to fit it to the model you provided, then fitting the log is one easy way to do it.
In this case, what do you get for M0 and T2?

Using an exponential fit, I got ##y=62570 e^{-0.01036 x},## so ##M_0 = 62570,## and ##T_2 = 96.5251.##

By linear fitting the log plot, I got ##y=-0.0123 x +11.1,## so ##M_0=66171## and ##T_2 = 81.3.##
 
  • #12
I have a related question. If instead of an exponential decay, we had an exponential growth given by

$$M_z (t)=M_z(0) e^{-t/T_1} + M_0 (1-e^{-t/T_1}) \tag{2}$$

kSZNT3t.jpg


And I had measurements of ##M_z (t)## over a range of ##t,## what would be a good fitting to work out ##T_1##?

The following is a fitting two-term exponential model I made for my data:

q8OUynH.png


It has the following equation

$$26420 e^{(1.347\times 10^{-6})x} -24500 e^{(-0.07508)x}.$$

Since the two exponents are very different, how would I work out ##T_1##? I would get two very different values. :confused:

And if I plot ##log (M_z (t))## vs ##t##, the resulting graph would still be an exponential growth, so I think a linear fitting would not be approperiate.
 
  • #13
##\log{\left[\frac{M_z(t)-M_0}{M_z(0)-M_0}\right]}## vs t
 
  • Like
Likes roam
  • #14
These new graphs look more reasonably exponential. M(∞) can be taken to be 0, so your exponential plot is the simple one said that the start.
It would be interesting to see your corresponding logarithmic plots for this new data.
By the way for the top one, I think it corresponds to that in your first post, the difference between rate constant obtained by linear fit, and that obtained by exponential fit, would be expected to be not enormous (which I think is what you got) because after all the concentration is very roughly constant.
If all these experiments are each colour a different substance, then each might have a different rate constant. If any of them are the same substance, the rate constants would be expected to be the same regardless of initial concentration.
 
Last edited:
  • Like
Likes roam
  • #15
Chestermiller said:
##\log{\left[\frac{M_z(t)-M_0}{M_z(0)-M_0}\right]}## vs t

Thank you. But how can I plot ##\log{\left[\frac{M_z(t)-M_0}{M_z(0)-M_0}\right]}## when I don't know ##M_0## and ##M_z(0)## beforehand?

As defined in the diagram in my last post, ##M_0## is the asymptote of the exponential, and ##M_z(0)## is its starting value. I think if I had a plot, the y-intercept of the linear fitting would be ##M_z(0).## But how can I make a plot without knowing these values in advance?

Also, is there any way a two-term exponential fitting can be used to determine ##T_1## in equation (2)?
 
  • #16
roam said:
Thank you. But how can I plot ##\log{\left[\frac{M_z(t)-M_0}{M_z(0)-M_0}\right]}## when I don't know ##M_0## and ##M_z(0)## beforehand?

As defined in the diagram in my last post, ##M_0## is the asymptote of the exponential, and ##M_z(0)## is its starting value. I think if I had a plot, the y-intercept of the linear fitting would be ##M_z(0).## But how can I make a plot without knowing these values in advance?

Also, is there any way a two-term exponential fitting can be used to determine ##T_1## in equation (2)?
Oh. Sorry. I thought that ##M_0## was known. You must know ##M_z(0)##, since that is just the value of ##M_z(t)## at what you call t = 0. If you knew ##M_0##, then you could still plot ##\log(M_z(t)-M_0)## vs t and then fit your best straight line to it. Or, if ##M_0## is not known, you could plot several lines using different values of ##M_0##, and choose the one that gives the best straight line.

Otherwise, if such line plotting is unsatisfactory to you, you could do a non-linear least squares fit of the equation to the data to determine the best values of the unknown parameters of ##M_0## and ##T_1##. Are you familiar with doing non-linear least squares?
 
  • Like
Likes roam
  • #17
Chestermiller said:
Oh. Sorry. I thought that ##M_0## was known. You must know ##M_z(0)##, since that is just the value of ##M_z(t)## at what you call t = 0. If you knew ##M_0##, then you could still plot ##\log(M_z(t)-M_0)## vs t and then fit your best straight line to it. Or, if ##M_0## is not known, you could plot several lines using different values of ##M_0##, and choose the one that gives the best straight line.

Otherwise, if such line plotting is unsatisfactory to you, you could do a non-linear least squares fit of the equation to the data to determine the best values of the unknown parameters of ##M_0## and ##T_1##. Are you familiar with doing non-linear least squares?

Unfortunately, I am not very familiar with non-linear least squares fitting. Does the Matlab polyfit function perform this operation you are referring to? And what should be the order of the chosen polynomial?

I think somehow in Matlab I need to specify the equation ##f(x) = a e^{b x} + c,## so that from the values ##a, b, c## obtained we can compute ##M_0## and ##T_1.## I am not sure what kind of fitting does that.
 
  • #18
roam said:
Unfortunately, I am not very familiar with non-linear least squares fitting. Does the Matlab polyfit function perform this operation you are referring to? And what should be the order of the chosen polynomial?

I think somehow in Matlab I need to specify the equation ##f(x) = a e^{b x} + c,## so that from the values ##a, b, c## obtained we can compute ##M_0## and ##T_1.## I am not sure what kind of fitting does that.
I haven't used Matlab, but most software like it allows you to specify the mathematical form of a function with adjustable parameters that are determined by fitting a set of data.
 
  • Like
Likes roam

1. How do you solve an exponential equation using a graph?

To solve an exponential equation using a graph, you must first plot the exponential function on a graph. Then, you can use the graph to find the x-value where the function intersects with the y-value given in the equation. This x-value is the solution to the equation.

2. What is the purpose of solving an exponential equation using a graph?

The purpose of solving an exponential equation using a graph is to visually determine the solution to the equation. This can be helpful in cases where the equation is difficult to solve algebraically or when you want to quickly estimate the solution.

3. What are the steps to solving an exponential equation using a graph?

The steps to solving an exponential equation using a graph are: 1) Write the equation in the form y = ab^x, 2) Plot the exponential function on a graph, 3) Find the x-value where the function intersects with the given y-value, and 4) Check your solution by plugging it back into the original equation.

4. Can you use a graph to solve any exponential equation?

No, a graph can only be used to solve exponential equations in the form y = ab^x. Other types of exponential equations, such as those involving logarithms, must be solved using different methods.

5. What should I do if the exponential equation does not have a clear solution on the graph?

If the exponential equation does not have a clear solution on the graph, you can use the intersection feature on a graphing calculator or software to find the approximate solution. Alternatively, you can also use trial and error by plugging in different values for x until you find a value that satisfies the equation.

Similar threads

  • Introductory Physics Homework Help
Replies
6
Views
947
  • Calculus and Beyond Homework Help
Replies
2
Views
314
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
26
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Introductory Physics Homework Help
Replies
20
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
12
Views
1K
  • Precalculus Mathematics Homework Help
Replies
11
Views
2K
Back
Top