Logarithmic Plotting for Function of Temperature

Click For Summary
The discussion centers on plotting a function of temperature on a logarithmic scale, specifically whether to plot the function as f(ln(T)) or simply use a logarithmic scale for the temperature axis. It is suggested that using a logarithmic scale can clarify relationships in data that varies exponentially. The user provides specific functions for the effective conduction band density of states for silicon, germanium, and gallium arsenide and shares their MATLAB code for plotting. Clarifications are made that the correct approach involves taking the logarithm of both the temperature and the function values to achieve a linear representation on the log-log plot. The conversation emphasizes the importance of understanding the nature of the data being plotted to determine the appropriate method.
WolfOfTheSteps
Messages
134
Reaction score
0

Homework Statement



I have a function of temperature, and I am asked to do the following:

"Plot it in logarithmic scale as a function of the logarithm of temperature"

The Attempt at a Solution



Does this mean I just make the horizontal axis, T, a logarithmic numberline?

Or do I have to actually plot my function f(T) as f(ln(T)), and just have relatively small numbers on the x-axis numberline?

While the second option seems to literally be what the question is asking me to do, I don't see the point! You loose the ability to see T on the x-axis! (Instead you see numbers for ln(T) which is not intuitive) Both plots look basically the same, so why would the question ask me to do the latter option??

Thanks!
 
Physics news on Phys.org
It may not be intuitive because you aren't so used to it. There are some things, like spectral power, that I couldn't even imagine not being on a log scale and would almost be non-intuitive for it not to be.

If your temperature varies exponentially, then the log scale can tidy up the data, and show relationships that are not otherwise obvious.

Hard to say without seeing your data though. Could you somehow post it?
 
Yeah, it's just three functions of temperature for the effective conduction band density of states for Si, Ge, and GaAs. After doing all the computations, here are the 3 functions:

N_{c,Si} = 5.447\times 10^{20} \cdot T^{3/2}
N_{c,Ge} = 2.03\times 10^{21} \cdot T^{3/2}

and

N_{c,GaAs} = 8.38\times 10^{19} \cdot T^{3/2}

So I just set up an array in Matlab for T values from 1 to 1000 Kelvin, then took the natural log of the array and plotted each of these functions as a function of these logarithms rather than of T. (I just substituted T for ln(T) in each of the above equations)

If you are familiar with matlab, my code was:

Code:
T1 = 0.1:.1:1000
T = log(T1)
NcSi = 5.447e20*T.^(3/2)
NcGe = 2.0343e21*T.^(3/2)
NcGaAs = 8.375e19*T.^(3/2)
plot(T,NcSi,T,NcGe,T,NcGaAs)

Then I adjusted the y-axis in the figure editor to make it logarithmic as well. Do you think I'm doing it correctly?

Here's a picture:

http://img223.imageshack.us/img223/8372/curveshp4.th.jpg
 
Last edited by a moderator:
Ah, okay, so your original data is some kind of exponential function. If you take the ln or log of the y-axis then it should work out.

Say you have a function
y(x) = e^(Tx) + B

if you take natural log

ln(y(x))=Y(x)= Tx + lnB

now the function Y(x) is linear, and you can figure out the time constant, decay constant, whatever from the slope of the new linear function.

Sorry this is brief, I could explain the slope part, but my laptop battery is about to die and if you can figure it out :).

Edit:
Also, just now looking at your code I see that it is not an exponential function, so this doesn't work. I'll look at the problem a little later.
 
Last edited:
So, in general the purpose is going to be to take some function that varies by some sort of power and make it a straight line. If you take the log of both the function and the dependent variable then you will get a straight line.

In your code you are dotting the log of the temperature vector to the power of (3/2), where as you want to be taking the normal data, without the log, and getting your data points. Then take those normal data points and take the log of them. If you then plot the log of those points with the log of the temperature vector, you should get a straight line and a "log plot."

Do something like
Code:
%find data points
T1 = 0.1:.1:1000;
NcSi = 5.447e20*T1.^(3/2);
NcGe = 2.0343e21*T1.^(3/2);
NcGaAs = 8.375e19*T1.^(3/2);
%log stuff
T = log(T1);
LNcSi = log(NcSi);
LNcGe = log(NcGe);
LNcGaAs = log(NcGaAs);
%plot stuff
plot(T,LNcSi,T,LNcGe,T,LNcGaAs)
title('Semiconctors')
xlabel('Log Temperature')
ylabel('Log Rating(?)')
 
Thanks, Mindscrape. I really appreciate the time you've taken to help me out!
 
Thread 'Correct statement about size of wire to produce larger extension'
The answer is (B) but I don't really understand why. Based on formula of Young Modulus: $$x=\frac{FL}{AE}$$ The second wire made of the same material so it means they have same Young Modulus. Larger extension means larger value of ##x## so to get larger value of ##x## we can increase ##F## and ##L## and decrease ##A## I am not sure whether there is change in ##F## for first and second wire so I will just assume ##F## does not change. It leaves (B) and (C) as possible options so why is (C)...

Similar threads

Replies
12
Views
1K
Replies
14
Views
2K
Replies
0
Views
1K
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
12
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K