Exam Material1
Exam Material1
x = 10 ± 2, y = 7 ± 1, θ = (40 ± 3)◦ .
2. To find the acceleration of a cart, a student measures its initial and final velocities, vi
and vf , and then calculates the difference (vf − vi ). Her data in two separate trials is,
(a) How would she calculate the absolute uncertainties in all four measurements and
quote the final values of vi and vf for the two trials.
(b) Find the change in velocity (v = vf − vi ) and its uncertainty in both trail. Quote
your value of v along with its uncertainty? Find the percentage uncertainty in v
for the two trials.
3. Suppose you are an experimental physicist and you measure three quantities x, y and
z as follows,
Compute the following expressions and in the true spirit of being faithful to the concept
of precision,
8.16 8.14 8.12 8.16 8.18 8.10 8.18 8.18 8.18 8.24
8.16 8.14 8.17 8.18 8.21 8.12 8.12 8.17 8.06 8.10
8.12 8.10 8.14 8.09 8.16 8.16 8.21 8.14 8.16 8.13
4. (a) Calculate the mean and standard deviation for the following 30 measurements of
a time t (s),
(b) After several measurements, we can expect about 68% of the observed values to
be within σt of < t > (i.e., < t > ± σt ).
(d) How many would you expect to lie the range (< t > ± 2σt )? How many actually
do?
5. In an experiment, one measures values of current (I) for different applied voltages (V )
across a light bulb, thus calculating the resistance (R) and power dissipation (P ) in
the bulb. The schematic of the setup is shown in Figure (1). The data collected during
the experiment is shown in Table II.
I
Ammeter
V
Variac Voltmeter
~ (0-220 V)
Utilizing the relations for power dissipation (P = I 2 R), emitted radiation by a black
body (P = AσT 4 ) and the power law (T ∝ Rγ ), we get,
P = cosntant ∗ R 4γ . (1)
(a) Find uncertainties in the dependent and independent variables by utilizing the fact
that the voltage and current readings are taken by using a digital multimeter with
a rating of 1%.
(c) Linearize Equation (1). Plot a graph between log(P ) versus log(R). Calculate
uncertainties in log(P ) and log(R), also plot a graph with error bars, both in the
dependent and independent variables.
(d) Transfer all the uncertainties in the dependent variable. Plot another graph with
error bars in the dependent variable only.
(e) Calculate the values of the slope and intercept using the mathematical relationship
for a weighted fit of a straight line.
The length of the pendulum (l) is measured by a ruler, which is an analog device, and
a time is measured using a digital stopwatch (rating= 0).
The student uses the following relation to calculate (g),
4π 2 l
g= . (2)
T2
(a) Calculate the uncertainty in each reading of l and T using probability distribution
function and record them in a table.
Q.No.1
(a) the scatter is due to errors in setting and reading the measuring instrument,
Q.No.2
After measuring the speed of sound u several times, a student concludes that the standard
deviation σu of her measurements is σu = 10 m/s. If all uncertainties were truly random,
she could get any desired precision by making enough measurements and averaging.
(a) How many measurements are needed to give a final uncertainty of ±3 m/s?
Q.No.3
Suppose we wish to measure the spring constant k of a spring by timing the oscillations of
a mass m fixed to its end. The time period for such oscillations is,
√
m
T = 2π .
k
Thus by measuring T and m, we can find k as,
m
k = 4π 2 .
T2
The set of data for careful measurements of T corresponding to each mass m is given in
Table (I).
Calculate the best estimate of k by combining each value of m with its corresponding period
T . Also find out the uncertainty in the best estimated value of k.
Mass m (kg) 0.513 0.581 0.634 0.691 0.752 0.834 0.901 0.950
Period T (s) 1.24 1.33 1.36 1.44 1.50 1.59 1.65 1.69
Q.No.1
V = l1 l2 l3 .
The error affects the three sides independently. Hence, the standard error in V
can be calculated as,
( )2 ( )2 ( )2
2 ∂V 2 ∂V 2 ∂V
(∆V ) = (∆l1 ) + (∆l2 ) + (∆l3 )2 ,
∂l1 ∂l2 ∂l3
= (l2 l3 )2 (∆l1 )2 + (l1 l3 )2 (∆l2 )2 + (l1 l2 )2 (∆l3 )2 .
(b) For temperature variations, all sides are affected equally. Therefore, one can
use the formula for volume with equal lengths,
V = l3 .
1
( ) ( )
∆V 3∆l
= ,
V l
= 0.03 %.
This result shows that the overall uncertainty can increase, if the errors are not
independent nor random.
Q.No.2
The standard error in the mean can be find out using the following relationship,
σ
σmean = √ , (1)
n
implying,
( )2
σu
n = ,
σmean
( )2
10
= ,
3
= 11.
(b) Let’s see how many times we will repeat the experiment to get a final uncer-
tainty of 0.5 m/s.
Hence we conclude that we need to repeat the measurements 11 and 400 times for
minimizing error to 3 m/s and 0.5 m/s, respectively.
Q.No.3
The spring constant k measured by timing the oscillations of a mass m fixed to its
end is given as,
m
k = 4π 2 .
T2
As the measured masses are not different measurements of the same quantity,
therefore the process of averaging can’t work. On the other hand, we are not sure
about the uncertainties in our measurements, so we need to calculate k first by
combining each value of m with its corresponding period T as given in Table (1).
2
Mass m (kg) Period T (s) Spring constant k (N/m)
0.513 1.24 13.17
0.581 1.33 12.97
0.634 1.36 13.53
0.691 1.44 13.16
0.752 1.50 13.19
0.834 1.59 13.02
0.901 1.65 13.07
0.950 1.69 13.13
di = ki − k̄,
The standard error, σ, can be find out using the following relationship,
√
n
σ = s
n−1
= 0.17 N/m.
3
We can say that he expected standard error is approximately equal to the standard
deviation, σ ≈ s.
4
PHY- 200 Assignment (Solution)
x = 10 ± 2, y = 7 ± 1, θ = (40 ± 3)◦ .
Solution:
Given values are:
x = 10 ± 2, y = 7 ± 1, θ = (40 ± 3)◦ .
x+2 10 + 2
q = =
x + y cos(4θ) 10 + 7(cos(160◦ ))
12 12
= =
10 + 7(−0.939) 3.427
= 3.50
3.427 − 12
=
(3.427)2
= −0.732
1
PHY- 200 Assignment (Solution)
−(12)(−0.939)
=
(3.427)2
= 0.960
−(12)(−28 × 0.342)
=
(3.427)2
114.912
=
(3.427)2
= 9.784
√
= 2.1433 + 0.9216 + 0.2622
= 1.82
Finally, the value of q along with its uncertainty can be quoted as,
q = (3.5 ± 1.8).
2
PHY- 200 Assignment (Solution)
2. To find the acceleration of a cart, a student measures its initial and final velocities, vi
and vf , and then calculates the difference (vf − vi ). Her data in two separate trials is,
(a) How would she calculate the absolute uncertainties in all four measurements and
quote the final values of vi and vf for the two trials.
(b) Find the change in velocity (v = vf − vi ) and its uncertainty in both trail. Quote
your value of v along with its uncertainty? Find the percentage uncertainty in v
for the two trials.
Solution:
(a) Since each quantity has an uncertainty of ± 1%, the absolute uncertainties of the
measurand can be calculated as,
1st run:
2nd run:
The final values of the initial and final velocities alongwith uncertainties in both the
trials can be quoted as,
1st run:
While quoting the final value of the calculated uncertainty, care must be taken that
uncertainty should have only one significant figure, at the most 2 significant figures
3
PHY- 200 Assignment (Solution)
can be considered. After deciding about the significant figure, the best approximated
value can be rounded off so that the decimal places of the best estimated value and
uncertainty should be at the same position.
2nd run:
(b) The change in velocity can be find out simply by subtracting final and initial
velocities, and given as,
1st run:
= 0.23 cm/s.
4
PHY- 200 Assignment (Solution)
2nd run:
0.3
× 100 = 21%
1.4
3. Suppose you are an experimental physicist and you measure three quantities x, y and
z as follows,
Compute the following expressions and in the true spirit of being faithful to the concept
of precision,
Solution:
0.005
x = × 100 = 0.06%,
8.15
0.05
y = × 100 = 0.98%,
5.1
0.05
z = × 100 = 1.19%.
4.2
x2 y
q1 =
z
= 80.65589286
To quote the final value of q1 , we’ll check the relative precision of q1 first by taking it
5
PHY- 200 Assignment (Solution)
80.6559 0.00005
80.6559 × 100 = 0.00006%
80.656 0.0005
80.656 × 100 = 0.0006%
80.66 0.005
80.66 × 100 = 0.006%
80.6 0.05
80.6 × 100 = 0.06%
81 5
81 × 100 = 6.17%
upto four decimal places and then rounding it off to achieve a final precision which is
less than the least precise primary quantity (z). The process is shown in Table (I).
The final value of q2 can b chosen by looking at the relative precision of q2 being
rounded off. The results are tabulated in Table (II).
20.2816 0.00005
20.2816 × 100 = 0.0002%
20.282 0.0005
20.282 × 100 = 0.002%
20.28 0.005
20.28 × 100 = 0.02%
20.2 0.05
20.2 × 100 = 0.24%
20 5
20 × 100 = 25%
6
PHY- 200 Assignment (Solution)
x2 − y 2
q3 =
z2
= 2.29095805
The relative precision in tabulated in Table (III). The final value of q2 is quoted as,
2.2909 0.00005
2.2909 × 100 = 0.0002%
2.290 0.0005
2.291 × 100 = 0.002%
2.29 0.005
2.29 × 100 = 0.02%
2.3 0.05
2.3 × 100 = 2.2%
4. (a) Calculate the mean and standard deviation for the following 30 measurements of
a time t (s),
8.16 8.14 8.12 8.16 8.18 8.10 8.18 8.18 8.18 8.24
8.16 8.14 8.17 8.18 8.21 8.12 8.12 8.17 8.06 8.10
8.12 8.10 8.14 8.09 8.16 8.16 8.21 8.14 8.16 8.13
(b) After several measurements, we can expect about 68% of the observed values to
be within σt of < t > (i.e., < t > ± σt ).
(d) How many would you expect to lie the range (< t > ± 2σt )? How many actually
do?
7
PHY- 200 Assignment (Solution)
Solution:
di = ti − < t > .
The calculated deviations for the measured values of t are tabulated in Table (V).
Sr. No Time t (s) Deviations di (s) d2i (s2 ) Sr. No Time t (s) Deviations di (s) d2i (s2 )
8
PHY- 200 Assignment (Solution)
σ 0.0393
σm = √ = √ = 0.0072, s
n 30
= 0.01 s.
t = (8.15 ± 0.01) s
(c) For type A evaluations, the probability distribution function associated with the
measurement is a Gaussian probability distribution function as shown in Figure (1).
The coverage probability or the confidence of interval for any arbitrary measurand µ
corresponding to different standard uncertainties is given as,
p(x)
9
PHY- 200 Assignment (Solution)
Now as the above expressions predict, the 68% confidence of interval corresponds to
(< t > ±1σ). Considering this, the range of interval becomes,
t = (8.15 ± 0.04) s
t = [8.11, 8.19] s.
The values (in seconds s) that lie within 68% confidence of interval are,
8.16, 8.14, 8.12, 8.16, 8.18, 8.10, 8.18, 8.18, 8.18, 8.16, 8.14, 8.17, 8.18,
8.12, 8.12, 8.17, 8.10, 8.12, 8.10, 8.14, 8.16, 8.16, 8.14, 8.16, 8.13.
and values (in seconds s) which lie outside this interval or lying within 32% confidence
of interval are,
(d) The 95% confidence of interval corresponds to (< t > ±2σ). The range of interval
becomes,
t = [8.07, 8.23] s.
The values (in seconds s) that lie within 95% confidence of interval are,
8.16, 8.14, 8.12, 8.16, 8.18, 8.10, 8.18, 8.18, 8.18, 8.16, 8.14, 8.17, 8.18, 8.12,
8.12, 8.17, 8.10, 8.12, 8.10, 8.14, 8.16, 8.16, 8.14, 8.16, 8.13, 8.09, 8.21, 8.21.
and values (in seconds s) which lie outside this interval or lying within 5% confidence
of interval are,
8.06, 8.24.
(e) 2σt corresponds to the 95% confidence of interval. This means that there is 95%
probability that the best approximated value of measurand lies somewhere within the
interval (< t > ±2σ) of standard uncertainty. Conversely, there is 5% probability that
the best approximated value of the measurand lies outside the interval (< t > ±2σ).
10
PHY- 200 Assignment (Solution)
5. In an experiment, one measures values of current (I) for different applied voltages (V )
across a light bulb, thus calculating the resistance (R) and power dissipation (P ) in
the bulb. The schematic of the setup is shown in Figure (2). The data collected during
the experiment is shown in Table X.
I
Ammeter
V
Variac Voltmeter
~ (0-220 V)
Utilizing the relations for power dissipation (P = I 2 R), emitted radiation by a black
body (P = AσT 4 ) and the power law (T ∝ Rγ ), we get,
P = cosntant ∗ R 4γ . (2)
(a) Find uncertainties in the dependent and independent variables by utilizing the fact
that the voltage and current readings are taken by using a digital multimeter with
a rating of 1%.
(c) Linearize Equation (2). Plot a graph between log(P ) versus log(R). Calculate
uncertainties in log(P ) and log(R), also plot a graph with error bars, both in the
dependent and independent variables.
(d) Transfer all the uncertainties in the dependent variable. Plot another graph with
error bars in the dependent variable only.
(e) Calculate the values of the slope and intercept using the mathematical relationship
for a weighted fit of a straight line.
11
PHY- 200 Assignment (Solution)
Solution:
Solution
(a) The voltage V is measured using a digital multimeter and by looking at the data
(shown in Table X), one can tell that the multimeter has a resolution of 1 V. Now the
scale uncertainty can be calculated by associating a uniform probability distribution
function with the reading and given as,
∆ 0.5
uScale(V ) = √ = √ V.
3 3
= 0.3 V.
Since the rating of the digital multimeter is 1%, uncertainty associated with rating of
the instrument is given as,
while the combined uncertainty in voltage V can be calculated using the following
expression,
√
uV = (uScale(V ) )2 + (uRating(V ) )2 .
12
PHY- 200 Assignment (Solution)
Likewise for the ammeter, the scale and combine uncertainty can be calculated as,
∆ 0.05
uScaleI = √ = √ mA = 0.03 × 10−3 A.
3 3
√
uI = (uScale(I) )2 + (uRating(I) )2 .
The uncertainty in energy (R = V /I) can be calculated using Taylor series approxi-
mation,
√( )2 ( )2
∂R ∂R
∆R = ∆V + ∆I , (3)
∂V ∂I
By looking at Equation (4), we can easily tell that the dependent variable is log(P ),
while the independent one is log(R). Now the question is how to propagate uncertain-
ties from P and R to log(P ) and log(R), respectively. For that we’ll utilize the general
rule of propagation,
√( )2
∂(log R) ∆R
ux = ∆(log R) = ∆R = ,
∂R R
√( )2
∂(log P ) ∆P
uy = ∆(log P ) = ∆P = .
∂P P
(b) Uncertainties in all the measured and inferred quantities are quoted in Table (VII).
(c) By taking log on both sides of Equation (2) yields a straight line equation given
as,
13
PHY- 200 Assignment (Solution)
33.0 0.4 100.4 1.0 328.7 5.5 3.3 0.1 5.79 0.02 1.19 0.03
57.0 0.6 126.3 1.3 451.3 6.8 7.2 0.2 6.11 0.02 1.97 0.03
76.0 0.8 146.6 1.5 518.4 7.6 11.1 0.3 6.25 0.01 2.41 0.02
96 1 165.0 1.7 581.8 8.4 15.8 0.4 6.37 0.01 2.76 0.02
109.0 1.1 176.3 1.8 618.3 8.9 19.2 0.5 6.43 0.01 2.95 0.02
143.0 1.4 210.0 2.1 681.0 9.7 30.0 0.7 6.52 0.01 3.40 0.02
164.0 1.7 220.0 2.2 745.5 10.6 36.1 0.9 6.61 0.01 3.59 0.02
183.0 1.9 230.0 2.3 795.7 11.3 42.0 1.0 6.68 0.01 3.74 0.02
207 2. 250.0 2.5 828.0 11.8 51.8 1.3 6.72 0.01 3.95 0.02
The weights w are reciprocal squares of the total uncertainty being utilized in least-
squares fitting of a straight line. The expression for calculating the weight w is,
1
w = . (7)
u2Total
The uncertainties calculated for the given data of independent (log R) and dependent
variables (log P ) are shown in Table (VIII).
Graph with error bars only in the dependent variable is shown in Figure (3b).
(e) The mathematical relationships for slope (m) and intercept (c) are,
and,
where x is the independent variable (log R in our case), y is the dependent variable
(log P ) and w is the weight.
The different terms in the numerator and denominator of Equations (8) and (9) are
calculated separately and tabulated in Table (IX).
14
PHY- 200 Assignment (Solution)
TABLE VIII: Calculated data for the transfer and total uncertainties.
w wxy wx wy wx2
TABLE IX: Terms being utilized in finding the values of slope and intercept.
Substituting the calculated terms given in Table (IX) in Equation (8) yields,
(3523.6)(67330) − (22581)(10387)
m = ,
(3523.6)(144960) − (22581)2
= 3.041
15
PHY- 200 Assignment (Solution)
(144960)(10387) − (22581)(67330)
c = ,
(3523.6)(144960) − (22581)2
= −16.5381
The expressions for the uncertainties in slope (m) and intercept (c) are,
√
Σ i wi
um = , (10)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
√
Σi (wi x2i )
uc = . (11)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
Substituting the values from Table (IX) in the above expressions yield,
√
(3523.6)
um = = 0.0629,
(3523.6)(144960) − (22581)2
√
(144960)
uc = = 0.4034.
(3523.6)(144960) − (22581)2
Finally, the values of slope and intercept alongwith uncertainties are quoted as,
m
γ= = 0.76.
4
Uncertainty in γ can be find out using Taylor series approximation, given as,
√( )2 √( )2
∂γ ∆m
∆γ = ∆m = = 0.015
∂m 4
16
PHY- 200 Assignment (Solution)
4.0
4.0
3.5
3.5
3.0
3.0
log(P)
log(P)
2.5
2.5
2.0
2.0
1.5
1.5
1.0 1.0
5.6 5. 8 6.0 6.2 6.4 6.6 6.8 7.0 5.6 5. 8 6.0 6.2 6.4 6.6 6.8 7.0
log(R) log(R)
(a) (b)
FIG. 3: Graph with errorbars: (a) Uncertainties in both the dependent and independent variables
and (b) uncertainties are transformed to the dependent variable only.
The length of the pendulum (l) is measured by a ruler, which is an analog device, and
a time is measured using a digital stopwatch (rating= 0).
The student uses the following relation to calculate (g),
4π 2 l
g= 2 . (15)
T
(a) Calculate the uncertainty in each reading of l and T using probability distribution
function and record them in a table.
17
PHY- 200 Assignment (Solution)
√
(c) Plot uncertainties in T and l along with errobars.
Solution:
(a) The uncertainty in the independent variable (length l) has a triangular probability
distribution function associated with it and can be calculated using judgement. For
the given data, the uncertainty would be,
∆ 0.1
uy = √ = √ = 0.041 cm. (17)
6 6
The dependent variable (time period of the pendulum (T )) is being measured using
a digital stop watch and by looking at the data one can tell that the stop watch has
a resolution of 0.001 s. Now the scale uncertainty can be calculated by associating a
uniform probability distribution function with the reading,
∆ 0.0005
uScale = √ = √ s. (18)
3 3
= 0.0003 s. (19)
The uncertainties being quoted in independent and dependent variables are shown in
Table (X).
√
Length l (cm) x= l (cm) ux (cm) Time period T (s) uy (s)
(b) The independent and dependent row vectors are created as,
In least square curve fitting, we need to plot the data in order to know the relationship
between independent and dependent quantities. For that we type,
18
PHY- 200 Assignment (Solution)
y = mx + c,
Once the fitting function has been defined, we can find the least squares curve using
the command,
√
≫ lsqcurvefit(@spring, [0.2 1.5], l, T)
After the Matlab returns the values of the parameters, the output function is redefined
as,
√
≫ cfit=0.1989*( l )+0.0148;
Now we plot the redefined function on the data points using the command,
≫ hold on
≫ plot(m, cfit, ‘r’) The built-in function of Matlab returns the value of slope
2.00
1.95
1.9.0
1.85
1.8.0
T (s)
1.75
1.70
1.65
1.6.0
1.55
1.5
7.5 8.0 8.5 9.0 9.5 10
1
l (cm -1/2)
(a)
(b)
FIG. 4: (a) An M-file for a linear function, (b) Measured data: The initial data points are plotted
in red circles while the curve fit is drawn as a solid line.
19
PHY- 200 Assignment (Solution)
2.00
1.95
1.90
1.85
1.80
T (s)
1.75
1.70
1.65
1.60
1.55
1.50
7.5 8.0 8.5 9.0 9.5 10
1
l (cm -1/2)
FIG. 5: (a) Graph with error bars both in independent and dependent variables.
20
PHY-200 Quiz 1(1)
Solution:
The uncertainty to the inferred quantity q can be find out using the following rela-
tionship,
√( )2 ( )2 ( )2
∂q ∂q ∂q
∆q = ∆x + ∆y + ∆θ . (1)
∂x ∂y ∂θ
The first expression on the R.H.S of Equation (1) can be obtained by differentiating q
w.r.t x and multiplying with ∆x,
( )
∂q
∆x = (y − sin θ)∆x = (8.5 − sin 30)(1.5),
∂x
= (8.5 − 0.5)1.5 = 12
September, 9, 2013 1
PHY-200 Quiz 1(1)
q = (162 ± 16).
(a) Calculate the mean and the standard deviation. Find the standard uncertainty
and quote your results.
(b) How many measurements would you expect to lie outside the 95% confidence
interval? How many actually do?
Solution:
di = gi − < g > .
The calculated deviations for the measured values of g are tabulated in Table (I).
September, 9, 2013 2
PHY-200 Quiz 1(1)
(b) For type A evaluations, the probability distribution function associated with the
measurement is a Gaussian probability distribution function as shown in Figure
(1). The coverage probability or the confidence of interval for any arbitrary
measurand µ corresponding to different standard uncertainties is given as,
September, 9, 2013 3
PHY-200 Quiz 1(1)
p(x)
Now as the above expressions predict, the 95% confidence of interval corresponds
to (< g > ±2σ). Considering this, the range of interval becomes,
The values (in m/s2 ) that lie within 95% confidence of interval are,
and values (in m/s2 ) which lie outside this interval or lying within 5% confidence
of interval are,
9.84, 9.75.
3. Suppose you measure the mass m of a steel ball (unit in g) using an analog weighing
balance. The reading shown on the balance is depicted in Figure (2).
Solution:
September, 9, 2013 4
PHY-200 Quiz 1(1)
0 10 20 30 40
grams (g)
(a) The uncertainty is so inherent in nature that even if you take a single reading
and don’t repeat the experiment, you get an uncertainty. In Figure (2), the scale
is an analog scale and the probability distribution function associated with it is
a triangular pdf. This is type B uncertainty which comes in due to the limited
resolution of the measuring instrument. For evaluating type B uncertainties, one
has to use his/her judgment.
Using this idea of judgement, the best approximated value of m being displayed
on an analog weighing balance is 25.5 g.
(b) The standard uncertainty associated with the reading can be find out by calculat-
ing the second moment (variance) of the probability distribution function. The
mathematical relationship for which is given as,
∫ ∞
2
σ = (x − µ)2 f (x)dx,
−∞
where µ is the mean value where the function is maximum. The standard uncer-
√
tainty is just the square root of the variance i.e., (u = σ 2 ).
The value of (∆ = 0.2 g) is chosen such that the value couldn’t be greater than
25.70 g and less than 25.30 g. The scale uncertainty becomes,
∆ 0.2
uscale = √ = √ = 0.08 g.
6 6
The final value of m alongwith its uncertainty can be quoted as,
g = (25.5 ± 0.1) g.
(c) The probability distribution function (pdf) will be a triangular pdf with (∆ =
0.2). This shows that probability is maximum at 25.50 g, gradually slopes down,
September, 9, 2013 5
PHY-200 Quiz 1(1)
eventually goes to zero at 25.30 g and 25.70 g. The (pdf) associated with reading
of an analog weighing balance is sketched in Figure (3).
September, 9, 2013 6
PHY-200 Quiz 1(2)
q = x − y sin(θ).
Solution:
The uncertainty in q can be calculated using the Taylor series approximation (which
is a general rule),
√( )2 ( )2 ( )2
∂q ∂q ∂q
∆q = ∆x + ∆y + ∆θ . (2)
∂x ∂y ∂θ
and,
( )
∂q
∆θ = (−y cos θ)(∆θ),
∂θ
( )
3π
= (−8.5 × 0.866) = 0.3852 (5)
180
September, 9, 2013 1
PHY-200 Quiz 1(2)
Substituting the values of Equations (3), (4), (5) in Equation (2) yields,
√
∆q = (1.5)2 + (0.25)2 + (0.3852)2 = 1.56 (6)
q = (16.0 ± 1.6).
(a) Find the best estimated value of θ and its standard uncertainty.
(b) How many measurements would you expect to lie outside the 95% confidence
interval? How many actually do?
Solution:
The calculated deviations of all the measured angles are tabulated in Table (I).
The standard deviation s is,
√ √
∑7
d2i 0.1
s = i=1
= = 0.119◦
n 7
September, 9, 2013 2
PHY-200 Quiz 1(2)
(b) For type A evaluations, the probability distribution function associated with mea-
surement is a Gaussian probability distribution function as shown in Figure (1).
The coverage probability or the confidence of interval for any arbitrary measurand
µ corresponding to different standard uncertainties is given as,
For 95% coverage probability, we take twice of the uncertainty i.e., (< θ > ±2σ),
therefore the range of our data that covers 95% confidence interval becomes,
September, 9, 2013 3
PHY-200 Quiz 1(2)
p(x)
and values lying outside 95% confidence of interval (or within 5%) are,
3. Suppose you measure the value of current I (in mA) using an analog ammeter. The
reading displayed on an ammeter is shown in Figure (2).
September, 9, 2013 4
PHY-200 Quiz 1(2)
(c) What probability distribution function did you use to model your knowledge about
I.
Solution:
(a) The uncertainty is so inherent in nature that even if you take a single reading and
don’t repeat the experiment, you get an uncertainty. The scale is an analog scale
in Figure (2) with a triangular probability distribution function associated with
it. This is type B uncertainty which comes in due to the limited resolution of the
measuring instrument. For type B evaluations, one has to use his/her judgment.
Using this idea of judgement, the best approximated value of I being displayed
on an analog ammeter is 30.8 mA.
(b) The second moment (variance) of the probability distribution function is a mea-
sure of finding the standard uncertainty. The mathematical relationship for which
is given as,
∫ ∞
2
σ = (x − µ)2 f (x)dx,
−∞
and the standard uncertainty is just the square root of the variance i.e., (u =
√
σ 2 ).
The value of ∆ can be chosen such that the value couldn’t be greater than 31.0 mA
and less than 30.6 mA. The ∆ for the reading being displayed in Figure (2) would
be 0.2 mA. The scale uncertainty becomes,
∆ 0.2
uscale = √ = √ = 0.08 mA.
6 6
The final value of I alongwith its uncertainty can be quoted as,
(c) The probability distribution function (pdf) will be a triangular pdf with (∆ = 0.2).
This shows that the probability is maximum at 30.80 mA, gradually slopes down,
eventually goes to zero at 30.60 mA and 31.0 mA. The (pdf) associated with the
reading is drawn in Figure (3).
September, 9, 2013 5
PHY-200 Quiz 1(2)
September, 9, 2013 6
PHY-200 Quiz 2(1)
1. A student measures the area of a rectangle several times and concludes the standard
deviation σA of the measurements is σA = 8 cm2 . If all the uncertainties are truly
random then the desired precision can be obtained by making enough measurements
and averaging. How many measurements are needed to get a final uncertainty of
±2 cm2 . (10 points)
Solution:
σ
σm = √ . (1)
n
Hence we conclude that we need to repeat the measurements 16 times to minimize the
final uncertainty upto ±2 cm2 .
2. A students wants to measure the spring constant of a spring. For that the student
loads it with various masses m and measures the corresponding lengths l. The mass
is measured using a digital weighing balance (rating= 1%) while lengths is measured
using a ruler. The results are shown in Table (I).
mg = k(l − lo ), (2)
where lo is the unstretched length of the spring and k is the spring constant. The data
should fit a straight line.
(c) Calculate the best estimate of the unstretched length lo and the spring constant
k using weighted fit of a straight line. Find uncertainty in spring constant k and
quote your final result. (5 points)
Solution:
(a) Equation (2) can be rearranged in the form of a straight line equation and given
as,
( )
g
l = m + lo , (3)
k
where l is the dependent variable, m is the independent variable and the value of
spring constant can be calculated by finding the value of slope.
The independent variable (load m) is being measured using a digital weighing balance
and by looking at the data (shown in Table I) one can tell that the balance has a
resolution of 1 g. Now the scale uncertainty can be calculated by associating a uniform
probability distribution function with the reading,
∆ 0.5
uScale = √ = √ g. (4)
3 3
= 0.2887 = 0.29 g. (5)
The rating of the weighing balance is 1%, so the uncertainty associated with rating of
the instrument is given as,
while the combined uncertainty in the independent variable can be calculated using
the following expression,
√
ux = (uScale )2 + (uRating )2 . (7)
The uncertainty in the dependent variable (length l) has a triangular probability dis-
tribution function associated with it and can be calculated using judgement. For the
given data, the uncertainty would be,
∆ 0.1
uy = √ = √ cm. (8)
6 6
The uncertainties being quoted in independent and dependent variables are shown in
Table (II).
(b) The mathematical expressions for transferring uncertainties to the dependent vari-
able and for calculating the total uncertainty are,
( )
dy
uTrans = ux = (0.006) ux , (9)
dx
√
uTotal = (uTrans )2 + u2y . (10)
The weights w are reciprocal squares of the total uncertainty which are utilized in
least-squares fitting of a straight line. The expression for calculating the weight w is,
1
w = . (11)
u2Total
Now the uncertainties calculated for the given data of independent (load m) and
dependent (length l) variables are shown in Table (II).
Load m (g) ux (g) Length l (cm) uy (cm) uTrans (cm) uTotal (cm) Weights w (cm−2 )
(c) The mathematical relationships for slope (m) and intercept (c) are,
and,
Σi (wi x2i ) Σi (wi yi ) − Σi (wi xi ) Σi (wi xi yi )
c = , (13)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
where x is the independent variable (load m in our case), y is the dependent variable
(length l) and w is the weight.
The different terms in the numerator and denominator of Equations (12) and (13) are
calculated separately and tabulated in Table (III).
TABLE III: Terms being utilized in finding the values of slope and intercept.
Substituting the calculated terms given in Table (III) in Equation (12) yields,
(2207.1)(5.2333 × 106 ) − (8.2790 × 105 )(1.3260 × 104 )
m = ,
(2207.1)(3.5331 × 108 ) − (8.2790 × 105 )2
= 0.0061 cm g−1 .
The expressions for the uncertainties in slope (m) and intercept (c) are,
√
Σ i wi
um = , (14)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
√
Σi (wi x2i )
uc = . (15)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
and expression for finding the uncertainty in the intercept (c) value becomes,
√
(3.5331 × 108 )
uc = ,
(2207.1)(3.5331 × 108 ) − (8.2790 × 105 )2
Finally, the values of slope and intercept alongwith uncertainties are quoted as,
The spring constant can be find out utilizing the slope value calculated above and
given as,
( )
−3 −1 g
Slope (m) = 6.1 × 10 cm g = ,
k
implying,
( ) ( )
g 9.8 m/s
k = = ,
m (6.1 × 10−3 × 10−2 × 103 ) m kg−1
= 161 N/m. (20)
The uncertainty in spring constant k can be find out using Taylor series,
√( )2 √( )2
∂k −g∆m
∆k = ∆m = ,
∂m m2
√( )2
−(9.8)(0.2 × 10−2 )
= = 5.3 N/m.
(6.1 × 10−2 )2
Hence the best estimated values of spring constant (k) and the unstretched length (lo )
are concluded as,
Solution:
f = 3000 Hz.
= 333 m/s.
√[ ( )]2 [ ]2
1
= (11.1 × 10 )
−2 × 3000 + (3000)(0.4 × 10 ) ,
−2
100
= 12.4 m/s
Hence the value of speed of sound alongwith its uncertainty can be quoted as,
(b) The frequency measured by the audio oscillator is reliable upto 1% (i.e ∆f = 1%),
while the fractional uncertainty of the measured wavelength λ can be calculated as,
( )
0.4
∆λ = × 100 = 4%,
11.1
which is greater than the 1% systematic uncertainty of the oscillator’s calibration.
Hence the 1% systematic uncertainty in frequency f is negligible beside the 4% un-
certainty in wavelength λ.
2. Steel balls of different masses m are dropped from different heights into a container of
sand. The impact of the ball on sand in called a crater and its diameter is measured
using a plastic rule. The relationship between the diameter of the crater and the
kinetic energy of the impacting object is given as,
D = c E n, (2)
where c is a constant, D is the diameter and E is the kinetic energy that can be
calculated by assuming that all the kinetic energy possessed by a ball at a height h is
converted into potential energy before impact. The data is given in Table (II).
8.4 26 3.9
28.2 26 5.2
66.8 26 6.3
66.8 68 7.9
(a) Calculate uncertainties in the independent and dependent variables. The mass is
measured using a digital weighing balance (rating= 1%), the height and diameter
is measured using a ruler (an analog device). (5 points)
(b) Using the transformation rule, transfer all the uncertainties to the dependent
variable. (5 points)
(c) Calculate the best estimate of n using weighted fit of a straight line. Calculate
uncertainty in n as well. (5 points)
Solution
(a) By taking log on both sides of Equation (2) yields a straight line equation given
as,
where (log D) is the dependent variable, (log E) is the independent variable and the
value of n which is energy dissipation mechanism, can be calculated by finding the
value of slope.
The mass m of each steel ball is measured using a digital weighing balance and by
looking at the data (shown in Table I), one can tell that the balance has a resolution of
0.1 g. Now the scale uncertainty can be calculated by associating a uniform probability
distribution function with the reading and given as,
∆ 0.05
uScale = √ = √ g. (4)
3 3
= 0.0289 = 0.03 g. (5)
Since the rating of the weighing balance is 1%, uncertainty associated with rating of
the instrument is given as,
while the combined uncertainty in mass m can be calculated using the following ex-
pression,
√
um = (uScale )2 + (uRating )2 . (7)
The uncertainty in energy (E = mgh) can be calculated using Taylor series approxi-
mation,
√( )2 ( )2
∂E ∂E
∆E = ∆m + ∆h ,
∂m ∂h
while the uncertainty associated with the diameter of the crater D is,
∆ 0.1
uD = √ = √ = 0.0408 = 0.04cm
6 6
By looking at Equation (3), we can easily tell that the dependent variable is log(D),
while the independent one is log(E). Now the question is how to propagate uncer-
tainties from D and E to log(D) and log(E), respectively. For that we’ll utilize the
general rule of propagation,
√( )2
∂(log E) ∆E
ux = ∆(log E) = ∆E = ,
∂E E
√( )2
∂(log D) ∆D
uy = ∆(log D) = ∆D = .
∂E D
Uncertainties in all the measured and inferred quantities are quoted in Table (II).
8.4 0.1 26.0 0.4 0.0214 0.0004 3.90 0.04 -3.844 0.018 -3.244 0.010
28.2 0.2 26.0 0.4 0.072 0.001 5.20 0.04 -2.633 0.018 -2.956 0.008
66.8 0.6 26.0 0.4 0.170 0.003 6.30 0.04 -1.771 0.018 -2.765 0.006
66.8 0.6 68.0 0.4 0.445 0.005 7.90 0.04 -0.809 0.011 -2.538 0.005
66.8 0.6 150.0 0.4 0.982 0.010 10.20 0.04 -0.018 0.010 -2.283 0.004
TABLE II: Experimental data and calculated uncertainties for crater formation.
(b) The mathematical expressions for transferring uncertainties to the dependent vari-
able (log D) and for calculating the total uncertainty are,
( )
dy
uTrans = ux = (0.25) ux , (9)
dx
√
uTotal = (uTrans )2 + u2y . (10)
The weights w are reciprocal squares of the total uncertainty being utilized in least-
squares fitting of a straight line. The expression for calculating the weight w is,
1
w = . (11)
u2Total
The uncertainties calculated for the given data of independent (log E) and dependent
variables (log D) are shown in Table (III).
(c) The mathematical relationships for slope (m) and intercept (c) are,
Σi wi Σi wi (xi yi ) − Σi (wi xi ) Σi (wi yi )
m = , (12)
Σi wi Σi (wx2i ) − (Σi wi xi )2
and,
Σi (wi x2i ) Σi (wi yi ) − Σi (wi xi ) Σi (wi xi yi )
c = , (13)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
where x is the independent variable (log E in our case), y is the dependent variable
(log D) and w is the weight.
The different terms in the numerator and denominator of Equations (12) and (13) are
calculated separately and tabulated in Table (IV).
Substituting the calculated terms given in Table (IV) in Equation (12) yields,
(107640)(324940) − (−112310)(−275910)
m = ,
(107640)(263010) − (1.2613 × 1010 )
= 0.254
w wxy wx wy wx2
0.7577 × 104 9.4498 × 104 −2.9128 × 104 −0.2458 × 105 1.1198 × 105
1.1996 × 104 9.3386 × 104 −3.1587 × 104 −0.3547 × 105 0.8317 × 105
1.5708 × 104 7.6896 × 104 −2.7814 × 104 −0.4343 × 105 0.4925 × 105
2.8393 × 104 5.8329 × 104 −2.2980 × 104 −0.7207 × 105 0.1860 × 105
4.3967 × 104 0.1827 × 104 −0.0800 × 104 −1.0037 × 105 0.0001 × 105
∑ ∑ ∑ ∑ ∑ 2
w = 107640 wxy = 324940 wx = −112310 wy = −275910 wx = 263010
TABLE IV: Terms being utilized in finding the values of slope and intercept.
The expressions for the uncertainties in slope (m) and intercept (c) are,
√
Σ i wi
um = , (14)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
√
Σi (wi x2i )
uc = . (15)
Σi wi Σi (wi x2i ) − (Σi wi xi )2
Substituting the values from Table (IV) in the above expressions yield,
√
(107640)
um = = 0.0026, (16)
(107640)(263010) − (1.2613 × 1010 )
√
(263010)
uc = = 0.0041. (17)
(107640)(263010) − (1.2613 × 1010 )
Finally, the values of slope and intercept alongwith uncertainties are quoted as,
Since the value of slope directly corresponds to energy dissipation mechanism n, hence
we can conclude,
(a) Based on the data provided in Table (I), find the best estimated values of length
l and width w along with uncertainties in the mean. (5 points)
(b) Suppose we have been told that the vernier calliper used to measure the length
l and width w have systematic uncertainties upto 1%. Calculate the systematic
uncertainty in l and w. Quote your final answer for the length l and width
w. (5 points)
(c) Based on your results from the previous two parts, calculate the best estimate for
area (A = lw) and its uncertainty. (5 points)
Solution:
(a) In any experiment, the measured values are repeated to reduce random uncertainty.
This is type A uncertainty with a Gaussian probability distribution function associated
with it and can be evaluated statistically.
The best approximated value of length l and width w are calculated as,
∑7
i=1 li 169.72
<l> = = = 24.24 mm, (1)
n 7
∑7
i=1 wi 352.56
<w> = = = 50.36 mm. (2)
n 7
The deviations di can be calculated as,
di = li − < l > .
October, 6, 2013 1
PHY-200 Quiz 3
Likewise for the width w. The calculated deviations for the measured values of length
l and width w are tabulated in Table (II).
Length l Deviations of length l d2i (length) Width w Deviations of width w d2i (width)
(mm) di (mm) (mm2 ) (mm) di (mm) (mm2 )
The standard error σ can be find out using the following relationship,
√
n
σ = (s).
n−1
However for the set of measured data, the standard error is,
√
7
σlength = (0.021),
7−1
= 0.023 mm.
October, 6, 2013 2
PHY-200 Quiz 3
√
7
σwidth = (0.027),
7−1
= 0.029 mm.
0.029
σm (width) = √ ,
7
= 0.011 mm.
Therefore, the best estimated values of length and width alongwith their uncertainties
are,
(b) The systematic uncertainties in length l and width w are upto 1%, hence we can
deduce,
Since both type A and type B uncertainties contribute towards the total uncertainty
therefore they must be combined in quadrature according to the prescription,
√
uTotal = u2A + u2B .
= 0.2425 mm.
October, 6, 2013 3
PHY-200 Quiz 3
= 0.5037 mm.
A = l × w,
= (24.24)(50.36),
= 1220.7 mm2 .
= 17.12 mm2 .
2. The radioactivity is statistical in nature and follows a Poisson distribution. The rate
of decay of a radioactive material decreases exponentially. To measure this rate a
Geiger Muller tube is place near the radioactive sample and the GM counter records
the number of decays. The data is shown in Table (III).
October, 6, 2013 4
PHY-200 Quiz 3
Total number of decays since the total elapsed time (v(t)) 409 304 260 192 170
TABLE III: The data for the number of decays versus time elapsed.
The sample decays exponentially and the number of decays in the elapsed time are,
(a) Calculate the best estimate for mean life τ using the mathematical expression of
least-squares fit of a straight line. (10 points)
Solution:
(a) To find the value of the mean life τ , we need to linearize Equation (3) given as,
t
log v(t) = log(vo ) − . (4)
τ
which is a straight line equation with (log v(t)) as a dependent variable, elapsed time
t as an independent variable, (1/τ ) is the slope and log(vo ) is the intercept. The best
approximated value of slope can be deduced using the relationship,
∑N
yi (xi − x̄)
m = ∑iN , (5)
i (xi − x̄)
2
where x is the independent variable (elapsed time t) and y is the dependent one (decays
log v(t)).
c = ȳ − mx̄. (6)
Here,
1∑ 1∑
x̄ = xi , ȳ = yi .
n i n i
This means that the straight line passes through the points x̄ and ȳ which are the
center of gravity of all the points. Now we will tabulate the different terms being
utilized in the above expressions and shown in Table (IV).
October, 6, 2013 5
PHY-200 Quiz 3
Time t (min) Decays v(t) log v(t) (ti − t̄ ) yi (ti − t̄ ) (ti − t̄ )2 di d2i
50 170 5.1358 20
102.7160 400 0.0419 0.0018
∑ ∑ ∑ ∑
t̄=30 ¯
v(t)=267 log ¯v(t)=5.5369 avg=0 =−22.1537 =1000 =−8.88 × 10−16 =0.0085
TABLE IV: Terms being utilized in finding the values of slope and intercept.
The mean values of measured elapsed time t and decays log v(t) is,
∑
i ti 10 + 20 + 30 + 40 + 50
t̄ = =
n 5
= 30 min.
∑
¯ i [log v(t)]i
[log v(t)] = ,
n
6.014 + 5.717 + 5.561 + 5.258 + 5.136
=
5
= 5.537.
The best value of slope can be deduced by substituting values from Table (IV) in
expression (5),
(−22.1537)
m = = −0.022 min−1 .
1000
After calculating the slope value, we can easily find out the intercept value using
Equation (6),
= 6.203.
The value of the slope is related to the mean life τ through the following relationship,
1
Slope (m) = ,
τ
October, 6, 2013 6
PHY-200 Quiz 3
implying,
1 1
τ = = = 45.45 min.
(Slope m) 0.022
√ ∑
N
d2i
i
∆m = ,
D(N − 2)
where (di = yi − mxi − c) is the deviation of each point from the best fit straight line
∑
called residuals, and (D = N i (xi − x̄) ).
2
Substituting values from Table (IV) into the above expression yields,
√
0.0085
∆m = = 0.002 min−1 .
(1000)(5 − 2)
Now the uncertainty in the mean life τ can be find out by Taylor series approximation,
√( )2 √( )2
∂τ −∆m
∆τ = ∆m = ,
∂m m2
√( )2
0.002
= = 4.13 min
(0.022)2
τ = (45 ± 4) min.
Solution:
October, 6, 2013 7
PHY-200 Quiz 3
= 0.3090 m.
λ = (0.31 ± 0.02) m.
∆λ 0.02
= × 100 = 6.5%. (7)
λ 0.31
The uncertainty in E can be find out using Taylor series and given as,
√( )2 √ ( )2
∂E −2∆λ
∆E = ∆λ =
∂λ λ3
√( )2
−2(0.02)
= = 1.346 J.
(0.31)3
Hence we conclude,
E = (10.41 ± 1.3) J.
October, 6, 2013 8
PHY-200 Quiz 3
∆E 1.3
= × 100 = 12.5%. (8)
E 10.41
Comparing Equations (7) and (8) yields that fractional uncertainty in E is almost
double than that in the wavelength λ.
October, 6, 2013 9
Experimental Physics-1 (PHY100). Assignment
x = 200 ± 2, y = 50 ± 2, z = 20 ± 1, u = 3 ± 0.1,
where the uncertainties are independent and random. What would you give values to
the following quantities with their uncertainties?
(b) p = eu .
T = 1.936 ± .004 s,
3. The resistance of a coil is measured in ohms (Ω), and the following set of data is
obtained,
Find the best estimated value and standard error in the mean.
Find the best estimated values of length l and breadth b along with standard error in
the mean. Calculate the best estimate for area (A = lb) and its uncertainty.
l (mm) 24.25 24.26 24.22 24.28 24.24 24.25 24.22 24.26 24.23 24.24
b (mm) 50.36 50.35 50.41 50.37 50.36 50.32 50.39 50.38 50.36 50.38
T = mP + c,
where c is the temperature at which the pressure drops to zero, called the absolute zero
of temperature. A set of five measurements of temperatures T with different pressure
P is taken as given in Table (II).
Calculate the best estimate for slope and intercept using mathematical expressions.
6. Answer the following questions for the array shown below. How will you enter your
commands in Matlab.
2.1 −3.5 6.0
1.1 0.0
0.0 1.1 −6.6 2.8 3.4
b= .
2.1 0.1 0.3 −0.4 1.3
−1.4 5.1 0.0 −1.1 0.0
(b) Write down commands to extract the elements 2.1, 5.1, 0.3 and -6.6.
(c) Define a 2 × 5 matrix named ext having all elements of second and third rows.
(d) How would you access first, third and fifth entry of third row to get a row vector
of size 1 × 3?
(a) 10 !
y = 3.5−0.5x cos(6x),
z = sin(4x).
Draw graphs for both functions simultaneously on the same plot for the range −4 ≤
x ≤ 2.
y = e−0.4x sin(x),
for 0 ≤ x ≤ 4π. Draw graphs by taking 10 and 100 points in the interval. The plot
with 10 points should be a solid line joining data points in circles. Plot both graphs
simultaneously, one on top of another.
10. A student aims to find the spring constant of a spring, he loads it with various masses
m and measures the corresponding lengths l. The force acting on the spring is mg =
k(l − lo ), where lo is the unstretched length of the spring. The results are shown in
Table (III).
Mass (g) 200 300 400 500 600 700 800 900
Length (cm) 5.1 5.5 5.9 6.8 7.4 7.5 8.6 9.4
Plot a graph for the data given in Table (III), and fit that on a straight line l =
lo + (g/k)m. Make a least-squares fit to this line, and find the best estimates for the
unstretched length lo and the spring constant k. The M-file must be attached.
11. The rate at which a radioactive sample emits radiation decreases exponentially as the
the sample is depleted. To record the number of decays, a Geiger counter is placed
near the source and data is given in Table (IV).
If the sample decays exponentially, the number v(t) can be written as,
where τ is the mean life of the sample and vo is the number at time t = 0.
Plot the data, fit it to the function (1) using least-squares fitting and find the mean
life τ . Submit your M-file for function (1).
12. Suppose we directed a sinusoidal AC voltage into the computer using a data acquisition
system. The hardware acquires voltage by taking one sample in 50 ms and saves the
first 21 points. The time sampling information is stored in a row vector t with an
increment of 0.05 s. The voltage data is taken as,
Fit the data given above on a sinusoidal function V = A sin(ωt + ϕ) using least squares
fitting technique and find the best estimates of amplitude A, angular frequency ω and
phase ϕ. The M-file must be attached.
Q.No.1
1
(b) Many calculations require complicated operations such as computation of sine,
cosine, exponential or square root. In such cases the uncertainties can be calculated
by taking the partial derivative and multiplying with the uncertainty.
p = eu .
Implying,
∆p = eu ∆u,
= e3 (0.1),
= 2.01.
p = e3 = 20.08.
p = (20 ± 2)
r = x (y − z sin(u)),
= 200 (50 − (20 sin(3))),
= 97990.6
b = sin(u).
b = 0.052.
2
So,
b = (0.052 ± 0.002).
Suppose we take,
c = z b,
and its value is,
c = (20)(0.052) = 1.04.
The error in c is,
( ) √( )2 ( )2
∆c ∆z ∆b
= + ,
c z b
√( )2 ( )2
1 0.002
∆c = c + = (1.04)(0.063),
20 0.052
= 0.07.
Therefore,
c = (1.04 ± 0.07).
Now,
d = y − c.
The value of c is calculated as,
d = 50 − 1.04 = 48.96.
The uncertainty in d is,
√
∆d = (∆y)2 + (∆c)2 ,
√
= (2)2 + (0.07)2 ,
= 2.
Implies that,
d = (49 ± 2).
Now the function r can be written as,
r = x d.
The uncertainty in r is,
( ) √( )2 ( )2
∆r ∆x ∆d
= + ,
r x d
√( )2 ( )2
2 2
∆r = r + ,
200 49
= 4115.6.
3
Hence we can write,
r = (97991 ± 4116).
Q.No.2
g = 4π 2 l/T 2 ,
g = (979 ± 4) cm/s2
Q.No.3
di = xi − x̄,
4
di (Ω) (di (Ω))2
-0.01 1 × 10−4
0.013 1.69 × 10−4
-0.028 7.84 × 10−4
0.009 8.1 × 10−5
-0.012 1.44 × 10−4
-0.002 4 × 10−6
0.034 1.156 × 10−3
-0.002 4 × 10−6
The standard error, σ, can be find out using the following relationship,
√
n
σ = s
n−1
= 0.018 Ω.
Therefore, the best estimated value of R, along with its uncertainty is,
R = (4.625 ± 0.006) Ω.
There is only one significant figure in the uncertainty and the least significant digit
of the mean value has the same position as the non-zero digit of the uncertainty.
Q.No.4
5
∑
i bi
b̄ =
n
50.36 + 50.35 + 50.41 + 50.37 + 50.36 + 50.32 + 50.39 + 50.38 + 50.36 + 50.38
=
10
= 50.37 mm.
di for length (l) (di (mm))2 di for breadth (b) (di (mm))2
0 0 −0.01 1 × 10−4
0.01 1 × 10−4 −0.02 4 × 10−4
−0.03 9 × 10−4 0.04 1.6 × 10−3
0.03 9 × 10−4 0 0
−0.01 1 × 10−4 −0.01 1 × 10−4
0 0 −0.05 2.5 × 10−3
−0.03 9 × 10−4 0.02 4 × 10−4
0.01 1 × 10−4 0.01 1 × 10−4
−0.02 4 × 10−4 −0.01 1 × 10−4
−0.01 1 × 10−4 0.01 1 × 10−4
The standard error, σ, can be find out using the following relationship,
√
n
σ = s
n−1
However for the set of data measured, the standard error is,
√
10
σlength = (0.019),
10 − 1
= 0.02 mm.
√
10
σbreadth = (0.023),
10 − 1
= 0.023 mm.
6
The standard error in the mean is,
σ 0.02
σm (length) = √ = √ ,
n 10
= 0.006 ≈ 0.01 mm
0.023
σm (breadth) = √ ,
10
= 0.007 ≈ 0.01 mm
Therefore, the best estimated values of length and breadth, along with their un-
certainties are,
A = l × b,
= (24.25)(50.37),
= 1221.5 mm2 .
Therefore the best estimated value of area along with its uncertainty is,
Q.No.5
T = mP + c,
7
where m is the slope and c is the intercept.
∑
i Ti
T̄ =
n
−20 + 17 + 42 + 94 + 127
=
5
= 52 ◦ C.
Implying,
(−20(65 − 85) + 17(75 − 85) + 42(85 − 85) + 94(95 − 85) + 127(105 − 85))
m = ,
((65 − 85)2 + (75 − 85)2 + (85 − 85)2 + (95 − 85)2 + (105 − 85)2 )
3710
= ,
1000
= 3.71 (◦ C/mm of mercury).
After calculating the slope value, we can easily find out the intercept value using
the following relationship,
c = ȳ − mx̄.
Hence,
c = T̄ − mP̄ ,
= 52 − (3.71)(85),
= −263.35 ◦ C.
Q.No.6
8
(a) The size of matrix b can be find out using the Matlab command,
≫ size(b)
ans =
4 5
where 4 and 5 represents the number of rows and the number of columns of matrix
b, respectively.
(b) The following Matlab commands are used to extract different elements:
≫ b(1,3)
ans =
2.1000
≫ b(3,1)
ans =
2.1000
≫ b(4,2)
ans =
5.1000
≫ b(3,3)
ans =
0.3000
≫ b(2,3)
ans =
-6.6000
(c) The elements of second and third rows can be accessed using the command,
≫ ext=b(2:3,:)
ext =
9
(d) A row vector having first, third and fifth entry of third row can be obtained
by typing the following command in the Command Window,
≫ b(3, [1 3 5])
ans =
Q.No.7
≫ f=1;
≫ for n = 2:10
f = f *n
end
≫ k=0;
≫ for i = 1:10
k = k + 1/(i .ˆ 2)
end
Q.No.8
≫ x = -4 : 0.01 : 2 ;
≫ y1=sin(4*x);
We can plot graphs of both functions simultaneously on the same plot using the
following commands,
≫ hold on
Q.No.9
10
8
−2
−4
−6
−8
−10
−4 −3 −2 −1 0 1 2
Figure 1: Overlaid plots. The red dots represent the output of an exponential
function while the blue line corresponds to sin function.
≫ x=0:1.256:4*pi;
≫ z=exp(-0.4.*x).*sin(x);
≫ y=0:0.1256:4*pi;
≫ z1=exp(-0.4.*y).*sin(y);
≫ figure;plot(x,z,’r-o’,’MarkerFaceColor’,’r’)
≫ hold on
≫ plot(y,z1)
Q.No.10
In least square curve fitting, we need to plot the data in order to know the rela-
tionship between independent and dependent quantities. For that we type,
≫ figure;plot(m,l,’ro’)
11
0.6
0.5
0.4
0.3
0.2
0.1
−0.1
−0.2
0 2 4 6 8 10 12 14
Figure 2: An exponentially decaying function. The red line with circles is for 10
points in the given interval while blue one is for 100 points.
y = mx + c,
Once the fitting function has been defined, we can find the least squares curve
using the command,
≫ lsqcurvefit(@spring, [3 6.428e-3], m, l)
After the Matlab returns the values of the parameters, the output function is
redefined as,
≫ cfit= 3.6857+0.0061*m;
Now we plot the redefined function on the data points using the command,
≫ hold on
≫ plot(m,cfit)
Q.No.11
≫ time=[10 20 30 40 50];
12
9.5
8.5
Length (cm)
7.5
6.5
5.5
4.5
200 300 400 500 600 700 800 900
Mass (g)
(a) (b)
Figure 3: (a) An M-file for a linear function, (b) Measured data: The initial data
points are plotted in red circles while the curve fit is drawn as a solid blue line.
≫ figure;plot(time,counts,’ro’)
The function file can be accessed in the Command Window using the command,
≫ lsqcurvefit(@exponential,[410 30],time,counts)
The resolution of the best fit line can be enhance by increasing the step size. For
that we will take the independent vector as,
≫ time1=[10:0.1:50];
≫ cf=505.3005*exp(-time1./43.3921);
Now we plot the best fit line on our data plot using the following set of commands,
≫ hold on
≫ plot(time1,cf )
Q.No.12
13
450
400
350
Counts/min
300
250
200
150
10 15 20 25 30 35 40 45 50
Time (min)
(a) (b)
Figure 4: (a) An M-file for an exponentially decaying function, (b) A plot of initial
data points overlaid with curve fitted line.
≫ t=[0:0.05:1];
≫ figure;plot(t,v,’ro’)
v = Asin(ωt + ϕ).
In order to get the best values of amplitude A, angular frequency and phase, we
use least square curve fitting technique. The M-file named sinusoid is shown in
Figure (5a).
≫ lsqcurvefit(@sinusoid,[8 10 0],t,v)
≫ t1=0:0.001:1;
The fitting function having best values of unknown parameters is created as,
≫ final=7.9549*sin(10.0253*t1+0.7973);
Now the data points and high resolution curve fit is plotted using the following
commands,
≫ hold on
14
8
Voltage (V)
0
−2
−4
−6
−8
−10
0 0.2 0.4 0.6 0.8 1
Time (s)
(a) (b)
Figure 5: (a) An M-file for a sinusoidal function, (b) Acquired voltage samples:
initial data points circles whereas the curve fit is drawn as a solid line.
≫ plot(t1,final)
15