Professional Documents
Culture Documents
Electronics: Integrals and RMS Signals: Background
Electronics: Integrals and RMS Signals: Background
Then using calculus notation the above statement can be written as:
(We are assuming that the function runs from a to b, so integrating from a to b gives
the area under the function and dividing by b - a divides by the width of the function.)
If the function is periodic (i.e. if the function repeats itself exactly after a certain
amount of time, called the period, T) then we can replace the above formula by this
formula:
In other words we only have to find the area for one cycle and divide by the width of
one cycle.
The RMS value of a function is related to the idea of the standard deviation of a set
of numbers. The RMS value of a function is defined as the square root of the mean
value of the square of a function. In other words to get the RMS value of a function
we follow these three steps:
1. Square the function (i.e. draw a new function whose height everywhere is the
square of the original function),
2. calculate the Mean of this new function (This can be done using the above
formula, namely, finding the area under the new function, and dividing by the
width of the function),
3. taking the square Root
Then using calculus notation the above procedure can be written as:
If the function is periodic with period T then we can replace the above formula by this
formula:
Problem
Find the mean value and RMS value of the triangular waveform shown to the right. It
represents the current i flowing in a circuit as a function of the time, t.
Solution
The mean value of the current. Use the formula:
The period is T = 4. The integral from 0 to 4 must be broken into 3 separate integrals
because the function has a different form in each section. The result is:
Thus the mean value of the current is zero. We could have gotten this result much
more easily using symmetry rather than integration. The picture to the right shows the
"area under the curve" shaded in grey. It is clear that the area from 0 to 2 is positive
and the area from 2 to 4 is negative and that the two areas cancel out.
The picture to the right shows the region from t=0 to t=1 enlarged. Notice that in this
region i = 10t, so i2 = 100t2
Solutions
1. The volume
We can use the same infinitesimal volume element dv in (a). Since dv is a disk
perpendicular to the y-axis, the y-coordinate of any point in the disk is y.
Therefore,
thickness = dx .
where k is the density of water. Therefore, moment of inertia of the water in the
hemispherical tank is given by:
4. The work needed to pump all the water to a height of H metres above the top of
the tank.
From physics we know that the work needed to lift a particle by a vertical
distance h is mgh, which is the increase in potential energy. Then, the element
of volume should be chosen such that all the points in the element are at the
same height. Therefore, we can choose a horizontal disk as our volume
element, same as that used in (a):
This volume element must be lifted a vertical distance (H - y), and the work for
it is
Then, we can integrate dW and find the total work needed to pump all the
water:
Or,
Nuclear Medicine: Using Integration to
Determine the Drug-Time Relationship in a
Patient
A drug is excreted in a patient’s urine. The urine is monitored continuously using a
catheter. A patient is administered 10 mg of drug at time t = 0 which is excreted at a
RATE of -3t1/2 mg/h .
1. What is the general equation for the amount of drug in the patient at time t >
0?
2. When will the patient be drug free?
Solution:
integration.
To avoid stress concentrations, tunnels and support pillars should be rounded. Find
the volume of the square cross-section pillar shown to the right.
Solution:
We will use the geometry shown to the right. We will place the parabola forming the
left edge of the pillar with its axis of symmetry on the y axis and its vertex at y = 3.
The first step is to find the equation of this parabola. The parabola must have the
form:
y = a x2 + b,
a can be found by using the fact that the point (1,0) is on the parabola:
y = a x2 + b,
y = a x2 + 3,
0 = a (1)2 + 3,
a = - 3,
y = - 3 x2 + 3.
The second step is to use this formula to find the dimensions of the elemental
rectangular slab shown in gray in the picture above. The slab has its edge located at
(x, y). To find x, solve the above equation for x:
Thus the volume of the rectangular slab element shown in gray is:
Integrating over all the elemental slabs from y = 0 to y = 3 gives the entire volume of
the pillar:
The volume of the pillar is 66 m3
If [ A ] = 0.500 M when t = 0 minutes, and [ A ] = 0.435 M when t = 38.5 minutes,
find k .
Solution:
Then integrate over the given limits for each variable, to get:
∴ And k ≅0.00776
Electronics:
Circuit Analysis Using Differential Equations
Problem:
Find the current in the circuit to the right after time t=0. The switch is closed at t=0,
and the initial current in the circuit is zero.
Solution:
Using Kirchoff’s Voltage Law:
vL + vR = E
Substitute the initial conditions into this equation to evaluate the constant A. The
initial conditions are i=0 at t=0.
A graph of this function is shown below. Note that if the inductor were absent the
current would rise instantly to 5 amperes, the value given by ohms law, i=E/R. The
presence of the inductor causes the current to rise exponentially to 5 amperes, with
the characteristic time being 1/2000 s.
However, radioactive wastes held in storage contribute to the overall activity which is
in the user’s possession. Since there are limits on the amounts of various radioactive
nuclides that can be possessed, a method for determining the activity of radoactive
wastes held in storage is needed. The following method overestimates the activity in
storage which results in a conservative restriction on activity on hand in the
laboratory.
where:
f is the fraction of the used activity in the facility which is transferred to storage
(no units)
λ is the decay constant of the radionuclide (its units are 1/time)
Problem:
1. Determine an equation for the activity A in terms of the time t if initially A = 0.
2. The activity accrued in storage increases as a function of time. However, as
time becomes large, the activity approaches an equilibrium value Ae. Find this
equilibrium value Ae that A approaches.
Solution:
1. This differential equation can be solved using the method of separation of
variables. Isolate A on the left and t on the right side of the equation, and
integrate:
To carry out the integration, make the change of variable u = f R - λA. Calculate
its differential:
These substitutions give:
We are interested in the case where the activity in storage grows, ie. in the case
that f R > λA. Therefore we can drop the absolute value symbol. Next isolate
the logarithm and put the equation in exponential form:
Substituting the initial condition that the activity A = 0 at time t = 0 into this
equation implies the following condition on the integration constant C:
Solving this for A finally gives the desired equation for the activity A as a
function of time t:
that:
This means that the equilibrium activity is given by:
When the system vibrates in a medium such as water, oil, or air, the block will
experience a resistance. In fact, all the vibrations die out in time because of the
presence of damping forces. Provided the block moves slowly, the damping force is
proportional to the block’s velocity:
where c is called the coefficient of viscous damping and the negative sign means that
the damping force always points to the opposite direction of motion (velocity). In this
example, we assume c= 1.00 N·s/m .
This is a second-order ordinary differential equation. Here "order" refers to the highest
order of derivative in the equation.
When we solve a differential equation, our goal is to find the unknown function, x(t),
i.e., how x depends on t. Now let us use Maple™ to solve the differential equation
(6.3).
First of all, we set up the differential equation in Maple™ and name it as "ode1":
> restart;
This is a general solution for the vibrating block with damping. Since we have not
used any initial conditions, the solution contains two arbitrary constants _C1 and _C2.
In general, the solution of an nth order differential equation may have n arbitrary
constants. When all the arbitrary constants are not determined, the solution is called
a general solution. When at least one of these constants are determined, the solution is
called a particular solution.
3. A ParticularSolution
Now we pull the block to a position metres from the equilibrium position
as shown in Figure 6.2 and then release it. If we define the time when we release the
block as sec, find the displacement of the block as a function of time.
when t = 0,
> cond1:=x(0)=A;
cond1 := x(0) = A
> cond2:=D(x)(0)=0;
cond2 := D(x)(0) = 0
This is the particular solution that satisfies both the differential equation (6.3) and the
initial conditions. Now let us substitute the specific values of m, k, c and A into the
solution and plot it out:
> a62:=subs(m=1, k=4, c=1, A=2, s62):
The "dsolve" supports several options such as the " laplace" option and the "series"
option, with which sometimes we can obtain the solution in a more understandable
form. In fact, as shown below, with the "laplace" option, the physical meanings of the
solution become more understandable.
> restart;
> cond1:=x(0)=A;
cond1 := x(0) = A
> cond2:=D(x)(0)=0;
cond2 := D(x)(0) = 0
> s64:=dsolve ({ode1, cond1, cond2}, x(t), laplace);
Each term in the solution is a sinusoidal function with an exponentially decaying
amplitude, which exactly represents a dying-out vibration. Furthermore, it is
straightforward to investigate how the parameters m, k, A and c affect the nature of the
vibration.
For simplicity, we will substitute the value of the constants m, k, and A and investigate
the meaning of the damping constant c by plotting the solution with different c values
(c=1.00, 0.00, and 5.00).
> a64:=subs(m=1,k=4, A=2, s64);
> a645:=subs(c=5,a64);
Also, we can use "plot3d" to have a complete view of the displacement x as a function
of time t and the damping constant c:
> plot3d(rhs(a64), c=0..5, t=0..10);
From the two graphs above we can draw the following conclusions about the damping
constant c: When c = 0, there is no damping, the block vibrates in a simple sinusoidal
form, which is call undamped vibration. When c=1, the block vibrates with an
exponentially decreasing amplitude, which is called damped vibration or
underdamped vibration. When c=5, the block will not vibrate at all. Instead, it will
approach the equilibrium position obeying an exponential function, which is called
overdamped vibration. It is fairly straightforward to show that the value of c to
distinguish underdamped and overdamped vibrations is given by which is
called the value of critical damping.
The process of taking the double logarithm of the analog signal is accomplished by
the use of a pair of TL441AM logarithmic amplifiers (from Texas Instruments). The
output voltage is then amplified and level shifted to give appropriate levels for the
subsequent A/D converter. This being done, you collect the following data to see if
your efforts have been justified:
Temperature, T
-40 -20 0 20 40 60 80 100
(°C)
Resistance, R (Ω) 75773.0 21862.1 7352.90 2813.11 1199.72 560.34 282.64 152.78
Output from log- 4.579 3.970 3.369 2.775 2.185 1.594 0.999 0.399
amplifiers, (V)
The Problem
a. Find the equation of the best fit line (temperature as a function of voltage).
b. Determine 95% confidence intervals for the slope and y-int.
c. By looking at the results of (b) does it appear that the simple linear relation
found in (a) is adequate to meet the specification of accuracy to within 0.1°C?
Solution
a) First find some intermediate results, (letting temperature be represented by 'y' and
voltage by 'x').
Now using these results one can determine estimates for the slope, m, and the y-
intercept, b.
Now,
and,
c) As can be seen from the 95% CI for the y-intercept the simple linear relation found
is not adequate to meet the specification of accuracy to within 0.1 ° C, (i.e.
considering the y-int as an arbitrary predicted value, one cannot state with a
reasonable degree of confidence, say 95% in this case, that the maximum error is
less than ±0.4 °C).
FINAL NOTE:
The actual final design of the project discussed in this question was implemented
using a single logarithmic amplifier to partially linearize the data (see Fig.1b) and a
cubic spline curve fit to account for the remaining non-linearity. This approach not
only met but exceeded the design specifications by providing temperature data to
within 0.05 °C from -40 to 150 °C using a 12 bit plus sign serial I/O A/D converter.
This method also allowed for simple calibration so as to account for the
interchangeability tolerances of different probes. The reduced hardware and
software associated with this method also allowed for increased speed making it
possible to update each channel 60 times per second with real-time display via the
RS-232 interface.
Non-smoking hypertensive women in their forties with atypical chest pain have about
a 10 % prevalence of significant coronary artery disease. This thallium stress test has
a sensitivity of 80 % and a specificity of 90 % for coronary artery disease.
Questions:
1. What are the false-positive and false-negative rates for thallium stress tests as
defined above?
2. Determine the Predictive Value Negative for this test.
Solution:
First some terminology:
Specificity is the probability that the test results are negative for a person that
does not have the disease.
Sensitivity is the probability that the test results are positive for a person that
does have the disease.
Predictive Value Negative is the probability that a person does not actually
have the disease if this person’s results for the test are negative.
False Positive is the probability that a person who does not have the disease
will get positive test results. In this case, the false positive rate is 10 %.
False Negative is the probability that a person who does have the disease will
get negative test results. In this case, the false negative rate is 20 %.
1. To find these rates it is helpful to draw a tree
diagram:
2. This is an application of Bayes’ Rule, a theorem of probability, which can be
used to revise the probability a patient does or does not have the disease based
on additional information being introduced ... in this case, a positive or negative
result on a this
test.
If the test results are negative, then there is now a 98 % chance that the woman
does not actually have the disease. This is a revision of the original
probabilities based on the information given by the test.
Solution
The solution to this problem requires a knowledge of the Poisson Probability Model
and of the rules of probability:
The Poisson Probability Model says that the probability of finding
In this formula, μ= the mean number of flaws = 0.8 flaws / meter = 3.2 flaws /
4 meters,
and x! denotes the factorial function.
P(reject the roll using the sampling plan) = 1 - P(0 flaws) = 1 - 0.0408 =0.9592
There is a 96% chance that a roll with as many as 0.8 flaws/meter will be rejected by
this sampling plan.
Goober Island has an area of 109 hectares. Logging and conservation concerns
require that we know how many trees are on this wooded island. The island is much
too large to count every tree. What can we do?
Solution:
One solution is to count the trees on a small portion of the island and then estimate the
total for the whole area. For example, suppose the count of trees on an 8
hectare section of the island is 621. Then the number of trees per hectare is 621/8 =
77.625. An estimate of the number of trees on the entire island is 77.625 x 109 =
8461.
Let the actual number of trees on the whole island be T. This won’t be known exactly
unless we count every tree on the whole island. However, T can be estimated by
We first compute to estimate the number of trees per hectare, and then multiply this
by A to estimate the number of trees on the whole island.)
This raises some questions. How accurate will our estimate, , be? In other words,
how close will be to T? For example, if we happen to count in an area which is less
heavily treed than the rest of the island, then would be too low. Is there a better
way?
Better Solution
Instead of counting all the trees in one area, we can divide the entire island into small
rectangular plots as in the diagram on the right. Then choose some of the plots and
count the trees only on those plots. Suppose each of our plots is 1.30 hectares.
In the above diagram, we have chosen 8 plots on which to count trees. The plots must
be chosen in a random manner, i.e. every plot on the island must have the same
chance of being chosen. By doing this we distribute the area where we are going to
count over the island, and this leads to the sample being more representative of the
whole island. In fixmewith a symbols, we signify the number of plots on which trees
are counted by the letter n. This is called the sample size. Let
a = area of each plot where counts were made (In this example we will forget
about the fact that some plots on the edge of the island will be smaller since
part of them will be in the water. This is another problem).
A= area of the entire island
xi = count on plot i (i takes on values 1 through n).
Each plot has an area a, so the number of trees/hectare on the sampled plots is .A
good estimate , , of the total number of trees, T, on the entire island (which has
area = A) is
The accuracy involves the computation of a quantity called the standard deviation,
The smaller the value of s, the more accurate the estimate will be. Statistical theory
tells us that for large samples, we can be about 95% sure that the difference between
the mean count on all plots on the island, μ (includes both those which were sampled
and those which were not), and the mean on the sampled plots, , will be less
than , i.e. that μ will be between and .
and .
Worked Example:
On Goober Island, the count of trees on the 8 one-hectare plots are as follows:
A = 109
a=1.30
n = 8
s=75.37
Our conclusions are: The best estimate of T, the number of trees on the entire island,
The above analysis is approximate. We have not allowed for the facts that: