Numerical Integration
Problem 28. Integrate Eq. 14.33 over all wavelengths to obtain the Stefan-Boltzmann law, Eq. 14.34. You will need the integral
Equation 14.33 is Planck’s blackbody radiation law and Eq. 14.34 specifies that the total power emitted by a blackbody.
Suppose Russ Hobbie and I had not given you that integral. What would you do? Previously in this blog I explained how the integral can be evaluated analytically and perhaps you’re skilled enough to perform that analysis yourself. But it’s complicated, and I doubt most scientists could do it. If you couldn’t, what then?
You could integrate numerically. Your goal is to find the area under the curve shown below.
A good trick is to make a change of variable, such as
We can evaluate this integral using the trapezoid rule. We divide the range of t into N subregions, each extending over a length of Δt = 1/N. Ordinarily, we have to be careful dealing with the two endpoints at t = 0 and 1, but in this case the function we are integrating goes to zero at the endpoints and therefore contributes nothing to the sum. The approximation is shown below for N = 4, 8, and 16.
I performed the calculation using the software Octave (a free version of Matlab). The program is:
N=8;
dt=1/N;
s=0;
for i=1:N-1
t=i*dt;
s=s+dt*t^3/((exp(t/(1-t))-1)*(1-t)^5);
endfor
N | I | % error |
---|---|---|
2 | 1.1640 | –82 |
4 | 6.2823 | –3.26 |
8 | 6.6911 | 3.04 |
16 | 6.5055 | 0.178 |
32 | 6.4940 | 0.000282 |
64 | 6.4939 | 0.00000235 |
128 | 6.4939 | 0.00000000174 |
These results show that you can evaluate the integral accurately without too much effort. You could even imagine doing this by hand if you didn’t have access to a computer—using, say, N = 16—and getting an answer accurate to better than two parts per thousand.
For many purposes, a numerical solution such as this one is adequate. However, 6.4939… doesn’t look as pretty as π4/15. I wonder how many people could calculate 6.4939 and then say “Hey, I know that number; It’s π4/15”!
Source: http://hobbieroth.blogspot.com/2022/09/numerical-integration.html
Anyone can join.
Anyone can contribute.
Anyone can become informed about their world.
"United We Stand" Click Here To Create Your Personal Citizen Journalist Account Today, Be Sure To Invite Your Friends.
Please Help Support BeforeitsNews by trying our Natural Health Products below!
Order by Phone at 888-809-8385 or online at https://mitocopper.com M - F 9am to 5pm EST
Order by Phone at 866-388-7003 or online at https://www.herbanomic.com M - F 9am to 5pm EST
Order by Phone at 866-388-7003 or online at https://www.herbanomics.com M - F 9am to 5pm EST
Humic & Fulvic Trace Minerals Complex - Nature's most important supplement! Vivid Dreams again!
HNEX HydroNano EXtracellular Water - Improve immune system health and reduce inflammation.
Ultimate Clinical Potency Curcumin - Natural pain relief, reduce inflammation and so much more.
MitoCopper - Bioavailable Copper destroys pathogens and gives you more energy. (See Blood Video)
Oxy Powder - Natural Colon Cleanser! Cleans out toxic buildup with oxygen!
Nascent Iodine - Promotes detoxification, mental focus and thyroid health.
Smart Meter Cover - Reduces Smart Meter radiation by 96%! (See Video).