<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Math Encounters Blog</title>
	<atom:link href="http://mathscinotes.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mathscinotes.wordpress.com</link>
	<description>I stumbled upon some math today ...</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mathscinotes.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Math Encounters Blog</title>
		<link>http://mathscinotes.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mathscinotes.wordpress.com/osd.xml" title="Math Encounters Blog" />
	<atom:link rel='hub' href='http://mathscinotes.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Beamforming Math</title>
		<link>http://mathscinotes.wordpress.com/2012/01/20/beamforming-math/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/20/beamforming-math/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 18:56:01 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[amateur radio]]></category>
		<category><![CDATA[antenna]]></category>
		<category><![CDATA[circuits]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=5050</guid>
		<description><![CDATA[Introduction I was at the Consumer Electronics Show (CES) last week and spent a lot of time talking to various silicon vendors about their wireless offerings. During these discussions, the topic of beamforming came up numerous times. Beamforming maximizes the &#8230; <a href="http://mathscinotes.wordpress.com/2012/01/20/beamforming-math/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=5050&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>I was at the Consumer Electronics Show (CES) last week and spent a lot of time talking to various silicon vendors about their wireless offerings. During these discussions, the topic of beamforming came up numerous times. Beamforming maximizes the transmit energy and receive sensitivity of an antenna in a specific direction. Beamforming is becoming a critical technology for improving the data transfer rate of wireless systems &#8212; rates that are critical to making wireless technology a credible option for delivering reliable Internet Protocol (IP) video around a home. The reliable delivery of IP video over wireless will simplify the deployment of Fiber-to-the-Home systems (my focus) by eliminating the need to install Ethernet cables to every room, which is expensive.</p>
<p>These discussions brought back many memories. Years ago I spent a lot of time working on beamforming for military sonar and radar systems. Military and aerospace technology often finds a home in commercial applications once it becomes cost effective, and beamforming is now becoming inexpensive enough to be in every home. Because I was familiar with the technology, I decided that it would be worthwhile to put together some training material for my staff on how beamforming works. I began by writing a Mathcad worksheet for simulating a simple linear antenna array. This simulation seemed to be a good way to illustrate how beamforming works and I thought it would be worthwhile to cover here.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Background</h2>
<p>Let&#8217;s begin by defining <a title="Wikipedia entry on beamforming" href="http://en.wikipedia.org/wiki/Beamforming">beamforming</a>. As usual, let&#8217;s turn to the Wikipedia.</p>
<blockquote><p>Beamforming is a signal processing technique used in sensor arrays for directional signal transmission or reception. This is achieved by combining elements in the array in a way where signals at particular angles experience constructive interference and while others experience destructive interference. Beamforming can be used at both the transmitting and receiving ends in order to achieve spatial selectivity. The improvement compared with an omnidirectional reception/transmission is known as the receive/transmit gain (or loss).</p></blockquote>
<p>I really like this definition because it focuses on the critical role of interference in allowing us to either direct energy (acoustic or electromagnetic) in a desired direction or to receive energy from a desired direction. Using advanced methods, we can also reject sending or receiving energy from a specific direction, which is called <a title="Wikipedia entry on null steering" href="http://en.wikipedia.org/wiki/Null-steering_beamformer">null steering</a>. Beamforming will be my focus here.</p>
<p>Beamforming is useful for wireless communication because these systems have limited transmit power and it is best to point the energy you transmit toward an actual receiver. When you are receiving, it is best to listen carefully in the direction of a transmitter and to reject noise coming from other directions. Null steering is useful when you have source of interference that you wish to reject, which could be something as common as a microwave oven making popcorn or a neighbor&#8217;s wireless system.</p>
<p>Since beamforming is a such a good thing to do, let&#8217;s now take a closer look at how it works.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Analysis</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Reciprocity</h3>
<p>As mentioned above, beamforming can be applied to both transmitting and receiving. In fact, transmit and receive beamforming are identical because of the <a title="Wikipedia article on electromagnetic reciprocity" href="http://en.wikipedia.org/wiki/Radiation_pattern#Reciprocity">principle of reciprocity</a>, which states that the receive sensitivity of an antenna as a function of direction is the same as the transmit radiation pattern from the same antenna when transmitting. See the <a title="Reciprocity in antennas" href="http://en.wikipedia.org/wiki/Radiation_pattern#Reciprocity">Wikipedia </a>for a discussion of this topic.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Linear Antenna Array</h3>
<p>For the purposes of this post, I will use the simple model of a linear array shown in Figure 1.</p>
<div id="attachment_5147" class="wp-caption aligncenter" style="width: 650px"><a href="http://mathscinotes.files.wordpress.com/2012/01/lineararraymodel5.png"><img class="size-full wp-image-5147" title="Figure 1: Linear Antenna Model." src="http://mathscinotes.files.wordpress.com/2012/01/lineararraymodel5.png?w=640&#038;h=252" alt="Figure 1: Linear Antenna Model." width="640" height="252" /></a><p class="wp-caption-text">Figure 1: Linear Antenna Model.</p></div>
<p>To keep this discussion simple, I will make the following assumptions:</p>
<ul>
<li>The antenna is composed of a series of identical elements separated by <em>λ/2</em>, where <em>λ= c/f</em>, <em>c</em> is the speed of light, and <em>f</em> is the frequency of transmission.
<p style="font-size:10px;">Since the dawn of radio, engineers have been directing radio power along specific directions using shaped reflectors (e.g. parabolas). You can analyze antenna arrays using the viewpoint that we are sampling these apertures using small antennas that I will refer to here as elements. Since we are sampling an aperture, <em>λ/2</em> makes sense because it corresponds to the Nyquist sampling rate for a receiver with a wavelength of <em>λ</em>. I will not be taking a sampling viewpoint for the remainder of this post, but I may in future posts.</p>
</li>
<li>Every element is a receiver &#8212; I will ignore transmitting.
<p style="font-size:10px;">By the reciprocity theorem, everything I say for a receiving antenna will also be true for a transmitting antenna. I am making this assumption just to reduce the amount of redundancy in this discussion. You should think of every element as a small antenna. We are going to be working with arrays of small antennas.</p>
</li>
<li>The receiver elements generate an output voltage or current that is proportional to the level of the signal impinging upon it.
<p style="font-size:10px;">This means that that output of an antenna element is an accurate reproduction of the signal strength impinging upon it.</p>
</li>
<li>Every element has an omnidirectional sensitivity response.
<p style="font-size:10px;">This means that every element is equally sensitive in all directions.</p>
</li>
<li>Assume that the wavelength <em>λ</em> = 1.
<p style="font-size:10px;">Expressing all lengths in units of λ does not limit this discussion in any way and is simpler to deal with analytically. This means that the elements are separated by 1/2 in units of <em>λ</em>.</p>
</li>
</ul>
<p>Given these assumptions, we can now create a mathematical model for the receive output of a linear array as a function of beam angle. While the linear array example it simple to analyze, it illustrates the basic approach to analyzing larger and more complex antenna arrays.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Simple Beamforming Algorithm</h3>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">What is Beamforming Computationally?</h4>
<p>Beamforming computationally is simply the linear combination of the outputs of the elements, which a beam can be computed using Equation 1.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;vertical-align:middle;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Czeta+%3D+%5Csum%5Climits_%7Bk%3D0%7D%5E%7Bk%3DN%7D%7B%7B%7Ba%7D_%7Bk%7D%7D%5Ccdot+%7B%7Bx%7D_%7Bk%7D%7D%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='&#92;zeta = &#92;sum&#92;limits_{k=0}^{k=N}{{{a}_{k}}&#92;cdot {{x}_{k}}} ' title='&#92;zeta = &#92;sum&#92;limits_{k=0}^{k=N}{{{a}_{k}}&#92;cdot {{x}_{k}}} ' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where</p>
<ul>
<li><em>N</em> is number of elements.</li>
<li><em>k</em> is an index variable.</li>
<li><em>a<sub>k</sub></em> is coefficient of the <em>k<sup>th</sup></em> element.</li>
<li><em>x<sub>k</sub></em> is the voltage response from the <em>k<sup>th</sup></em> element.</li>
<li><em>ζ</em> is the beam response.</li>
</ul>
<p>Equation 1 is not difficult to compute, but we need to determine what coefficients we should use to enhance the antenna&#8217;s receive gain in a specified direction.</p>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Intuitive View of Array Beamforming</h4>
<p>Consider Figure 2, where we have a transmitter that is far away from our linear antenna. &#8220;Far away&#8221; in this case means that the transmitter is many wavelengths distant from the receiving antenna.</p>
<div id="attachment_5066" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2012/01/phaseshift.png"><img class="size-full wp-image-5066" title="Figure 2: Illustration of the Phase Shift At Each Element." src="http://mathscinotes.files.wordpress.com/2012/01/phaseshift-e1327007181218.png?w=640" alt="Figure 2: Illustration of the Phase Shift At Each Element."   /></a><p class="wp-caption-text">Figure 2: Illustration of the Phase Shift At Each Element.</p></div>
<p>For a transmitter that is far enough away, the wavefronts can be approximated as plane waves when they arrive at the receive antenna. When we evaluate Equation 1 for the situation shown in Figure 2 assuming that <em>a<sub>k</sub></em>=1 , the maximum response is generated when all wavefronts hit each element at the same time (perfect constructive interference). This will occur when the transmitter is located on a line that is perpendicular to the orientation of the linear array. If the transmitter moves away from the perpendicular, destructive interference begins to occur and the magnitude of the response reduces.</p>
<p>In order to steer the beam in different directions, we need to look closely at Figure 2 and observe that, for transmitters that are not along the perpendicular, there is a linearly increasing phase shift introduced along the array elements. Can we use the coefficients to cancel out the phase differences and rotate the direction of maximum antenna response? It turns out we can.</p>
<p>We can compute the phase shift in the signal received between each element using Equation 2. The key to deriving this equation is to note that each element receives the same signal, but at a slightly different time. This time can be modeled as a phase shift.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;vertical-align:middle;">Eq. 2</td>
<td><img src='http://s0.wp.com/latex.php?latex=y%5Cleft%28+t+%5Cright%29%3D%5Csin+%5Cleft%28+2%5Ccdot+%5Cpi+%5Ccdot+f%5Ccdot+%5Cleft%28+t%2B%5Cdelta+t+%5Cright%29+%5Cright%29%3D%5Csin+%5Cleft%28+2%5Ccdot+%5Cpi+%5Ccdot+f%5Ccdot+t%2B%5Cvarphi+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='y&#92;left( t &#92;right)=&#92;sin &#92;left( 2&#92;cdot &#92;pi &#92;cdot f&#92;cdot &#92;left( t+&#92;delta t &#92;right) &#92;right)=&#92;sin &#92;left( 2&#92;cdot &#92;pi &#92;cdot f&#92;cdot t+&#92;varphi &#92;right)' title='y&#92;left( t &#92;right)=&#92;sin &#92;left( 2&#92;cdot &#92;pi &#92;cdot f&#92;cdot &#92;left( t+&#92;delta t &#92;right) &#92;right)=&#92;sin &#92;left( 2&#92;cdot &#92;pi &#92;cdot f&#92;cdot t+&#92;varphi &#92;right)' class='latex' /></td>
</tr>
<tr>
<td style="width:50px;vertical-align:middle;"></td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Cvarphi+%3D2%5Ccdot+%5Cpi+%5Ccdot+f%5Ccdot+%5Cdelta+t+&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;varphi =2&#92;cdot &#92;pi &#92;cdot f&#92;cdot &#92;delta t ' title='&#92;varphi =2&#92;cdot &#92;pi &#92;cdot f&#92;cdot &#92;delta t ' class='latex' /></td>
</tr>
<tr>
<td style="width:50px;vertical-align:middle;"></td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Csin+%5Cleft%28+%5Ctheta+%5Cright%29%3D%5Cfrac%7Bc%5Ccdot+%5Cdelta+t%7D%7B%5Cfrac%7B%5Clambda+%7D%7B2%7D%7D%3D%5Cfrac%7B%5Cfrac%7Bc%5Ccdot+%5Cvarphi+%7D%7B2%5Ccdot+%5Cpi+%5Ccdot+f%7D%7D%7B%5Cfrac%7B%5Clambda+%7D%7B2%7D%7D%3D%5Cfrac%7Bc%5Ccdot+%5Cvarphi+%7D%7B%5Cpi+%5Ccdot+f%5Ccdot+%5Clambda+%7D%3D%5Cfrac%7Bc%5Ccdot+%5Cvarphi+%7D%7B%5Cpi+%5Ccdot+c%7D%3D%5Cfrac%7B%5Cvarphi+%7D%7B%5Cpi+%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;sin &#92;left( &#92;theta &#92;right)=&#92;frac{c&#92;cdot &#92;delta t}{&#92;frac{&#92;lambda }{2}}=&#92;frac{&#92;frac{c&#92;cdot &#92;varphi }{2&#92;cdot &#92;pi &#92;cdot f}}{&#92;frac{&#92;lambda }{2}}=&#92;frac{c&#92;cdot &#92;varphi }{&#92;pi &#92;cdot f&#92;cdot &#92;lambda }=&#92;frac{c&#92;cdot &#92;varphi }{&#92;pi &#92;cdot c}=&#92;frac{&#92;varphi }{&#92;pi }' title='&#92;sin &#92;left( &#92;theta &#92;right)=&#92;frac{c&#92;cdot &#92;delta t}{&#92;frac{&#92;lambda }{2}}=&#92;frac{&#92;frac{c&#92;cdot &#92;varphi }{2&#92;cdot &#92;pi &#92;cdot f}}{&#92;frac{&#92;lambda }{2}}=&#92;frac{c&#92;cdot &#92;varphi }{&#92;pi &#92;cdot f&#92;cdot &#92;lambda }=&#92;frac{c&#92;cdot &#92;varphi }{&#92;pi &#92;cdot c}=&#92;frac{&#92;varphi }{&#92;pi }' class='latex' /></td>
</tr>
<tr>
<td style="width:50px;vertical-align:middle;"></td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Ctherefore+%5Cquad+%5Cvarphi+%3D%5Cpi+%5Ccdot+%5Csin+%5Cleft%28+%5Ctheta+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;therefore &#92;quad &#92;varphi =&#92;pi &#92;cdot &#92;sin &#92;left( &#92;theta &#92;right)' title='&#92;therefore &#92;quad &#92;varphi =&#92;pi &#92;cdot &#92;sin &#92;left( &#92;theta &#92;right)' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where</p>
<ul>
<li><em>θ</em> is the angle of target relative to a vector normal to the center of the element array.</li>
<li><em>φ</em> is the phase shift between each element.</li>
<li><em>δt</em> is the time delay of the signal between the elements.</li>
<li><em>f</em> is the transmit frequency.</li>
<li><em>c</em> is the speed of light.</li>
<li><em>t</em> is time.</li>
</ul>
<p>If we can compensate for the phase shift, we can maximize our receiver&#8217;s response in the direction of the transmitter. That is exactly what we are going to do.</p>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Beamforming Simulation</h4>
<p>Here is the approach I am going to use to determine the output of a simple beamformer.</p>
<ul>
<li>Determine the distance from each element to the source using the Pythagorean theorem.</li>
<li>Determine the amplitude and phase of the signal at each element using the distance.</li>
<li>Evaluate Equation 1.</li>
<li>Plot the output of Equation 1 as a function of transmitter angle.</li>
</ul>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Distance to the Transmitter</h4>
<p>Equation 3 shows my Mathcad program for generating the distance between an element and the transmitter.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;vertical-align:middle;">Eq. 3</td>
<td><a href="http://mathscinotes.files.wordpress.com/2012/01/distance2.png"><img class="aligncenter size-full wp-image-5146" title="" src="http://mathscinotes.files.wordpress.com/2012/01/distance2.png?w=640" alt=""   /></a></td>
</tr>
</tbody>
</table>
<p>where</p>
<ul>
<li><em>N</em> is number of elements.</li>
<li><em>r</em> is the radial distance to the transmitter.</li>
<li><em>θ</em> is the angle of target relative to a vector normal to the center of the element array.</li>
<li><em>k</em> is the element index (labeled from left to right in Figure 1).</li>
</ul>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Amplitude and Phase of the Received Signal</h4>
<p>Equation 4 gives the phase of the signal at element as a function of distance. This formula uses the fact that each wavelength of distance equals 2·π of phase.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;vertical-align:middle;">Eq. 4</td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Cvarphi+%3D%7B%7B%5Cleft.+%5Cfrac%7B%5Ctext%7Bdist%7D%5Cleft%28+k%2C%5Ctheta+%2Cr%2CN+%5Cright%29%7D%7B%5Clambda+%7D+%5Cright%7C%7D_%7B%5Clambda+%3D1%7D%7D%5Ccdot+2%5Ccdot+%5Cpi+%3D%5Ctext%7Bdist%7D%5Cleft%28+k%2C%5Ctheta+%2Cr%2CN+%5Cright%29%5Ccdot+2%5Ccdot+%5Cpi+&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;varphi ={{&#92;left. &#92;frac{&#92;text{dist}&#92;left( k,&#92;theta ,r,N &#92;right)}{&#92;lambda } &#92;right|}_{&#92;lambda =1}}&#92;cdot 2&#92;cdot &#92;pi =&#92;text{dist}&#92;left( k,&#92;theta ,r,N &#92;right)&#92;cdot 2&#92;cdot &#92;pi ' title='&#92;varphi ={{&#92;left. &#92;frac{&#92;text{dist}&#92;left( k,&#92;theta ,r,N &#92;right)}{&#92;lambda } &#92;right|}_{&#92;lambda =1}}&#92;cdot 2&#92;cdot &#92;pi =&#92;text{dist}&#92;left( k,&#92;theta ,r,N &#92;right)&#92;cdot 2&#92;cdot &#92;pi ' class='latex' /></td>
</tr>
</tbody>
</table>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Evaluate Equation 1</h4>
<p>My approach to evaluating Equation 1 is to break it into three parts.</p>
<ul>
<li>Generate a vector of steering coefficients.</li>
<li>Compute a matrix of the element responses over a range of transmitter angles.</li>
<li>Form the matrix product of the steering coefficients and the element responses, which is equivalent to evaluating Equation 1.</li>
</ul>
<p>Figure 3 illustrates how I compute the compensating phase shifts for two different beams. It turns out that you can generate multiple beams in parallel and I will illustrate below.</p>
<div id="attachment_5126" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2012/01/coefficients.png"><img class="size-full wp-image-5126" title="Figure 3: Generate the Coefficients For Generating a Beam in A Specific Direction." src="http://mathscinotes.files.wordpress.com/2012/01/coefficients-e1327081545778.png?w=640" alt="Figure 3: Generate the Coefficients For Generating a Beam in A Specific Direction."   /></a><p class="wp-caption-text">Figure 3: Generate the Coefficients For Generating a Beam in A Specific Direction.</p></div>
<p>Figure 4 illustrates how to compute a matrix of element responses for a transmitter positioned along a range of angles from 0° to 180°.</p>
<div id="attachment_5128" class="wp-caption aligncenter" style="width: 515px"><a href="http://mathscinotes.files.wordpress.com/2012/01/elementresponses.png"><img class="size-full wp-image-5128" title="Figure 4: Element Responses for a Range of Angles from 0° to 180°." src="http://mathscinotes.files.wordpress.com/2012/01/elementresponses.png?w=640" alt="Figure 4: Element Responses for a Range of Angles from 0° to 180°."   /></a><p class="wp-caption-text">Figure 4: Element Responses for a Range of Angles from 0° to 180°.</p></div>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Plot the Output of Equation 1</h4>
<p>Figure 5 shows a plot of sensitivity for two beams, at 45° and -30° off the perpendicular.</p>
<div id="attachment_5131" class="wp-caption aligncenter" style="width: 624px"><a href="http://mathscinotes.files.wordpress.com/2012/01/beampattern.png"><img class="size-full wp-image-5131" title="Figure 5: Two Beam Patterns for an 7 Element Antenna and a Transmitter at Range = 1000 λ." src="http://mathscinotes.files.wordpress.com/2012/01/beampattern.png?w=640" alt="Figure 5: Two Beam Patterns for an 7 Element Antenna and a Transmitter at Range = 1000 λ."   /></a><p class="wp-caption-text">Figure 5: Two Beam Patterns for a 7 Element Antenna and a Transmitter at Range = 1000 λ.</p></div>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>There is a lot more to talk about here, but I was able to put together a simple beamforming example for my team. You can see from this example that one can &#8220;point&#8221; the response curve of the antenna in specific direction with just a bit of matrix math. Note that the antenna beam patterns have a main &#8220;lobe&#8221; and side &#8220;lobes.&#8221; In a later post, I will discuss how to reduce the amplitude of the <a title="Wikipedia for Sidelobes" href="http://en.wikipedia.org/wiki/Sidelobe" target="_blank">sidelobes</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/5050/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/5050/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/5050/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/5050/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/5050/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/5050/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/5050/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/5050/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=5050&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/20/beamforming-math/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/lineararraymodel5.png" medium="image">
			<media:title type="html">Figure 1: Linear Antenna Model.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/phaseshift-e1327007181218.png" medium="image">
			<media:title type="html">Figure 2: Illustration of the Phase Shift At Each Element.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/distance2.png" medium="image" />

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/coefficients-e1327081545778.png" medium="image">
			<media:title type="html">Figure 3: Generate the Coefficients For Generating a Beam in A Specific Direction.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/elementresponses.png" medium="image">
			<media:title type="html">Figure 4: Element Responses for a Range of Angles from 0° to 180°.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/beampattern.png" medium="image">
			<media:title type="html">Figure 5: Two Beam Patterns for an 7 Element Antenna and a Transmitter at Range = 1000 λ.</media:title>
		</media:content>
	</item>
		<item>
		<title>Approximation Math</title>
		<link>http://mathscinotes.wordpress.com/2012/01/09/approximation-math/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/09/approximation-math/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 19:02:07 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[General Mathematics]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4938</guid>
		<description><![CDATA[Introduction Back in 2003, I used an approximation for the logarithm function in a hardware application. When originally implemented, the function only had to work for a limited range of input. Recently, a customer has requested that we expand the &#8230; <a href="http://mathscinotes.wordpress.com/2012/01/09/approximation-math/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4938&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>Back in 2003, I used an approximation for the logarithm function in a hardware application. When originally implemented, the function only had to work for a limited range of input. Recently, a customer has requested that we expand the range of operation for this function. This post examines how I went about expanding this approximation&#8217;s range of operation.</p>
<p>Engineers frequently have to approximate common mathematical functions. You might wonder why we still need to approximate these functions when there are excellent mathematical libraries available for all commonly used processors. There are two reasons:</p>
<ul>
<li>Speed<BR>Library functions are coded for accuracy and they frequently take a long time to execute. There are applications where accuracy is less important than speed and approximations may accurate enough and fast enough to solve your problem. For example, I have had to use approximations to the square root function when computing the magnitude of vectors in real-time  navigation applications. Library functions simply were too slow.</li>
<li>Cost<BR>Library functions require lots of memory and may force you to buy a faster processor in order to execute them. My cost limitations are usually so tough that I have to use cheap processors like <a href="http://en.wikipedia.org/wiki/Atmel_AVR" title="Wikipedia article on AVR processors" target="_blank">AVRs</a>, which have limited memory and throughput. I need to find inexpensive ways to implement math functions on these brain-dead computers.</li>
</ul>
<p>We will examine my original implementation and how I went about expanding its range of operation, which engineers refer to as the function&#8217;s &#8220;dynamic range.&#8221;</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Background</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Decibel Basics</h3>
<p>Technically, I view decibels as a scaling rather than a unit. Decibels are always expressed relative to a unit, in this case milliwatts. Equation 1 defines the dBm, which means decibels relative to one mW.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=%7B%7BP%7D_%7BdBm%7D%7D%3D10%5Ccdot+%5Clog+%5Cleft%28+%7B%7BP%7D_%7BmW%7D%7D+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='{{P}_{dBm}}=10&#92;cdot &#92;log &#92;left( {{P}_{mW}} &#92;right)' title='{{P}_{dBm}}=10&#92;cdot &#92;log &#92;left( {{P}_{mW}} &#92;right)' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where </p>
<ul>
<li><em>P<sub>mW</sub></em> is the measured power in milliwatts [mW],</li>
<li><em>P<sub>dBm</sub></em> is the measured power expressed in decibels milliwatt (dBm)</li>
</ul>
<p>I need to approximate Equation 1 over a range from &#8211; 6 dBm to 0 dBm with an accuracy of better than 0.5 dB. This post will use a 4<sup>th</sup>-order polynomial to approximate the logarithm function. Equation 2 defines my polynomial model. I also include an equivalent matrix version.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 2</td>
<td><img src='http://s0.wp.com/latex.php?latex=d%7B%7BB%7D_%7BApprox%7D%7D%28x%29%3D%7B%7Ba%7D_%7B4%7D%7D%5Ccdot+%7B%7Bx%7D%5E%7B4%7D%7D%2B%7B%7Ba%7D_%7B3%7D%7D%5Ccdot+%7B%7Bx%7D%5E%7B3%7D%7D%2B%7B%7Ba%7D_%7B2%7D%7D%5Ccdot+%7B%7Bx%7D%5E%7B2%7D%7D%2B%7B%7Ba%7D_%7B1%7D%7D%5Ccdot+x%2B%7B%7Ba%7D_%7B0%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='d{{B}_{Approx}}(x)={{a}_{4}}&#92;cdot {{x}^{4}}+{{a}_{3}}&#92;cdot {{x}^{3}}+{{a}_{2}}&#92;cdot {{x}^{2}}+{{a}_{1}}&#92;cdot x+{{a}_{0}}' title='d{{B}_{Approx}}(x)={{a}_{4}}&#92;cdot {{x}^{4}}+{{a}_{3}}&#92;cdot {{x}^{3}}+{{a}_{2}}&#92;cdot {{x}^{2}}+{{a}_{1}}&#92;cdot x+{{a}_{0}}' class='latex' /></td>
</tr>
<tr>
<td style="width:50px;"></td>
<td><img src='http://s0.wp.com/latex.php?latex=d%7B%7BB%7D_%7BApprox%7D%7D%28x%29%3D%5Cleft%5B+%7B%7Ba%7D_%7B4%7D%7D%5Cquad+%7B%7Ba%7D_%7B3%7D%7D%5Cquad+%7B%7Ba%7D_%7B2%7D%7D%5Cquad+%7B%7Ba%7D_%7B1%7D%7D%5Cquad+%7B%7Ba%7D_%7B0%7D%7D+%5Cright%5D%5Ccdot+%7B%7B%5Cleft%5B+%7B%7Bx%7D%5E%7B4%7D%7D%5Cquad+%7B%7Bx%7D%5E%7B3%7D%7D%5Cquad+%7B%7Bx%7D%5E%7B2%7D%7D%5Cquad+x%5Cquad+1+%5Cright%5D%7D%5E%7BT%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='d{{B}_{Approx}}(x)=&#92;left[ {{a}_{4}}&#92;quad {{a}_{3}}&#92;quad {{a}_{2}}&#92;quad {{a}_{1}}&#92;quad {{a}_{0}} &#92;right]&#92;cdot {{&#92;left[ {{x}^{4}}&#92;quad {{x}^{3}}&#92;quad {{x}^{2}}&#92;quad x&#92;quad 1 &#92;right]}^{T}}' title='d{{B}_{Approx}}(x)=&#92;left[ {{a}_{4}}&#92;quad {{a}_{3}}&#92;quad {{a}_{2}}&#92;quad {{a}_{1}}&#92;quad {{a}_{0}} &#92;right]&#92;cdot {{&#92;left[ {{x}^{4}}&#92;quad {{x}^{3}}&#92;quad {{x}^{2}}&#92;quad x&#92;quad 1 &#92;right]}^{T}}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>Now that we know a bit about decibels, let&#8217;s discuss how cable TV works.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Some Cable TV Basics</h3>
<p>Figure 1 illustrates the scenario I find myself in. In general, one laser will drive multiple stages of amplification. Thus, one laser and a &#8220;tree&#8221; of EDFAs can serve thousands of homes.<br />
<div id="attachment_4949" class="wp-caption aligncenter" style="width: 509px"><a href="http://mathscinotes.files.wordpress.com/2012/01/sketches1.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/sketches1.png?w=640" alt="Figure 1: General Optical Deployment Model using Lasers and EDFAs." title="Figure 1: General Optical Deployment Model using Lasers and EDFAs."   class="size-full wp-image-4949" /></a><p class="wp-caption-text">Figure 1: General Optical Deployment Model using Lasers and EDFAs.</p></div><br />
Video service providers use a laser to transmit their video signal to the homes they serve. The power of this signal is important because it determines how many homes can be served &#8212; every home must receive a specified level of power to provide a high quality signal. However, more optical power requires more expensive transmission gear (e.g. devices called <a href="http://en.wikipedia.org/wiki/Optical_amplifier" title="Wikipedia article on Optical Amplifiers" target="_blank">EDFAs</a>). Service providers want to use exactly the amount of optical power that they need and no more. They set the power of this signal in decibels because that is how the equipment was designed (again, the decibel legacy). For all sorts of reasons, my gear at the home needs to measure the power of this signal. However, real components measure power in mW (or a similar unit) not decibels. Yet, I need to be able to provide an optical power measurement in decibels for system monitoring purposes. I do not want to raise my product costs by adding memory just to compute decibels. So I decided to use a polynomial approximation to the logarithm because it requires little memory and is very fast on an AVR processor.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Analysis</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">My Original Polynomial Approximation</h3>
<p>Figure 2 shows my Mathcad implementation of a minimum-maximum error curve fit routine. I chose to use a dynamic range from -6 dBm to 0 dBm (to be truthful, the actual range I used was slightly different but for reasons that are unimportant here).<br />
<div id="attachment_5016" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2012/01/mathcadoriginal4.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/mathcadoriginal4-e1326134999632.png?w=640" alt="Figure 2: My Original Determination of Logarithmic Approximation Coefficients." title="Figure 2: My Original Determination of Logarithmic Approximation Coefficients."   class="size-full wp-image-5016" /></a><p class="wp-caption-text">Figure 2: My Original Determination of Logarithmic Approximation Coefficients.</p></div><br />
Figure 3 shows the &#8220;goodness of fit&#8221; for this approxmation.<br />
<div id="attachment_5023" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2012/01/goodnessoriginal2.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/goodnessoriginal2-e1326135682837.png?w=640" alt="Figure 3: Goodness of Fit for the Original Approximation." title="Figure 3: Goodness of Fit for the Original Approximation."   class="size-full wp-image-5023" /></a><p class="wp-caption-text">Figure 3: Goodness of Fit for the Original Approximation.</p></div></p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">A Wider Dynamic Range Version</h3>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Approach</h4>
<p>A service provider wants me to expand the range of operation of my optical power measurement to -12 dB to 6 dBm from -6 dBm to 0 dBm. As I thought about it, I made the following observations.</p>
<ul>
<li>I can break this range into three parts related by a factor of 4: </li>
<ul>
<li>-12 dBm to -6 dBm</li>
<li>-6 dBm to 0 dBm</li>
<li> 0 dm to 6 dBm</li>
</ul>
<li>You can see these ranges are related by a factor of 4 by noting that <img src='http://s0.wp.com/latex.php?latex=10%5Ccdot+%5Clog+%284%29%5Cdoteq+6+%5Ctext%7B+dB%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='10&#92;cdot &#92;log (4)&#92;doteq 6 &#92;text{ dB}' title='10&#92;cdot &#92;log (4)&#92;doteq 6 &#92;text{ dB}' class='latex' /></BR></font></li>
</ul>
<p>Given these observations, I can state Equation 3.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 3</td>
<td><img src='http://s0.wp.com/latex.php?latex=10%5Ccdot+%5Clog+%5Cleft%28+4%5Ccdot+x+%5Cright%29%3D10%5Ccdot+%5Clog+%5Cleft%28+x+%5Cright%29%2B6&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='10&#92;cdot &#92;log &#92;left( 4&#92;cdot x &#92;right)=10&#92;cdot &#92;log &#92;left( x &#92;right)+6' title='10&#92;cdot &#92;log &#92;left( 4&#92;cdot x &#92;right)=10&#92;cdot &#92;log &#92;left( x &#92;right)+6' class='latex' /></td>
</tr>
<tr>
<td style="width:50px;"></td>
<td><img src='http://s0.wp.com/latex.php?latex=10%5Ccdot+%5Clog+%5Cleft%28+%5Cfrac%7Bx%7D%7B4%7D+%5Cright%29%3D10%5Ccdot+%5Clog+%5Cleft%28+x+%5Cright%29-6&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='10&#92;cdot &#92;log &#92;left( &#92;frac{x}{4} &#92;right)=10&#92;cdot &#92;log &#92;left( x &#92;right)-6' title='10&#92;cdot &#92;log &#92;left( &#92;frac{x}{4} &#92;right)=10&#92;cdot &#92;log &#92;left( x &#92;right)-6' class='latex' /></td>
</tr>
</tbody>
</table>
<p>So I can use my dB approximation over a wider dynamic range by using Equation 3 as shown in Equation 4.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;vertical-align:middle;">Eq. 4</td>
<td valign="middle"><a href="http://mathscinotes.files.wordpress.com/2012/01/equations7.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/equations7-e1326135182545.png?w=640" alt="" title=""   class="aligncenter size-full wp-image-5020" /></a></td>
</tr>
</tbody>
</table>
<h4 style="color:brown;font-size:16px;font-family:tahoma;font-style:normal;text-decoration:underline;">Results</h4>
<p>Figure 4 shows the effectiveness of my approximation. This is not too bad and I can reuse software that has already been tested.<br />
<div id="attachment_5021" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2012/01/goodnessimproved2.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/goodnessimproved2-e1326135240562.png?w=640" alt="Figure 4: Wider Dynamic Range Version of the dB Approximation." title="Figure 4: Wider Dynamic Range Version of the dB Approximation."   class="size-full wp-image-5021" /></a><p class="wp-caption-text">Figure 4: Wider Dynamic Range Version of the dB Approximation.</p></div></p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>This was a nice example of using a property of logarithms to solve a common engineering problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4938/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4938&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/09/approximation-math/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/sketches1.png" medium="image">
			<media:title type="html">Figure 1: General Optical Deployment Model using Lasers and EDFAs.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/mathcadoriginal4-e1326134999632.png" medium="image">
			<media:title type="html">Figure 2: My Original Determination of Logarithmic Approximation Coefficients.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/goodnessoriginal2-e1326135682837.png" medium="image">
			<media:title type="html">Figure 3: Goodness of Fit for the Original Approximation.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/equations7-e1326135182545.png" medium="image" />

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/goodnessimproved2-e1326135240562.png" medium="image">
			<media:title type="html">Figure 4: Wider Dynamic Range Version of the dB Approximation.</media:title>
		</media:content>
	</item>
		<item>
		<title>Electronics for Kids</title>
		<link>http://mathscinotes.wordpress.com/2012/01/05/electronics-for-kids/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/05/electronics-for-kids/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 19:43:58 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4934</guid>
		<description><![CDATA[One of our software engineers asked me today if I could recommend any educational material that he could use to train his kids in basic electronics. As far as I am concerned, the best material I have ever seen for &#8230; <a href="http://mathscinotes.wordpress.com/2012/01/05/electronics-for-kids/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4934&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of our software engineers asked me today if I could recommend any educational material that he could use to train his kids in basic electronics. As far as I am concerned, the best material I have ever seen for young people comes from Forrest Mims. I highly recommend his <a href="http://www.forrestmims.org/" title="Forrest Mims web site" target="_blank">web site</a>, which also lists his publications. He also has some interesting astronomical work at this <a href="http://www.sunandsky.org/" title="Good Astronomy web site" target="_blank">web site</a>.</p>
<p>This material, along with some cheap <a href="http://www.radioshack.com/product/index.jsp?productId=3814337" title="Simple prototyping hardware" target="_blank">prototyping hardware from Radio Shack</a>, helped me train my kids. Some of Mims&#8217;s books can be picked up at Radio Shack as well. </p>
<p>By the way, I also made my kids build their own PCs. This proved to be educational and fun. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4934/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4934/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4934/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4934&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/05/electronics-for-kids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Great Demonstration of Harmonic Motion</title>
		<link>http://mathscinotes.wordpress.com/2012/01/05/great-demonstration-of-harmonic-motion/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/05/great-demonstration-of-harmonic-motion/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 18:45:29 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4931</guid>
		<description><![CDATA[One of the engineers was sending this around today. I thought it was amazing.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4931&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the engineers was sending this around today. I thought it was amazing.</p>
<span style="text-align:center; display: block;"><a href="http://mathscinotes.wordpress.com/2012/01/05/great-demonstration-of-harmonic-motion/"><img src="http://img.youtube.com/vi/yVkdfJ9PkRQ/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4931/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4931&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/05/great-demonstration-of-harmonic-motion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Nuclear Battery Math</title>
		<link>http://mathscinotes.wordpress.com/2012/01/03/nuclear-battery-math/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/03/nuclear-battery-math/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 22:02:17 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4874</guid>
		<description><![CDATA[Introduction My sons always tease me about my interest in space. In order to understand my interest in space, you need to understand what it was like being a boy during the 1960s. I had my own &#8220;October Sky&#8221; boyhood. &#8230; <a href="http://mathscinotes.wordpress.com/2012/01/03/nuclear-battery-math/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4874&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>My sons always tease me about my interest in space. In order to understand my interest in space, you need to understand what it was like being a boy during the 1960s. I had my own <a href="http://www.imdb.com/title/tt0132477/" title="October Sky at IMDB" target="_blank">&#8220;October Sky&#8221;</a> boyhood. I built rockets, read everything I could about space, built electronic circuits, and dreamt of someday being an engineer and space traveler. While the space traveler part didn&#8217;t work out, I was fortunate in that I did everything else that I dreamt about it. I have met numerous engineers who are now in the 50s who had the same experiences.</p>
<p>I still read everything I can find about space. Recently, I was reading about <a href="http://en.wikipedia.org/wiki/Mars_Science_Laboratory" title="Wikipedia entry for the Mars Science Laboratory" target="_blank">Mars Science Laboratory</a> (MSL) and noticed that it has a Radioisotope Thermoelectric Generator  (RTG) for a power source. Figure 1 shows an artist&#8217;s rendering of the MSL with two RTGs, which NASA refers to as the Radioisotope Power System (RPS).<br />
<div id="attachment_4883" class="wp-caption aligncenter" style="width: 650px"><a href="http://mathscinotes.files.wordpress.com/2012/01/800px-mars_science_laboratory_drawing.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/800px-mars_science_laboratory_drawing.png?w=640&#038;h=416" alt="Figure 1: Mars Science Laboratory Rover with Radioisotope Power System (aka RTG)." title="Figure 1: Mars Science Laboratory Rover with Radioisotope Power System (aka RTG)." width="640" height="416" class="size-full wp-image-4883" /></a><p class="wp-caption-text">Figure 1: Mars Science Laboratory Rover with Radioisotope Power System (aka RTG-based Power System).</p></div><br />
MSL&#8217;s use of an RTG got me thinking about a physicist I sat next to on a flight years ago. He worked for Medtronic and had assisted in the development of a &#8220;nuclear battery&#8221; for use in a <a href="http://home.comcast.net/~dprutchi/nuclear_pacemakers.pdf" title="Article on a Pacemaker Nuclear Battery" target="_blank">pacemaker</a>. It was on that flight that I learned a little bit about RTGs. Let&#8217;s see if we can use a bit of math to understand how an RTG works and how it is used on the MSL mission. As usual, I will be using Mathcad for the heavy lifting.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Background</h2>
<p>Referencing the <a href="http://en.wikipedia.org/wiki/Radiothermal_generator" title="Wikipedia article on the RTG">Wikipedia</a>, lets start with a definition of what an RTG is:</p>
<blockquote><p>
A radioisotope thermoelectric generator (RTG, RITEG) is an electrical generator that obtains its power from radioactive decay. In such a device, the heat released by the decay of a suitable radioactive material is converted into electricity by the Seebeck effect using an array of thermocouples.
</p></blockquote>
<p>Figure 1 (<a href="http://www.flickr.com/photos/inl/6351850318/in/photostream" title="Photograph from the Idaho National Laboratory" target="_blank">Source</a>) shows a photograph of the RTG used on MSL, which is called the <a href="http://en.wikipedia.org/wiki/Multi-Mission_Radioisotope_Thermoelectric_Generator" title="Wikipedia article on the MMRTG" target="_blank">Multi-Mission RTG (MMRTG)</a>.<br />
<div id="attachment_4880" class="wp-caption aligncenter" style="width: 250px"><a href="http://mathscinotes.files.wordpress.com/2012/01/mmrtg.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/mmrtg.png?w=640" alt="Figure 1: Photograph of MSL&#039;s MMRTG." title="Figure 1: Photograph of MSL&#039;s MMRTG."   class="size-full wp-image-4880" /></a><p class="wp-caption-text">Figure 1: Photograph of MSL&#039;s MMRTG.</p></div></p>
<p>I saw the following statement in The Atlantic Magazine about the MMRTG: </p>
<blockquote><p>
The 43kg MMRTG is designed to produce 125 watts of electrical power at the start of the mission, falling to about 100W after 14 years. (NASA/Kim Shiflett)
</p></blockquote>
<p>Let&#8217;s see if we can use this one statement to derive some information about the MSL&#8217;s RTG.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Analysis</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Amount of Power Required</h3>
<p>A thermoelectric generator requires heat to produce electricity. Unfortunately, thermoelectric generators are notoriously inefficient. <a href="http://trs-new.jpl.nasa.gov/dspace/bitstream/2014/39520/1/05-2638.pdf" title="NASA document on Thermoelectric Efficiency" target="_blank">NASA has reported</a> that their efficiency level is about 6.2%. This means that for every 1000 W put in, only ~62 W of electricity comes out. Since this generator is specified to put out 125 W, we need a heat source that produces <img src='http://s0.wp.com/latex.php?latex=%7B%7BP%7D_%7BTotal%7D%7D%3D%5Cfrac%7B125+%5Ctext%7BW%7D%7D%7B6.2+%5Ctext%7B+%5C%25%7D%7D%3D2008%5Ctext%7B+W%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='{{P}_{Total}}=&#92;frac{125 &#92;text{W}}{6.2 &#92;text{ &#92;%}}=2008&#92;text{ W}' title='{{P}_{Total}}=&#92;frac{125 &#92;text{W}}{6.2 &#92;text{ &#92;%}}=2008&#92;text{ W}' class='latex' />. The <a href="http://en.wikipedia.org/wiki/Multi-Mission_Radioisotope_Thermoelectric_Generator#Design_and_specifications" title="Wikipedia entry for the MMRTG" target="_blank">Wikipedia entry for the MMRTG</a> states that it dissipates 2 kW of power, so we appear to have the correct total power figure and efficiency.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Heat Generated by Radioactive Decay</h3>
<p>When a <a href="http://www.ieer.org/fctsheet/pu-props.html" title="Reference on Plutonium 238 characteristics" target="_blank">plutonium-238 atom decays</a>, it emits an alpha particle with a <a href="http://en.wikipedia.org/wiki/Decay_energy" title="Wikipedia entry on decay energy" target="_blank">decay energy</a> of 5.593 Million Electron Volts (MEV). It is this decay energy is the source of heat (i.e. energy) that will be converted to electricity by <a href="http://en.wikipedia.org/wiki/Thermocouples" title="Wikipedia entry on thermocouples" target="_blank">thermocouples</a>. This heat is enough to cause the Pu-238 to glow (see Figure 2, <a href="http://www.flickr.com/photos/inl/6348360755/in/photostream" title="Photograph from the Idaho National Laboratory" target="_blank">Source</a>).<br />
<div id="attachment_4881" class="wp-caption aligncenter" style="width: 250px"><a href="http://mathscinotes.files.wordpress.com/2012/01/glowingpu238.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/glowingpu238.png?w=640" alt="Figure 2: A Glowing Pu-238 RTG Element." title="Figure 2: A Glowing Pu-238 RTG Element."   class="size-full wp-image-4881" /></a><p class="wp-caption-text">Figure 2: A Glowing Pu-238 RTG Element.</p></div></p>
<p>Radioactive decay versus time is usually modeled mathematical using the concept of <a href="http://en.wikipedia.org/wiki/Half-life" title="Wikipedia article on half-life">half-life</a>. Equation 1 shows how half-life is used to model decay.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=N%28t%29%3D%7B%7BN%7D_%7B0%7D%7D%5Ccdot+%7B%7B%5Cleft%28+%5Cfrac%7B1%7D%7B2%7D+%5Cright%29%7D%5E%7B%5Cfrac%7Bt%7D%7B%7B%7Bt%7D_%7BHL%7D%7D%7D%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='N(t)={{N}_{0}}&#92;cdot {{&#92;left( &#92;frac{1}{2} &#92;right)}^{&#92;frac{t}{{{t}_{HL}}}}}' title='N(t)={{N}_{0}}&#92;cdot {{&#92;left( &#92;frac{1}{2} &#92;right)}^{&#92;frac{t}{{{t}_{HL}}}}}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where</p>
<ul>
<li><em>t</em> is time in years.</li>
<li><em>t<sub>HL</sub></em> is the half life of Pu-238 (<a href="http://www.ieer.org/fctsheet/pu-props.html" title="Physical data on plutonium" target="_blank">87.74 years</a>).</li>
<li><em>N</em> is the number of atoms in a sample of radioactive material.</li>
<li><em>N<sub>0</sub></em> is the number of atoms in a sample of radioactive material at <em>t</em>=0.</li>
</ul>
<p>To compute the power radiated by a sample of Pu-238, we need to determine the number of decays that occur per second. We can compute the number of decays per second by differentiating Equation 1, which I show in Equation 2.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 2</td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdN%5Cleft%28+t+%5Cright%29%7D%7Bdt%7D%3DN%28t%29%5Ccdot+%5Cfrac%7B%5Cln+%5Cleft%28+%5Cfrac%7B1%7D%7B2%7D+%5Cright%29%7D%7B%7B%7Bt%7D_%7BHL%7D%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;frac{dN&#92;left( t &#92;right)}{dt}=N(t)&#92;cdot &#92;frac{&#92;ln &#92;left( &#92;frac{1}{2} &#92;right)}{{{t}_{HL}}}' title='&#92;frac{dN&#92;left( t &#92;right)}{dt}=N(t)&#92;cdot &#92;frac{&#92;ln &#92;left( &#92;frac{1}{2} &#92;right)}{{{t}_{HL}}}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>Let&#8217;s say we want to compute the amount of heat generated by a gram of Pu-238. We need to determine the number of Pu-238 atoms in a one gram sample and apply Equation 2, which tells us that Pu-238 generates 0.568 W/gm of heat. Figure 4 illustrates this calculation. We can use this number to estimate the amount of Pu-238 that we will need to generate 2 kW of thermal power.<br />
<div id="attachment_4920" class="wp-caption aligncenter" style="width: 650px"><a href="http://mathscinotes.files.wordpress.com/2012/01/heatpergram1.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/heatpergram1.png?w=640&#038;h=674" alt="Figure 4: Calculation of Heat Generated Per gm of Pu-238." title="Figure 4: Calculation of Heat Generated Per gm of Pu-238." width="640" height="674" class="size-full wp-image-4920" /></a><p class="wp-caption-text">Figure 4: Calculation of Heat Generated Per gm of Pu-238.</p></div></p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Amount of Pu-238 Required</h3>
<p>Since we know that we require 2 kW of thermal power and that Pu-238 generates 0.568 W/gm, we see that we need <img src='http://s0.wp.com/latex.php?latex=%7B%7BM%7D_%7B%5Ctext%7BPu238%7D%7D%7D%3D%5Cfrac%7B2000%5Ctext%7B+W%7D%7D%7B%5Cfrac%7B0.568%5Ctext%7B+W%7D%7D%7B%5Ctext%7Bgm%7D%7D%7D%3D3.5%5Ctext%7B+kg+%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='{{M}_{&#92;text{Pu238}}}=&#92;frac{2000&#92;text{ W}}{&#92;frac{0.568&#92;text{ W}}{&#92;text{gm}}}=3.5&#92;text{ kg }' title='{{M}_{&#92;text{Pu238}}}=&#92;frac{2000&#92;text{ W}}{&#92;frac{0.568&#92;text{ W}}{&#92;text{gm}}}=3.5&#92;text{ kg }' class='latex' />. This agrees with the value 3.5 kg stated in this <a href="http://www.ne.doe.gov/neac/Meetings/Apr212008/NEGTN0NEAC_PU-238_042108.pdf" title="Presentation from the Department of Energy" target="_blank">presentation from the Department of Energy</a>, so I think we understand how much Pu-238 is required.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Degradation of Performance Over</h3>
<p>The quote from The Atlantic Magazine states that the electrical power available from the MMRTG drops to 100 W after 14 years. Let&#8217;s assume that we have a fixed percentage of degradation year over year, which is similar to a compound interest problem. We can determine  the percentage decline per year as shown in Equation 3.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 3</td>
<td><img src='http://s0.wp.com/latex.php?latex=125%5Ccdot+%7B%7B%5Cleft%28+1-x+%5Cright%29%7D%5E%7B14%7D%7D%3D100%5CRightarrow+x%3D1.58%5C%25&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='125&#92;cdot {{&#92;left( 1-x &#92;right)}^{14}}=100&#92;Rightarrow x=1.58&#92;%' title='125&#92;cdot {{&#92;left( 1-x &#92;right)}^{14}}=100&#92;Rightarrow x=1.58&#92;%' class='latex' /></td>
</tr>
</tbody>
</table>
<p>So the output power is declining by 1.58% every year. </p>
<p>The amount of heat available from a radioactive source degrades every year because the amount of radioactive material reduces every year because of decay. We can compute this decline in thermal power as shown in Equation 4.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 4</td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7BdN%5Cleft%28+t+%5Cright%29%7D%7Bdt%7D%3DN%28t%29%5Ccdot+%5Cfrac%7B%5Cln+%5Cleft%28+%5Cfrac%7B1%7D%7B2%7D+%5Cright%29%7D%7B%7B%7Bt%7D_%7BHL%7D%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;frac{dN&#92;left( t &#92;right)}{dt}=N(t)&#92;cdot &#92;frac{&#92;ln &#92;left( &#92;frac{1}{2} &#92;right)}{{{t}_{HL}}}' title='&#92;frac{dN&#92;left( t &#92;right)}{dt}=N(t)&#92;cdot &#92;frac{&#92;ln &#92;left( &#92;frac{1}{2} &#92;right)}{{{t}_{HL}}}' class='latex' /></td>
</tr>
<tr>
<td></td>
<td>
<img src='http://s0.wp.com/latex.php?latex=%5Ctherefore+%5Cfrac%7B%5Cfrac%7BdN%5Cleft%28+t+%5Cright%29%7D%7Bdt%7D%7D%7BN%5Cleft%28+t+%5Cright%29%7D%3D%5Cfrac%7B%5Cln+%5Cleft%28+%5Cfrac%7B1%7D%7B2%7D+%5Cright%29%7D%7B%7B%7Bt%7D_%7BHL%7D%7D%7D%3D-0.79%5C%25&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='&#92;therefore &#92;frac{&#92;frac{dN&#92;left( t &#92;right)}{dt}}{N&#92;left( t &#92;right)}=&#92;frac{&#92;ln &#92;left( &#92;frac{1}{2} &#92;right)}{{{t}_{HL}}}=-0.79&#92;%' title='&#92;therefore &#92;frac{&#92;frac{dN&#92;left( t &#92;right)}{dt}}{N&#92;left( t &#92;right)}=&#92;frac{&#92;ln &#92;left( &#92;frac{1}{2} &#92;right)}{{{t}_{HL}}}=-0.79&#92;%' class='latex' /></td>
</tr>
</tbody>
</table>
<p>So thermal power declines by 0.79% every year, which is about half of the electrical power drop reported by NASA. However, the <a href="http://www.intechopen.com/source/pdfs/21661/In-Tech-Radioisotope_a_key_technology_for_deep_space_exploration.pdf" title="Discussion of Thermocouple Degradation with Time" target="_blank">thermocouples also degrade in performance every year</a>. So the 1.58% degradation rate is composed of two parts: (1) the reduction in available thermal power due to radioactive decay, and (2) the reduction in thermocouple conversion efficiency over time.</p>
<p>It turns out that there is data from <a href="http://en.wikipedia.org/wiki/Voyager_1" title="Wikipedia article on Voyager 1" target="_blank">Voyager</a> on <a href="http://en.wikipedia.org/wiki/Radioisotope_thermoelectric_generator#Life_span" title="Wikipedia article on RTG Lifetime" target="_blank">RTG power reduction</a>. Over a 33 year period, Voyager has seen its available electrical power decline to 67% of its initial value, though its available thermal power has only declined by 83.4%. This means that Voyager has seen a decline in electrical power generation of 1.7% per year while its thermal power has degraded by 0.79% per year. So that 1.6% degradation expected for the MMRTG by NASA seems reasonable.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>I was able to calculate some important characteristics of NASA&#8217;s power system for the Mars Science Laboratory. I could see problems like this being good ones for calculus students to sharpen their skills on.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4874/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4874/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4874/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4874/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4874/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4874/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4874/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4874/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4874&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/03/nuclear-battery-math/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/800px-mars_science_laboratory_drawing.png" medium="image">
			<media:title type="html">Figure 1: Mars Science Laboratory Rover with Radioisotope Power System (aka RTG).</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/mmrtg.png" medium="image">
			<media:title type="html">Figure 1: Photograph of MSL&#039;s MMRTG.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/glowingpu238.png" medium="image">
			<media:title type="html">Figure 2: A Glowing Pu-238 RTG Element.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/heatpergram1.png" medium="image">
			<media:title type="html">Figure 4: Calculation of Heat Generated Per gm of Pu-238.</media:title>
		</media:content>
	</item>
		<item>
		<title>Worked PageRank Example</title>
		<link>http://mathscinotes.wordpress.com/2012/01/02/worked-pagerank-example/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/02/worked-pagerank-example/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 05:20:35 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4829</guid>
		<description><![CDATA[Introduction One of my sons asked me if I could work through a PageRank calculation example a couple of different ways (algebraic and iterative). It was an interesting exercise and I thought it would be worth documenting here. I used &#8230; <a href="http://mathscinotes.wordpress.com/2012/01/02/worked-pagerank-example/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4829&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>One of my sons asked me if I could work through a PageRank calculation example a couple of different ways (algebraic and iterative). It was an interesting exercise and I thought it would be worth documenting here. I used Mathcad for both my algebraic and iterative solutions.</p>
<p>The Wikipedia has an excellent <a href="http://en.wikipedia.org/wiki/PageRank" title="Wikipedia article on PageRank" target="_blank">definition</a> of the PageRank algorithm, which I will quote here.</p>
<blockquote><p>PageRank is a link analysis algorithm, named after Larry Page[1] and used by the Google Internet search engine, that assigns a numerical weighting to each element of a hyperlinked set of documents, such as the World Wide Web, with the purpose of &#8220;measuring&#8221; its relative importance within the set.</p></blockquote>
<p>PageRank is computed using a relatively simple function (see Equation 1), but a number of web-based examples treat the weighting of inbound links from sites external to a particular group of pages as a special case. I did not see any explicit calculation examples, so I thought I would include this calculation here.  </p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Background</h2>
<p>PageRank views the web as graph, with inbound links being viewed as measure of the significance of a web page. Equation 1 shows the PageRank equation. Note that this equation can be solved several different ways. One approach involves eigenvalues, which my son does not know about yet. The equation can be solved algebraically or iteratively. I will use both approaches for this example.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=PR%5Cleft%28+%7B%7Bp%7D_%7Bi%7D%7D+%5Cright%29%3D%5Cfrac%7B1-d%7D%7BN%7D%2Bd%5Ccdot+%5Csum%5Climits_%7Bp%5Cin+M%5Cleft%28+%7B%7Bp%7D_%7Bi%7D%7D+%5Cright%29%7D%7B%5Cfrac%7BPR%5Cleft%28+%7B%7Bp%7D_%7Bj%7D%7D+%5Cright%29%7D%7BL%5Cleft%28+%7B%7Bp%7D_%7Bj%7D%7D+%5Cright%29%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='PR&#92;left( {{p}_{i}} &#92;right)=&#92;frac{1-d}{N}+d&#92;cdot &#92;sum&#92;limits_{p&#92;in M&#92;left( {{p}_{i}} &#92;right)}{&#92;frac{PR&#92;left( {{p}_{j}} &#92;right)}{L&#92;left( {{p}_{j}} &#92;right)}}' title='PR&#92;left( {{p}_{i}} &#92;right)=&#92;frac{1-d}{N}+d&#92;cdot &#92;sum&#92;limits_{p&#92;in M&#92;left( {{p}_{i}} &#92;right)}{&#92;frac{PR&#92;left( {{p}_{j}} &#92;right)}{L&#92;left( {{p}_{j}} &#92;right)}}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where</p>
<ul>
<li><em>N</em> is the number of pages.</li>
<li><em>d</em> is called the damping factor and it is an arbitary weighting factor.</li>
<li><em>PR(p<sub>i</sub></em> is the PageRank of page <em>p<sub>i</sub></em>.</li>
<li><em>L(p<sub>i</sub>)</em> is the number of outbound links from page <em>p<sub>i</sub></em>.</li>
<li><em>M(p<sub>i</sub>)</em> is the set of links to page <em>p<sub>i</sub></em>.</li>
</ul>
<p>Equation 2 shows a matrix form of Equation 1. The matrix form is most likely the form used &#8220;out in the wild.&#8221;</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 2</td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7BR%7D%28t%2B1%29%3Dd%5Ccdot+%5Cmathcal%7BM%7D%5Ccdot+%5Cmathbf%7BR%7D%28t%29%2B%5Cfrac%7B1-d%7D%7BN%7D%5Ccdot+%5Cmathbf%7B1%7D%5Ctext%7B+%7D%7E&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{R}(t+1)=d&#92;cdot &#92;mathcal{M}&#92;cdot &#92;mathbf{R}(t)+&#92;frac{1-d}{N}&#92;cdot &#92;mathbf{1}&#92;text{ }~' title='&#92;mathbf{R}(t+1)=d&#92;cdot &#92;mathcal{M}&#92;cdot &#92;mathbf{R}(t)+&#92;frac{1-d}{N}&#92;cdot &#92;mathbf{1}&#92;text{ }~' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where</p>
<ul>
<li><em><strong>R</strong></em> is the PageRank vector.</li>
<li><em><strong>1</strong></em> is a column vector with all elements equal to 1.</li>
<li><em>t</em> is a discrete time variable (really a sequence number).</li>
</ul>
<p>Note that many examples of PageRank are computed using a variant of Equations 1 and 2 that multiplies the PageRank value by the number of pages (<em>N·PageRank</em>). Equation 3 illustrates Equation 2 modified with the substitution <img src='http://s0.wp.com/latex.php?latex=%5Cmathbf%7B%7BR%7D%27%7D%3DN%5Ccdot+%5Cmathbf%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mathbf{{R}&#039;}=N&#92;cdot &#92;mathbf{R}' title='&#92;mathbf{{R}&#039;}=N&#92;cdot &#92;mathbf{R}' class='latex' />. Equation 1 can be modified similarly. This is the equation that Ian used for his examples. Since I am going to duplicate his results, I will multiply my results by <em>N</em>. </p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 3</td>
<td><img src='http://s0.wp.com/latex.php?latex=N%5Ccdot+%5Cmathbf%7BR%7D%28t%2B1%29%3DN%5Ccdot+d%5Ccdot+%5Cmathcal%7BM%7D%5Ccdot+%5Cmathbf%7BR%7D%28t%29%2BN%5Ccdot+%5Cfrac%7B1-d%7D%7BN%7D%5Ccdot+%5Cmathbf%7B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N&#92;cdot &#92;mathbf{R}(t+1)=N&#92;cdot d&#92;cdot &#92;mathcal{M}&#92;cdot &#92;mathbf{R}(t)+N&#92;cdot &#92;frac{1-d}{N}&#92;cdot &#92;mathbf{1}' title='N&#92;cdot &#92;mathbf{R}(t+1)=N&#92;cdot d&#92;cdot &#92;mathcal{M}&#92;cdot &#92;mathbf{R}(t)+N&#92;cdot &#92;frac{1-d}{N}&#92;cdot &#92;mathbf{1}' class='latex' /></td>
</tr>
<tr>
<td></td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Cleft%28+N%5Ccdot+%5Cmathbf%7BR%7D%28t%2B1%29+%5Cright%29%3Dd%5Ccdot+%5Cmathcal%7BM%7D%5Ccdot+%5Cleft%28+N%5Ccdot+%5Cmathbf%7BR%7D%28t%29+%5Cright%29%2B%5Cleft%28+1-d+%5Cright%29%5Ccdot+%5Cmathbf%7B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;left( N&#92;cdot &#92;mathbf{R}(t+1) &#92;right)=d&#92;cdot &#92;mathcal{M}&#92;cdot &#92;left( N&#92;cdot &#92;mathbf{R}(t) &#92;right)+&#92;left( 1-d &#92;right)&#92;cdot &#92;mathbf{1}' title='&#92;left( N&#92;cdot &#92;mathbf{R}(t+1) &#92;right)=d&#92;cdot &#92;mathcal{M}&#92;cdot &#92;left( N&#92;cdot &#92;mathbf{R}(t) &#92;right)+&#92;left( 1-d &#92;right)&#92;cdot &#92;mathbf{1}' class='latex' /></td>
</tr>
<tr>
<td></td>
<td><img src='http://s0.wp.com/latex.php?latex=%5Ctherefore+%5Cquad+%5Cmathbf%7B%7BR%7D%27%7D%28t%2B1%29%3Dd%5Ccdot+%7B%5Cmathcal%7BM%7D%7D%27%5Ccdot+%5Cmathbf%7B%7BR%7D%27%7D%28t%29%2B%5Cleft%28+1-d+%5Cright%29%5Ccdot+%5Cmathbf%7B1%7D%2C%5Ctext%7B+where+%7D%5Cmathbf%7B%7BR%7D%27%7D%3DN%5Ccdot+%5Cmathbf%7BR%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;therefore &#92;quad &#92;mathbf{{R}&#039;}(t+1)=d&#92;cdot {&#92;mathcal{M}}&#039;&#92;cdot &#92;mathbf{{R}&#039;}(t)+&#92;left( 1-d &#92;right)&#92;cdot &#92;mathbf{1},&#92;text{ where }&#92;mathbf{{R}&#039;}=N&#92;cdot &#92;mathbf{R}' title='&#92;therefore &#92;quad &#92;mathbf{{R}&#039;}(t+1)=d&#92;cdot {&#92;mathcal{M}}&#039;&#92;cdot &#92;mathbf{{R}&#039;}(t)+&#92;left( 1-d &#92;right)&#92;cdot &#92;mathbf{1},&#92;text{ where }&#92;mathbf{{R}&#039;}=N&#92;cdot &#92;mathbf{R}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>There has been quite a bit written about the nuances of this equation because of its importance in determining a web page&#8217;s position in a list of search results. I am not concerned about those details here. I am focused here on the calculation of the PageRank for a specific set of pages.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Analysis</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Example</h3>
<p>My son was using <a href="http://www.sirgroane.net/google-page-rank/" title="Link to Ian Roger's Excellent Web Site">Ian Roger&#8217;s excellent site</a> for learning about the details of PageRank. The question he had is on Example 10, which assigns a PageRank of 1 to an external page. Figure 1 shows the Example 10&#8242;s web page configuration. Ian&#8217;s PageRank results are shown in the boxes, which represent web pages. I want to show the details on obtaining Ian&#8217;s results as an illustration of how to handle an external link from a page with a defined PageRank.<br />
<div id="attachment_4850" class="wp-caption aligncenter" style="width: 516px"><a href="http://mathscinotes.files.wordpress.com/2012/01/exampl10.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/exampl10.png?w=640" alt="Figure 1: PageRank Example from Ian Roger&#039;s Website." title="Figure 1: PageRank Example from Ian Roger&#039;s Website."   class="size-full wp-image-4850" /></a><p class="wp-caption-text">Figure 1: PageRank Example from Ian Roger&#039;s Website.</p></div><br />
I have added the letters A-F to Figure 1, which constitute the variable names I will use in my solutions.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Algebraic Solution</h3>
<p>When Ian uses a link from an external site, he sets the PageRank value to 1. Here is his rationale.</p>
<blockquote><p>
We&#8217;ll assume there&#8217;s an external site that has lots of pages and links with the result that one of the pages has the average PR of 1.0.
</p></blockquote>
<p>Algebraically, this is easy to handle. Figure 2 shows my solution implemented in Mathcad.<br />
<div id="attachment_4848" class="wp-caption aligncenter" style="width: 445px"><a href="http://mathscinotes.files.wordpress.com/2012/01/algebraicsolution.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/algebraicsolution.png?w=640" alt="Figure 2: Algebraic Solution for Example 10." title="Figure 2: Algebraic Solution for Example 10."   class="size-full wp-image-4848" /></a><p class="wp-caption-text">Figure 2: Algebraic Solution for Example 10.</p></div></p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Iterative Solution</h3>
<p>Figure 3 shows how I setup my iterative solution. To force page A to have a PageRank of 1, I needed to remove page A from the <em>R</em> vector and <em>M</em> matrix, but add it back in so that page A&#8217;s contribution can be included. Again, it is a slight modification of Equation 3 so that I can force page A to have a PageRank of 1.<br />
<div id="attachment_4852" class="wp-caption aligncenter" style="width: 558px"><a href="http://mathscinotes.files.wordpress.com/2012/01/iterative1.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/iterative1.png?w=640" alt="Figure 3: Setup for My Iterative Solution of Equation 2." title="Figure 3: Setup for My Iterative Solution of Equation 2."   class="size-full wp-image-4852" /></a><p class="wp-caption-text">Figure 3: Setup for My Iterative Solution of Equation 2.</p></div><br />
Figure 4 shows my iteration stage. Note that I was lazy and simply let it iterate a 1001 times. I could have made this much more efficient by simply monitoring the convergence, but that would have taken a bit more time.<br />
<div id="attachment_4853" class="wp-caption aligncenter" style="width: 458px"><a href="http://mathscinotes.files.wordpress.com/2012/01/iterative2.png"><img src="http://mathscinotes.files.wordpress.com/2012/01/iterative2.png?w=640" alt="Figure 4: Iterative Solution of Equation 2." title="Figure 4: Iterative Solution of Equation 2."   class="size-full wp-image-4853" /></a><p class="wp-caption-text">Figure 4: Iterative Solution of Equation 2.</p></div></p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>I obtained the same results as Ian using two different approaches &#8212; algebraic and iterative. This example was different than most in that a particular web page was forced to a particular PageRank. I hope that I answered my son&#8217;s question.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4829/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4829/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4829/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4829&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/02/worked-pagerank-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/exampl10.png" medium="image">
			<media:title type="html">Figure 1: PageRank Example from Ian Roger&#039;s Website.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/algebraicsolution.png" medium="image">
			<media:title type="html">Figure 2: Algebraic Solution for Example 10.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/iterative1.png" medium="image">
			<media:title type="html">Figure 3: Setup for My Iterative Solution of Equation 2.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2012/01/iterative2.png" medium="image">
			<media:title type="html">Figure 4: Iterative Solution of Equation 2.</media:title>
		</media:content>
	</item>
		<item>
		<title>Bolide Meteor Sighting</title>
		<link>http://mathscinotes.wordpress.com/2012/01/02/bolide-meteor-sighting/</link>
		<comments>http://mathscinotes.wordpress.com/2012/01/02/bolide-meteor-sighting/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 01:24:26 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Astronomy]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4856</guid>
		<description><![CDATA[I saw a bolide meteor while driving out to Montana last week. For those who are not familiar with bolide meteors, the Wikipedia has a nice description. The word bolide comes from the Greek βολίς (bolis) [2] which can mean &#8230; <a href="http://mathscinotes.wordpress.com/2012/01/02/bolide-meteor-sighting/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4856&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I saw a bolide meteor while driving out to Montana last week. For those who are not familiar with bolide meteors, the Wikipedia has a nice description.</p>
<blockquote><p>
The word bolide comes from the Greek βολίς (bolis) [2] which can mean a missile or to flash. The IAU has no official definition of &#8220;bolide&#8221;, and generally considers the term synonymous with &#8220;fireball&#8221;. The term generally applies to fireballs reaching magnitude −14 or brighter.[12] Astronomers tend to use &#8220;bolide&#8221; to identify an exceptionally bright fireball, particularly one that explodes (sometimes called a detonating fireball). It may also be used to mean a fireball which creates audible sounds.
</p></blockquote>
<p>I have seen two bolide meteors in my life. I saw my first one while walking home from Catholic education one evening during 8th grade. It was very bright and lasted only a short period of time. About 30 seconds after it vanished, I heard a rumble. Next day, the local newspaper reported that a meteor had been spotted and fragments had been picked up on the ground.</p>
<p>Last week, I was driving late in the evening when I saw a bright white streak come across the sky that appeared to drop a yellow and then a green fragment. I have watched meteors my whole life and this was the first time that I saw colors. I did not know that others have seen colors until I saw this <a href="http://www.amsmeteors.org/fireballs/faqf/#5" title="American Meteor Society Web Page" target="_blank">article</a>. This was pretty cool!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4856/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4856/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4856/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4856/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4856/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4856/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4856/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4856/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4856&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2012/01/02/bolide-meteor-sighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Potentiometer Math</title>
		<link>http://mathscinotes.wordpress.com/2011/12/22/potentiometer-math/</link>
		<comments>http://mathscinotes.wordpress.com/2011/12/22/potentiometer-math/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 19:10:37 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[circuits]]></category>
		<category><![CDATA[electronics]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4766</guid>
		<description><![CDATA[Introduction I have an application where a potentiometer may be useful. In fact, it would be useful if the potentiometer had a logarithmic resistance characteristic, which is also called an audio taper for reasons that I will cover later. I &#8230; <a href="http://mathscinotes.wordpress.com/2011/12/22/potentiometer-math/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4766&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>I have an application where a potentiometer may be useful. In fact, it would be useful if the potentiometer had a logarithmic resistance characteristic, which is also called an audio taper for reasons that I will cover later. I have never used a potentiometer with a logarithmic characteristic before and I thought it would be worth documenting what I learned during this effort.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Background</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Logarithmic Misnomer</h3>
<p>What is normally referred to as a logarithmic taper is really an exponential characteristic. A typical logarithmic taper potentiometer characteristic is shown in Figure 1 (<a href="http://www.taiwanalpha.com/english/p_e_82-5.htm" title="Example of a Logarithmic Potentiometer Characteristic">Source</a>).</p>
<p><div id="attachment_4811" class="wp-caption aligncenter" style="width: 465px"><a href="http://mathscinotes.files.wordpress.com/2011/12/resistancecharacteristic3.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/resistancecharacteristic3.png?w=640" alt="Figure 1: Example of A Logarithmic/Audio Taper Potentiometer Resistance Characteristic" title="Figure 1: Example of A Logarithmic/Audio Taper Potentiometer Resistance Characteristic"   class="size-full wp-image-4811" /></a><p class="wp-caption-text">Figure 1: Example of A Logarithmic/Audio Taper Potentiometer Resistance Characteristic</p></div><br />
Each vendor will have a different &#8220;series&#8221; label for the logarithmic potentiometers, which often have names like &#8220;series A&#8221; or &#8220;series W.&#8221; The series designation indicates a different set of resistance curves.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Potentiometer Specifications</h3>
<p>Not all vendors include a graph of the resistance characteristics of their logarithmic potentiometers. Many of the vendors include a specification that says something similar to the following quote. (<a href="http://www.potentiometer.com/pdf/catalog388.pdf" title="Good example of a potentiometer specification">Source</a>)</p>
<blockquote><p>
The “W” taper attains 20% resistance value at 50% of clockwise rotation (left-hand).
</p></blockquote>
<p>This specification means that the potentiometer has</p>
<ul>
<li>0% of it full scale resistance value with the wiper at 0% of its full scale position</li>
<li>20% of it full scale resistance value with the wiper at 50% of its full scale position</li>
<li>100% of the total resistance value at 100% of its full scale position.</li>
</ul>
<p>This type of specification gives you sufficient information to create an exponential curve fit, which I illustrate in Figure 2.<br />
<div id="attachment_4785" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2011/12/fitment.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/fitment-e1324495922204.png?w=640" alt="Figure 2: Illustration of the Fitting of an Exponential Function to the Specified Points." title="Figure 2: Illustration of the Fitting of an Exponential Function to the Specified Points."   class="size-full wp-image-4785" /></a><p class="wp-caption-text">Figure 2: Illustration of the Fitting of an Exponential Function to the Specified Points.</p></div></p>
<p>The math associated with this curve fitting is shown in Figure 3.<br />
<div id="attachment_4786" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2011/12/math.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/math-e1324496032764.png?w=640" alt="Figure 3: Curve Fitting Math." title="Figure 3: Curve Fitting Math."   class="size-full wp-image-4786" /></a><p class="wp-caption-text">Figure 3: Curve Fitting Math.</p></div></p>
<p>Equation 1 illustrates the basic form of the logarithmic potentiometer&#8217;s resistance characteristic <em>R(x)</em>, where <em>x</em> is the wiper position as a percentage of full scale.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=R%28x%29%3D%7B%7BR%7D_%7B0%7D%7D%5Ccdot+%5Cleft%28+%7B%7Be%7D%5E%7B%7B%7BR%7D_%7B1%7D%7D%5Ccdot+x%7D%7D-1+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=2' alt='R(x)={{R}_{0}}&#92;cdot &#92;left( {{e}^{{{R}_{1}}&#92;cdot x}}-1 &#92;right)' title='R(x)={{R}_{0}}&#92;cdot &#92;left( {{e}^{{{R}_{1}}&#92;cdot x}}-1 &#92;right)' class='latex' /></td>
</tr>
</tbody>
</table>
<p>where </p>
<ul>
<li><em>R<sub>0</sub></em> is a curve fitting parameter</li>
<li><em>R<sub>1</sub></em> is a curve fitting parameter</li>
<li><em>x</em> is the wiper position as a percentage of full scale range</li>
</ul>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Human Hearing</h3>
<p>The logarithmic taper is commonly called an audio taper because it is often used audio applications for loudness control. Understanding why involves knowing a little bit about human hearing. Figure 4 (<a href="http://www.cs.indiana.edu/~port/teach/641/audition.for.linguists.Sept1.html" title="Illustration of the Relationship Between Sound Pressure Level to Loudness.">Source</a>) illustrates a human&#8217;s perception of loudness relative to the Sound Pressure Level (SPL). Sound pressure level is proportional to an audio amplifier&#8217;s output power. However, the ear is sensitive to the log of the sound pressure level. This is why the &#8220;logarithmic&#8221; taper is useful.<br />
<div id="attachment_4770" class="wp-caption aligncenter" style="width: 442px"><a href="http://mathscinotes.files.wordpress.com/2011/12/earsensitivitylevel.jpg"><img src="http://mathscinotes.files.wordpress.com/2011/12/earsensitivitylevel.jpg?w=640" alt="Figure 4: Loudness Level Versus Sound Pressure Level (dB)." title="Figure 4: Loudness Level Versus Sound Pressure Level (dB)."   class="size-full wp-image-4770" /></a><p class="wp-caption-text">Figure 4: Loudness Level Versus Sound Pressure Level (dB).</p></div><br />
When people are adjusting the loudness of their audio gear, they prefer that the loudness increase by an amount proportional to amount of dial or slide movement. If a linear potentiometer is used to control output power (and therefore loudness), you will need to use larger and larger amounts of wiper movement to get the same loudness change. To get the same amount of loudness change for a the same amount of wiper movement, the potentiometer resistance needs to increase exponentially.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Compensating for Hearing</h3>
<p>Figure 5 shows what how the loudness is perceived by a person as the potentiometer&#8217;s wiper is moved. You can see that the perceived loudness increases approximately linearly for wiper positions above ~20%. </p>
<div id="attachment_4812" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2011/12/compensated1.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/compensated1-e1324580673844.png?w=640" alt="Figure 5: Potentiometer Resistance Model and Linearized Loudness Characteristic." title="Figure 5: Potentiometer Resistance Model and Linearized Loudness Characteristic."   class="size-full wp-image-4812" /></a><p class="wp-caption-text">Figure 5: Potentiometer Resistance Model and Linearized Loudness Characteristic.</p></div>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>After all this research, I ended up not using the logarithmic potentiometer because it was not logarithmic. I ended up using another approach which I will discuss in a later post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4766/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4766&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2011/12/22/potentiometer-math/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/resistancecharacteristic3.png" medium="image">
			<media:title type="html">Figure 1: Example of A Logarithmic/Audio Taper Potentiometer Resistance Characteristic</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/fitment-e1324495922204.png" medium="image">
			<media:title type="html">Figure 2: Illustration of the Fitting of an Exponential Function to the Specified Points.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/math-e1324496032764.png" medium="image">
			<media:title type="html">Figure 3: Curve Fitting Math.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/earsensitivitylevel.jpg" medium="image">
			<media:title type="html">Figure 4: Loudness Level Versus Sound Pressure Level (dB).</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/compensated1-e1324580673844.png" medium="image">
			<media:title type="html">Figure 5: Potentiometer Resistance Model and Linearized Loudness Characteristic.</media:title>
		</media:content>
	</item>
		<item>
		<title>Meatball Math</title>
		<link>http://mathscinotes.wordpress.com/2011/12/15/meatball-math/</link>
		<comments>http://mathscinotes.wordpress.com/2011/12/15/meatball-math/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 03:39:48 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[exponential function]]></category>
		<category><![CDATA[linear approximation]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4728</guid>
		<description><![CDATA[Introduction I used to watch the television show &#8220;MASH&#8221; years ago. They would refer to quick procedures for patient stabilization as &#8220;meatball surgery.&#8221; I recently encountered some &#8220;meatball math&#8221; as part of my engineering job. I call it &#8220;meatball&#8221; because &#8230; <a href="http://mathscinotes.wordpress.com/2011/12/15/meatball-math/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4728&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>I used to watch the television show &#8220;MASH&#8221; years ago. They would refer to quick procedures for patient stabilization as &#8220;meatball surgery.&#8221; I recently encountered some &#8220;meatball math&#8221; as part of my engineering job. I call it &#8220;meatball&#8221; because the &#8220;patient&#8221;, a recalcitrant laser, had to be fixed quickly and rough approximations were totally acceptable. This application was a nice application of Mathcad and the implementation of the approximation in C will soon be going out in one our software loads. </p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Background</h2>
<p>We use <a href="http://en.wikipedia.org/wiki/Atmel_AVR" title="Wikipedia page on Atmel AVR processors" target="_blank">AVR processors</a> from Atmel to perform simple controller functions. I like these processors so much that I have an AVR development system at home (you never know when you might want to cookup some controller code). In one of our products, we need to estimate the <a href="http://mathscinotes.wordpress.com/2011/12/" title="Discussion of Threshold Current" target="_blank">threshold current</a> for a laser at a given temperature. It turns out that Equation 1 <a title="Optical Fiber Communication By Keiser" href="http://www.amazon.com/Optical-Fiber-Communications-CD-ROM-Keiser/dp/0072360763" target="_blank">[Keiser]</a> does a fair job of modeling the temperature variation of the threshold current.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=%7B%7BI%7D_%7BThreshold%7D%7D%5Cleft%28+T+%5Cright%29%3D%7B%7BI%7D_%7Bz%7D%7D%5Ccdot+%7B%7Be%7D%5E%7B%5Cfrac%7BT%7D%7B%7B%7BT%7D_%7B0%7D%7D%7D%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=1' alt='{{I}_{Threshold}}&#92;left( T &#92;right)={{I}_{z}}&#92;cdot {{e}^{&#92;frac{T}{{{T}_{0}}}}}' title='{{I}_{Threshold}}&#92;left( T &#92;right)={{I}_{z}}&#92;cdot {{e}^{&#92;frac{T}{{{T}_{0}}}}}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>Equation 1 requires the computation of an exponential function. Unfortunately, a library version of the exponential function requires lots of memory space and my available AVR memory space is very small. However, it turns out that I do not need tremendous accuracy in this application – ±2% would be fine. I started to think in terms of a piecewise linear approximation. Let&#8217;s take a look at what this approximation involves.  </p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Analysis</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Requirements</h3>
<p>We begin with some simple algorithm requirements:</p>
<ul>
<li>We need to compute the exponential function over an input range from 0 to 1.5</li>
<li>The exponential function must be accurate within 2%.</li>
<li>The routine must occupy much less memory than the accurate exponential library routine.</li>
</ul>
<p>As always, I began my work by seeing if anyone else has already solved my problem. My first search turned up an <a href="http://ww1.microchip.com/downloads/en/appnotes/00660.pdf" title="Article by Microchip on Bifurcated Linear Approximation" target="_blank">article</a> on a bifurcated linear approximation to the exponential function over the input range 0 to 1.</p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Bifurcated Approach</h3>
<p>Figure 1 shows a plot of the bifurcated approximation. This equation meets my accuracy requirement, but it is not designed for my input range from 0 to 1.5. Let&#8217;s use Mathcad to fix this.<br />
<div id="attachment_4740" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2011/12/bifurcated2.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/bifurcated2-e1323915335112.png?w=640" alt="Figure 1: Bifurcated Linear Approximation to the Exponential Function." title="Figure 1: Bifurcated Linear Approximation to the Exponential Function."   class="size-full wp-image-4740" /></a><p class="wp-caption-text">Figure 1: Bifurcated Linear Approximation to the Exponential Function.</p></div></p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Trifurcated Approach</h3>
<p>I needed to get this approximation out quickly, so I decided to augment the range setup of  Equation 1 (0 to 0.5, and 0.5 to 1) with a third range (1.0 to 1.5).</p>
<p>Figure 2 shows the form of my linear function and my error function, which I will minimize. I am using the &#8220;<a href="http://en.wikipedia.org/wiki/Minimax" title="Wikipedia discussion of the minimax approach">minimax</a>&#8221; optimality criterion for my approximation.<br />
<div id="attachment_4743" class="wp-caption aligncenter" style="width: 555px"><a href="http://mathscinotes.files.wordpress.com/2011/12/functions.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/functions.png?w=640" alt="Figure 2: Linear Approximation Prototype and My Error Function." title="Figure 2: Linear Approximation Prototype and My Error Function."   class="size-full wp-image-4743" /></a><p class="wp-caption-text">Figure 2: Linear Approximation Prototype and My Error Function.</p></div> </p>
<p>We can use solver to find the optimal solution. Figure 3 shows my solution setup. Note that I randomly chose the starting values. I ended up trying various random starting values to come to my final choice of coefficients.<br />
<div id="attachment_4746" class="wp-caption aligncenter" style="width: 562px"><a href="http://mathscinotes.files.wordpress.com/2011/12/solver.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/solver.png?w=640" alt="Figure 3: Trifurcated Mathcad Solver Setup." title="Figure 3: Trifurcated Mathcad Solver Setup."   class="size-full wp-image-4746" /></a><p class="wp-caption-text">Figure 3: Trifurcated Mathcad Solver Setup.</p></div></p>
<p>Note how I am also enforcing a continuity requirement at the end points of my ranges. The bifurcated solution did not enforce this criterion and their error function was not smooth. Figure 4 shows the results of my Mathcad work.<br />
<div id="attachment_4748" class="wp-caption aligncenter" style="width: 610px"><a href="http://mathscinotes.files.wordpress.com/2011/12/trifurcatedplot.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/trifurcatedplot-e1323916763285.png?w=640" alt="Figure 4: Plot of My Trifurcated Linear Approximation to the Exponential Function." title="Figure 4: Plot of My Trifurcated Linear Approximation to the Exponential Function."   class="size-full wp-image-4748" /></a><p class="wp-caption-text">Figure 4: Plot of My Trifurcated Linear Approximation to the Exponential Function.</p></div><br />
This solution was simple and took very little memory. Note that we ended up implementing it in fixed point math, which is probably worth another blog post.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>The equation shown in Figure 4 solved my problem. This was a good example of a &#8220;quick and dirty&#8221; solution to a common engineering dilemma &#8212; an accurate solution is too big or expensive and you need to find an approach that is good enough. That is exactly what was done here.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4728/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4728/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4728/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4728&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2011/12/15/meatball-math/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/bifurcated2-e1323915335112.png" medium="image">
			<media:title type="html">Figure 1: Bifurcated Linear Approximation to the Exponential Function.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/functions.png" medium="image">
			<media:title type="html">Figure 2: Linear Approximation Prototype and My Error Function.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/solver.png" medium="image">
			<media:title type="html">Figure 3: Trifurcated Mathcad Solver Setup.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/trifurcatedplot-e1323916763285.png" medium="image">
			<media:title type="html">Figure 4: Plot of My Trifurcated Linear Approximation to the Exponential Function.</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Laser Basics</title>
		<link>http://mathscinotes.wordpress.com/2011/12/14/some-laser-basics/</link>
		<comments>http://mathscinotes.wordpress.com/2011/12/14/some-laser-basics/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 14:42:50 +0000</pubDate>
		<dc:creator>mathscinotes</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Fiber Optics]]></category>
		<category><![CDATA[laser basics]]></category>
		<category><![CDATA[optical power]]></category>
		<category><![CDATA[temperature variations]]></category>

		<guid isPermaLink="false">http://mathscinotes.wordpress.com/?p=4612</guid>
		<description><![CDATA[Introduction I am doing some interesting work with lasers this week. I thought it would be useful to provide some background on how we build and control lasers. We deploy a lot of lasers in outdoor applications, which means that &#8230; <a href="http://mathscinotes.wordpress.com/2011/12/14/some-laser-basics/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4612&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2 style="color:brown;font-size:24px;font-family:tahoma;">Introduction</h2>
<p>I am doing some interesting work with lasers this week. I thought it would be useful to provide some background on how we build and control lasers. We deploy a lot of lasers in outdoor applications, which means that special attention must be paid to the temperature characteristics of lasers.  Like batteries, lasers have characteristics that vary with temperature. These temperature variations would cause the laser&#8217;s output power to drop if actions were not taken to compensate for the temperature variations. These variations also make a laser subject to thermal runaway, also just like a battery. This week&#8217;s work will focus on temperature compensation. But first, let&#8217;s discuss how our lasers operate and are assembled. Once we have established that base, we can move on to related topics.</p>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Laser Basics</h2>
<p>Lasers emit light when they are driven by current above a level called the threshold current (symbolically <em>I<sub>Threshold</sub></em>).  The more current you drive into the laser above the threshold level, the more optical power that the laser emits. Figure 1 illustrates this characteristic.</p>
<div id="attachment_4615" class="wp-caption aligncenter" style="width: 444px"><a href="http://mathscinotes.files.wordpress.com/2011/12/slopeefficiency.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/slopeefficiency.png?w=640" alt="Figure 1: Idealized Laser Output Power Versus Input Current Characteristic." title="Figure 1: Idealized Laser Output Power Versus Input Current Characteristic."   class="size-full wp-image-4615" /></a><p class="wp-caption-text">Figure 1: Idealized Laser Output Power Versus Input Current Characteristic.</p></div>
<p>Let&#8217;s summarize the key points of Figure 1:</p>
<ul>
<li>No optical power is emitted until the drive current exceeds a given value called I<sub>Threshold</sub>.</li>
<li>For drive currents above threshold, the laser emits an optical power proportional to the amount that the drive current exceeds the threshold level</li>
<li>The constant of proportionality is called Slope Efficiency (SE)</li>
</ul>
<p>We can model this characteristic using Equation 1.</p>
<table style="border-style:none;">
<tbody>
<tr>
<td style="width:50px;">Eq. 1</td>
<td><img src='http://s0.wp.com/latex.php?latex=%7B%7BP%7D_%7BOutput%7D%7D%3DSE%5Ccdot+%5Cleft%28+%7B%7BI%7D_%7BDrive%7D%7D-%7B%7BI%7D_%7BThreshold%7D%7D+%5Cright%29%5Ctext%7B+for+%7D%7B%7BI%7D_%7BDrive%7D%7D%3E%7B%7BI%7D_%7BThreshold%7D%7D%5Ctext%7B%2C+0+otherwise%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='{{P}_{Output}}=SE&#92;cdot &#92;left( {{I}_{Drive}}-{{I}_{Threshold}} &#92;right)&#92;text{ for }{{I}_{Drive}}&gt;{{I}_{Threshold}}&#92;text{, 0 otherwise}' title='{{P}_{Output}}=SE&#92;cdot &#92;left( {{I}_{Drive}}-{{I}_{Threshold}} &#92;right)&#92;text{ for }{{I}_{Drive}}&gt;{{I}_{Threshold}}&#92;text{, 0 otherwise}' class='latex' /></td>
</tr>
</tbody>
</table>
<p>This power versus drive current characteristic by itself does not cause any problems. However, <em>I<sub>Threshold</sub></em> and <em>SE</em> both vary with temperature and this is the source of my woes. Figure 2 shows how the laser characteristics vary with temperature for a real device. Notice how the slope efficiency reduces with increasing temperature. That is the key problem, as I will discuss below.</p>
<div id="attachment_4698" class="wp-caption aligncenter" style="width: 560px"><a href="http://mathscinotes.files.wordpress.com/2011/12/lvi.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/lvi-e1323815520734.png?w=640" alt="Figure 2: Slope Efficiency Graph for an Actual Laser." title="Figure 2: Slope Efficiency Graph for an Actual Laser."   class="size-full wp-image-4698" /></a><p class="wp-caption-text">Figure 2: Slope Efficiency Graph for an Actual Laser.</p></div>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Controlling Laser Power</h2>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Communication Using Lasers</h3>
<p>Digital communications using fiber optics is similar to many other forms of digital communications in that we encode binary information by sending light down the fiber at two different power levels. The high-level is called a &#8220;1&#8243; and the low-level is called a &#8220;0&#8243;. Figure 3 illustrates what an idealized optical bit stream looks like.</p>
<div id="attachment_4682" class="wp-caption aligncenter" style="width: 560px"><a href="http://mathscinotes.files.wordpress.com/2011/12/pulsetrain.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/pulsetrain-e1323802290205.png?w=640" alt="Figure 3: Example of a Digital Bit Stream Using Optical Power Modulation." title="Figure 3: Example of a Digital Bit Stream Using Optical Power Modulation."   class="size-full wp-image-4682" /></a><p class="wp-caption-text">Figure 3: Example of a Digital Bit Stream Using Optical Power Modulation.</p></div>
<p>Because SE decreases with temperature, maintaining constant &#8220;1&#8243; and &#8220;0&#8243; levels means increasing the drive current with increasing temperature. It turns out that this is a more difficult problem to solve than you might think. Figure 4 shows how we convert drive current into optical power. We try to control two parameters:</p>
<ul>
<li><em>I<sub>Bias</sub></em>, which controls the average power level</li>
<li><em>I<sub>Modulation</sub></em>, which controls the difference between <em>P<sub>0</sub></em> and <em>P<sub>1</sub></em>.</li>
</ul>
<div id="attachment_4694" class="wp-caption aligncenter" style="width: 582px"><a href="http://mathscinotes.files.wordpress.com/2011/12/bias.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/bias.png?w=640" alt="Figure 4: Conversion of Drive Current Into Optical Output Power." title="Figure 4: Conversion of Drive Current Into Optical Output Power."   class="size-full wp-image-4694" /></a><p class="wp-caption-text">Figure 4: Conversion of Drive Current Into Optical Output Power.</p></div>
<p>Over the years, we have used various temperature compensation techniques. It turns out that controlling a laser&#8217;s output power near room temperature is simple. However, particularly at high temperature, problems develop because the drive current becomes so high that the laser self-heats. This self-heating results in lower SE, which means more drive current. The laser is now in thermal runaway, which means our control circuitry will need to shut it down so it does not damage itself. </p>
<p>We have used feedback to control the laser&#8217;s average output power <img src='http://s0.wp.com/latex.php?latex=%5Cleft%28+%7B%7BP%7D_%7BAverage%7D%7D%3D%7B%7D%5E%7B%5Cleft%28+%7B%7BP%7D_%7BHigh%7D%7D%2B%7B%7BP%7D_%7BLow%7D%7D+%5Cright%29%7D%5C%21%5C%21%5Cdiagup%5C%21%5C%21%7B%7D_%7B2%7D%5C%3B+%5Cright%29&amp;bg=ffffff&amp;fg=333333&amp;s=-2' alt='&#92;left( {{P}_{Average}}={}^{&#92;left( {{P}_{High}}+{{P}_{Low}} &#92;right)}&#92;!&#92;!&#92;diagup&#92;!&#92;!{}_{2}&#92;; &#92;right)' title='&#92;left( {{P}_{Average}}={}^{&#92;left( {{P}_{High}}+{{P}_{Low}} &#92;right)}&#92;!&#92;!&#92;diagup&#92;!&#92;!{}_{2}&#92;; &#92;right)' class='latex' />. However, controlling the average power is not sufficient. Receivers actually detect the difference in power between a &#8220;1&#8243; and a &#8220;0&#8243;. Reduced SE also reduces the difference between a &#8220;1&#8243; and &#8220;0&#8243;. So we need an approach that will both increase the difference between the &#8220;1&#8243; and &#8220;0&#8243; drive levels and maintain an average power setting.</p>
<p>We have used a mathematical model for the variation of SE with temperature and have used this model to predict the required increase in the difference between the &#8220;1&#8243; and &#8220;0&#8243; drive levels with temperature. This has proven to be a mediocre solution. The temperature characteristics of a laser vary by vendor and lot. We need something better &#8212; we need a two feedback loops. One feedback loop to control average power and another to control the difference in levels between a &#8220;1&#8243; and &#8220;0&#8243;. It turns out that a new &#8220;dual-loop&#8221; laser drivers are now becoming available. Future posts will discuss how these devices work.  </p>
<h3 style="color:brown;font-size:20px;font-family:tahoma;font-style:italic;">Basic Laser Construction</h3>
<p>Before I go too far into controlling a laser, let&#8217;s talk about how commercial laser systems are constructed. Figure 5 illustrates how lasers are typically configured for use in communications applications. The laser is mounted so that the vast majority of the optical power generated goes into the fiber, with a tiny fixed percentage tapped off for measurement by a photodiode (called the monitor photodiode). In Figure 2, the light going to the left is focused into fiber by some type of lens, which is commonly a ball lens but can be other types. </p>
<div id="attachment_4668" class="wp-caption aligncenter" style="width: 560px"><a href="http://mathscinotes.files.wordpress.com/2011/12/monitordiode2.png"><img src="http://mathscinotes.files.wordpress.com/2011/12/monitordiode2-e1323800464832.png?w=640" alt="Figure 5: Standard Laser Configuration for Communications Applications." title="Figure 5: Standard Laser Configuration for Communications Applications."   class="size-full wp-image-4668" /></a><p class="wp-caption-text">Figure 5: Standard Laser Configuration for Communications Applications.</p></div>
<p>Figure 6 shows how lasers are packaged into transistor-outline (TO) cans, which is how we often see them. </p>
<div id="attachment_4671" class="wp-caption aligncenter" style="width: 560px"><a href="http://mathscinotes.files.wordpress.com/2011/12/1225583.gif"><img src="http://mathscinotes.files.wordpress.com/2011/12/1225583-e1323800596556.gif?w=640" alt="Figure 6: Illustration of Laser TO-Can Packaging." title="Figure 6: Illustration of Laser TO-Can Packaging."   class="size-full wp-image-4671" /></a><p class="wp-caption-text">Figure 6: Illustration of Laser TO-Can Packaging.</p></div>
<h2 style="color:brown;font-size:24px;font-family:tahoma;">Conclusion</h2>
<p>This post was intended to provide some background for the posts to follow. These posts will look at applying lasers in communications applications.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathscinotes.wordpress.com/4612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mathscinotes.wordpress.com/4612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mathscinotes.wordpress.com/4612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mathscinotes.wordpress.com/4612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mathscinotes.wordpress.com/4612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mathscinotes.wordpress.com/4612/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mathscinotes.wordpress.com/4612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mathscinotes.wordpress.com/4612/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathscinotes.wordpress.com&amp;blog=13652787&amp;post=4612&amp;subd=mathscinotes&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathscinotes.wordpress.com/2011/12/14/some-laser-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c55ba9157be6d043b56130c12ea6de98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mathscinotes</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/slopeefficiency.png" medium="image">
			<media:title type="html">Figure 1: Idealized Laser Output Power Versus Input Current Characteristic.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/lvi-e1323815520734.png" medium="image">
			<media:title type="html">Figure 2: Slope Efficiency Graph for an Actual Laser.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/pulsetrain-e1323802290205.png" medium="image">
			<media:title type="html">Figure 3: Example of a Digital Bit Stream Using Optical Power Modulation.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/bias.png" medium="image">
			<media:title type="html">Figure 4: Conversion of Drive Current Into Optical Output Power.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/monitordiode2-e1323800464832.png" medium="image">
			<media:title type="html">Figure 5: Standard Laser Configuration for Communications Applications.</media:title>
		</media:content>

		<media:content url="http://mathscinotes.files.wordpress.com/2011/12/1225583-e1323800596556.gif" medium="image">
			<media:title type="html">Figure 6: Illustration of Laser TO-Can Packaging.</media:title>
		</media:content>
	</item>
	</channel>
</rss>
