Project 3: Least-Squares Curve Fitting

Size: px
Start display at page:

Download "Project 3: Least-Squares Curve Fitting"

Transcription

1 ECE 309 Project #3 Page i Project 3: Least-Squares Curve Fitting Read the entire instructions for the project before you begin. Pay special attention to what you are asked to turn in (see pp. 6-7), including the format that is requested. Preliminary Preparation and Calculations 1. Part of this project concerns a physics experiment in which students drop an object from a roof, simulating a free-fall. Do a google search to review the assumptions for free-fall. Required equations: From basic physics, we know that the displacement (d, meters) of a moving object is given by: d = vit +.5 a t 2, where t is time (seconds), vi is the initial velocity (m/s), and a is the acceleration due to gravity (= -9.8 m/s/s). 2. Part of this project concerns an RC circuit. For the circuit below, assume that the capacitor is initially charged to V0 volts before the switch is thrown at time t = 0: + v(t) - (Note that the battery that initially charged the capacitor is not shown.) Figure 1: Source-free RC Circuit a. Use Kirchoff s current law (KCL) at the top node to write the differential equation describing the voltage, v(t), across the capacitor after the switch is thrown. Justify each step of your derivation. b. Solve your differential equation to obtain the equation for the voltage across the capacitor as it discharges. c. Recall that the time constant, for this circuit is: =. Procedure, Part 1. Least-Squares Curve Fitting for Polynomials Writing the m-file In this section we will be writing a function m-file, called pnfit, that you will be able to use to generate plots for your lab reports. This will be useful whenever the experimental data is modeled by a polynomial, say of the form: y = anx n + an-1 x n a1x + a0; Your function m-file will have inputs:

2 ECE 309 Project #3 Page ii n, the degree of the polynomial that we expect to fit the data; x, a vector of the x-components of the observed data; and y, a vector of the y-components of the observed data. and outputs ŷ, the least-squares estimate of y, as a vector of polynomial coefficients; and e 2 2 2, the sum of the squared errors e (y ŷ). Your m-file will also generate a single plot containing the experimental data points (x, y), with o s for data markers, and no line connecting the points; and a smooth plot of ŷ, the least-squares fit to the data, over the range of x-values represented in the experiment. Your m-file should also prompt the user to supply the x-axis label, the y-axis label, and the plot title. We will create a flow chart for pnfit, together in class. Testing the m-file, Part 1 Write a second m-file, called test_drive_pnfit, to test the m-file called pnfit. In this file, use polyval to generate data vectors y (for a given test vector x) for 2 known polynomials (of your choice): a 2 nd degree polynomial, say P2; call the data vectors x2_test and y2_test; and a 4 th degree polynomial, say P4; call the data vectors x4_test and y4_test. Use trial and error to choose a reasonable range of x values for P2 and P4, to ensure that you ve covered the interesting regions (where the polynomial may change directions). The purpose of test_drive_pnfit is to test the previous program, pnfit, and see if it fits the correct polynomial for each of your 2 test vectors above. (Of course it should obtain the exact coefficients doing a least-squares fit, because our test vectors are noise-free.) In the program test_drive_pnfit, call your pnfit program to find the appropriate least-squares fit polynomial for both pairs of test vectors. Keep debugging your code until you can obtain the correct least-squares fit for both test cases. Testing the m-file, Part 2 Suppose that some beginning physics students are conducting a free-fall lab experiment that requires them to drop a small steel ball from the top of a 10-storey building of height 50 meters, and measure the distance that it falls as a function of time. The students place observers from the various lab teams on different floors of the building with stop-watches, and obtain the following measured data: Table 1. Free-fall Experiment Data t, sec. d, m

3 ECE 309 Project #3 Page iii 1) Use your function m-file pnfit to generate the least-squares fit equation for the data given in Table 1, the sum of the squared errors for your best-fit, and the plot. 2) Write a very short paragraph explaining the results, from the perspective of the physics students writing their lab report. 1 Include a table as shown below to compare your calculated (experimental) values for vi and a to the theoretical values for vi and a in a free-fall, from the equation : d = vit +.5 a t 2. Parameters Theoretical Value Experimental Value % Error a vi Procedure, Part 2. Constrained Least-Squares Curve Fitting 1) Complete the separate tutorial/worksheet: Least-squares Fit, with Constraints. When you are done, ask your instructor or the TA to check your answers. 2) Note that the 2nd-degree polynomial found as the least-squares fit for the physics free-fall problem (in Procedure, Part 1) was an unconstrained quadratic of the form: d = Et 2 + Dt + C. The physical model for the physics problem was a constrained quadratic (d = vit +.5 a t 2 ) of the form: d = Et 2 + Dt. Using the techniques in the tutorial/worksheet, find the vector/matrix equation for the constrained quadratic least-squares fit of the form: d = Et 2 + Dt for the data given in Table 1. (Plug in the appropriate numerical values for the left-hand side of the equation.) = ) Make an m-file called const_pnfit to contain the MATLAB commands you use for Procedure, Part 2. This m-file should solve the vector/matrix equation (obtained in question 2 above) for the vector of E D unknowns,. According to this model, what is your constrained quadratic least-squares fit for d, and what are your experimental estimates (based on the given data) for the parameters a and vi? 1 For the physics students, the purpose of the experiment is to verify the distance equation and to validate its parameters in the case of a free-fall.

4 ECE 309 Project #3 Page iv Procedure, Part 3. Least-Squares Curve Fitting for an Exponential Function Planning the m-file First use the lecture notes provided in class to create a flow chart showing the steps required to generate a least-squares fit exponential, ŷ = ce ax, fitting a set of points {x, y}. (It will be helpful to look ahead to the next section to see what your m-file needs to do.) Writing the m-file Write a function m-file called myexpfit, to find the least-squares fit exponential, of the form ŷ = ce ax, given input vectors x and y. Your function m-file will have inputs: x, a vector of the x-components of the observed exponential data; and y, a vector of the y-components of the observed exponential data. and outputs parameters c and a. Your function should transform x to X and y to Y as described in the lecture notes; call the function pnfit 2 (passing in X, Y and n = 1, since we want a linear fit) to obtain A and B of Y = AX + B; use the appropriate equations to obtain parameters c and a. Your m-file should also generate a single plot containing the experimental data points (x, y), with o s for data markers, and no line connecting the points; and a smooth plot of ŷ, the least-squares fit to the data, over the range of x-values represented in the experiment. (You will probably want to create a vector xdense, similar to the one we did in pnfit.) Your m-file should label the x and y axis (call them x and y ), and include a grid for the plots. Testing the m-file, Part 1 Write a program called test_drive_myexpfit, designed to generate a vector x and a vector y for some known exponential function, c e ax (your choice of c, a). Then input the x and y vectors to your function myexpfit, to see if it correctly determines the c and a parameters. Keep debugging your code until your test case is successful. 2 You should first modify pnfit (call your new function pnfit2) so that it only returns the A and B values (i.e., the vector of coefficients for Y). You no longer need to compute the sum of the squared errors or do the graphs that were drawn for pnfit.

5 ECE 309 Project #3 Page v Testing the m-file, Part 2 For the RC Circuit shown in Figure 1, the capacitor is initially completely charged at time t = 0, and students took measurements of the voltage across the capacitor during its discharge phase, after the switch is thrown, for a range of time values given in milliseconds. (Note the units!) This experimental data will be available from your instructor. From your answer to preliminary calculation question 2b, you know that the discharge function is exponential. Use your m-file myexpfit to generate a plot showing experimental data (not connected by a line) and the smooth exponential least-squares fit to the data, and determine the estimated parameters of the exponential decay: V0 = ; =

6 ECE 309 Project #3 Page 1 of 7 Student name: Joshua Rothe Cover-sheet: MATLAB Project 3 Curve Fitting Preliminary Calculation Answers (handwritten for 2b; show derivation, justifying each line): 2b. KCL Diff. Eq v(t): Ic = C (dv/dt) and Ir = v/r When switch closes, Ic = Ir, thus C (dv/td) = v/r Thus, C*v(t) =(1/r) (C*r) v (t) + v(t) = V 2c. = R*C + v(t) - Figure 1: Source-free RC Circuit Procedure, Part 1: Least-Squares Fit for Polynomials Testing the m-file, Part 2: Least-squares fit equation obtained for the physics experiment (Question 1, p. 3): d = t^ t Sum of squared errors for the physics experiment: Calculated values for parameter estimates, based on experimental data: a = 9.8 vi = 0 (from Question 2, p.3) Procedure, Part 2: Curve Fitting with Constrained Polynomials Least-squares fit equation obtained for the physics experiment (Question 3, p. 4): d = x^ x Calculated values for parameter estimates, based on experimental data: a = vi = (from Question 3, p.4) Procedure, Part 3: Curve Fitting for Exponential Functions v(t) = *e^( *t) (least-squares fit for voltage in the RC Circuit) estimate for : ; estimate for V0:

7 ECE 309 Project #3 Page 2 of 7 function [y_hat,e_squared] = pnfit(n,x,y) %pnfit solves Project 3 y_hat = polyfit(x,y,n); new_y = polyval(y_hat,x); errors = (y-new_y).^2; e_squared = sum(errors); x1 = input('enter the x label: ','s'); y1 = input('enter the y label: ','s'); ptitle = input('enter the plot title: ','s'); plot(x,y,'o'); hold on plot(x,new_y); xlabel(x1),ylabel(y1),title(ptitle); grid disp('y_hat: '); disp(y_hat); disp('e_squared: '); disp(e_squared); >> test_drive_pnfit_p2 Type the name of the assignment here: Project 3, Part 2 Joshua Rothe ECE 309 Project 3, Part 2 29-Nov-2014 Enter the x label : X Enter the y label : Y Grid enabled? y/n (case sensitive!) : y Enter the plot title : Part 2 y_hat: e_squared: nd degree Y values : Part Y X

8 ECE 309 Project #3 Page 3 of 7 Procedure, Part 1 Parameters Theoretical Experimental % Error Value Value a % vi N/A Although we cannot obtain a % error value for vi (diving by zero), we can assume since it is relatively close to zero that the percentage error is similar to a, which is 8.2%. We can expect this deviation from the theoretical value of gravity's acceleration due to things such as wind resistance etc. Overall, the data followed what we expected it to follow before we conducted the experiment.

9 ECE 309 Project #3 Page 4 of 7 Worksheet: Least-squares Fit, with Constraints Column 1 consists of xi^2 values. I would delete column 2. The vector of unknowns would be x = [x^2', 0', 1'] Vector form: [1 1; 3 1; 5 1; 6 1] * [xi]' = [ ]' Quadratic least-squares fit for the data is x^ [x21 x11 0; x22 x12 0; x23 x13 0; x2m x1m 0] * [x1 x2 xm] = [y1 y2 ym] Solving for constrained least-squares fit: >> A = [1 1; 4 2; 16 4; 25 5] A = >> b = [ ]' b = >> x = ((A'*A)^-1)*(A'*b) x = Y = x^ x

10 ECE 309 Project #3 Page 5 of 7 Procedure Part 2. Constrained Least-Squares Curve Fitting % Program const_pnfit % Program solves project 3, procedure part 2, constrained least-squares % curve fitting header_rothe; A = [0 0; ; ; ; ; ]; b = [ ]'; x = ((A'*A)^-1)*(A'*b) >> const_pnfit Type the name of the assignment here: Procedure 2 Joshua Rothe ECE 309 Procedure 2 01-Dec-2014 x = Least-squares fit is y = x^ x. Experimental estimates are a = (bringing the 9.8 m/s^2 up to , close to the theoretical) and vi = (not too far off from 0).

11 ECE 309 Project #3 Page 6 of 7 Procedure Part 3 Initial data v Logarithmic scale for y input v Polyfit to obtain least-squares equation, first degree v Exponential of the b value becomes c v Plot: x axis is x, y axis is c*e^(a*x)

12 ECE 309 Project #3 Page 7 of 7 function [ c,a ] = myexpfit( x,y ) %myexpfit Function solves project 3, procedure 3 % Function finds least-squares fit exponential X = x; Y = log(y); % sets up x and y y_hat = polyfit(x,y,1); a = y_hat(1,1); b = y_hat(1,2); c = exp(b); % sets up exponential values labelx = input('enter x label: ','s'); labely = input('enter y label: ','s'); ptitle = input('enter plot title: ','s'); plot(x,y,'o') hold on plot(x,c.*exp(a.*x)) xlabel(labelx),ylabel(labely),title(ptitle) grid disp('a ='); disp(a); disp('c = '); disp(c); end % After importing the data: >> time = timems.*.001; >> myexpfit( time, vvolts ); Enter x label: time Enter y label: volts Enter plot title: Part 3 a = c = Part volts time

Physics 248, Spring 2009 Lab 7: Capacitors and RC-Decay

Physics 248, Spring 2009 Lab 7: Capacitors and RC-Decay Name Section Physics 248, Spring 2009 Lab 7: Capacitors and RC-Decay Your TA will use this sheet to score your lab. It is to be turned in at the end of lab. To receive full credit you must use complete

More information

Name: Lab Partner: Section:

Name: Lab Partner: Section: Chapter 6 Capacitors and RC Circuits Name: Lab Partner: Section: 6.1 Purpose The purpose of this experiment is to investigate the physics of capacitors in circuits. The charging and discharging of a capacitor

More information

PHYSICS 171 UNIVERSITY PHYSICS LAB II. Experiment 6. Transient Response of An RC Circuit

PHYSICS 171 UNIVERSITY PHYSICS LAB II. Experiment 6. Transient Response of An RC Circuit PHYSICS 171 UNIVERSITY PHYSICS LAB II Experiment 6 Transient Response of An RC Circuit Equipment: Supplies: Function Generator, Dual Trace Oscilloscope.002 Microfarad, 0.1 Microfarad capacitors; 1 Kilohm,

More information

Capacitors GOAL. EQUIPMENT. CapacitorDecay.cmbl 1. Building a Capacitor

Capacitors GOAL. EQUIPMENT. CapacitorDecay.cmbl 1. Building a Capacitor PHYSICS EXPERIMENTS 133 Capacitor 1 Capacitors GOAL. To measure capacitance with a digital multimeter. To make a simple capacitor. To determine and/or apply the rules for finding the equivalent capacitance

More information

Laboratory Worksheet Experiment NE04 - RC Circuit Department of Physics The University of Hong Kong. Name: Student ID: Date:

Laboratory Worksheet Experiment NE04 - RC Circuit Department of Physics The University of Hong Kong. Name: Student ID: Date: PHYS1050 / PHYS1250 Laboratory Worksheet Experiment Department of Physics The University of Hong Kong Ref. (Staff Use) Name: Student ID: Date: Draw a schematic diagram of the charging RC circuit with ammeter

More information

first name (print) last name (print) brock id (ab17cd) (lab date)

first name (print) last name (print) brock id (ab17cd) (lab date) (ta initials) first name (print) last name (print) brock id (ab17cd) (lab date) Experiment 1 Capacitance In this Experiment you will learn the relationship between the voltage and charge stored on a capacitor;

More information

Dr. Julie J. Nazareth

Dr. Julie J. Nazareth Name: Dr. Julie J. Nazareth Lab Partner(s): Physics: 133L Date lab performed: Section: Capacitors Parts A & B: Measurement of capacitance single, series, and parallel combinations Table 1: Voltage and

More information

Direct-Current Circuits. Physics 231 Lecture 6-1

Direct-Current Circuits. Physics 231 Lecture 6-1 Direct-Current Circuits Physics 231 Lecture 6-1 esistors in Series and Parallel As with capacitors, resistors are often in series and parallel configurations in circuits Series Parallel The question then

More information

Chapter 28. Direct Current Circuits

Chapter 28. Direct Current Circuits Chapter 28 Direct Current Circuits Circuit Analysis Simple electric circuits may contain batteries, resistors, and capacitors in various combinations. For some circuits, analysis may consist of combining

More information

Complete all the identification fields below or 10% of the lab value will be deduced from your final mark for this lab.

Complete all the identification fields below or 10% of the lab value will be deduced from your final mark for this lab. Simple circuits 3 hr Identification page Instructions: Print this page and the following ones before your lab session to prepare your lab report. Staple them together with your graphs at the end. If you

More information

Lab 10: DC RC circuits

Lab 10: DC RC circuits Name: Lab 10: DC RC circuits Group Members: Date: TA s Name: Objectives: 1. To understand current and voltage characteristics of a DC RC circuit 2. To understand the effect of the RC time constant Apparatus:

More information

Physics 220: Worksheet 7

Physics 220: Worksheet 7 (1 A resistor R 1 =10 is connected in series with a resistor R 2 =100. A current I=0.1 A is present through the circuit. What is the power radiated in each resistor and also in the total circuit? (2 A

More information

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer Michael W. Marcellin Please follow all rules, procedures and report requirements as described at the beginning of the document entitled ECE 220 Laboratory

More information

The RC Circuit INTRODUCTION. Part 1: Capacitor Discharging Through a Resistor. Part 2: The Series RC Circuit and the Oscilloscope

The RC Circuit INTRODUCTION. Part 1: Capacitor Discharging Through a Resistor. Part 2: The Series RC Circuit and the Oscilloscope The RC Circuit INTRODUCTION The goal in this lab is to observe the time-varying voltages in several simple circuits involving a capacitor and resistor. In the first part, you will use very simple tools

More information

2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM FREE-RESPONSE QUESTIONS

2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM FREE-RESPONSE QUESTIONS 2005 AP PHYSICS C: ELECTRICITY AND MAGNETISM In the circuit shown above, resistors 1 and 2 of resistance R 1 and R 2, respectively, and an inductor of inductance L are connected to a battery of emf e and

More information

Class #12: Experiment The Exponential Function in Circuits, Pt 1

Class #12: Experiment The Exponential Function in Circuits, Pt 1 Class #12: Experiment The Exponential Function in Circuits, Pt 1 Purpose: The objective of this experiment is to begin to become familiar with the properties and uses of the exponential function in circuits

More information

Electric Circuits. Overview. Hani Mehrpouyan,

Electric Circuits. Overview. Hani Mehrpouyan, Electric Circuits Hani Mehrpouyan, Department of Electrical and Computer Engineering, Lecture 15 (First Order Circuits) Nov 16 th, 2015 Hani Mehrpouyan (hani.mehr@ieee.org) Boise State c 2015 1 1 Overview

More information

DEPARTMENT OF COMPUTER ENGINEERING UNIVERSITY OF LAHORE

DEPARTMENT OF COMPUTER ENGINEERING UNIVERSITY OF LAHORE DEPARTMENT OF COMPUTER ENGINEERING UNIVERSITY OF LAHORE NAME. Section 1 2 3 UNIVERSITY OF LAHORE Department of Computer engineering Linear Circuit Analysis Laboratory Manual 2 Compiled by Engr. Ahmad Bilal

More information

Physics 116A Notes Fall 2004

Physics 116A Notes Fall 2004 Physics 116A Notes Fall 2004 David E. Pellett Draft v.0.9 Notes Copyright 2004 David E. Pellett unless stated otherwise. References: Text for course: Fundamentals of Electrical Engineering, second edition,

More information

Temperature measurement

Temperature measurement Luleå University of Technology Johan Carlson Last revision: July 22, 2009 Measurement Technology and Uncertainty Analysis - E7021E Lab 3 Temperature measurement Introduction In this lab you are given a

More information

Circuits Gustav Robert Kirchhoff 12 March October 1887

Circuits Gustav Robert Kirchhoff 12 March October 1887 Welcome Back to Physics 1308 Circuits Gustav Robert Kirchhoff 12 March 1824 17 October 1887 Announcements Assignments for Thursday, October 18th: - Reading: Chapter 28.1-28.2, 28.4 - Watch Video: https://youtu.be/39vkt4cc5nu

More information

The RC Time Constant

The RC Time Constant The RC Time Constant Objectives When a direct-current source of emf is suddenly placed in series with a capacitor and a resistor, there is current in the circuit for whatever time it takes to fully charge

More information

Chapter 21. Ac Circuits

Chapter 21. Ac Circuits Chapter 21 Ac Circuits AC current Transformer Transforms AC voltage UP or DOWN Historical basis for AC Grid your use George Westinghouse (AC) vs Edison (DC) Losses due to resistance in wire and eddy currents

More information

Lab 3 Acceleration. What You Need To Know: Physics 211 Lab

Lab 3 Acceleration. What You Need To Know: Physics 211 Lab b Lab 3 Acceleration Physics 211 Lab What You Need To Know: The Physics In the previous lab you learned that the velocity of an object can be determined by finding the slope of the object s position vs.

More information

ENERGY AND TIME CONSTANTS IN RC CIRCUITS By: Iwana Loveu Student No Lab Section: 0003 Date: February 8, 2004

ENERGY AND TIME CONSTANTS IN RC CIRCUITS By: Iwana Loveu Student No Lab Section: 0003 Date: February 8, 2004 ENERGY AND TIME CONSTANTS IN RC CIRCUITS By: Iwana Loveu Student No. 416 614 5543 Lab Section: 0003 Date: February 8, 2004 Abstract: Two charged conductors consisting of equal and opposite charges forms

More information

Practical 1 RC Circuits

Practical 1 RC Circuits Objectives Practical 1 Circuits 1) Observe and qualitatively describe the charging and discharging (decay) of the voltage on a capacitor. 2) Graphically determine the time constant for the decay, τ =.

More information

EE292: Fundamentals of ECE

EE292: Fundamentals of ECE EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 14 121011 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Review Steady-State Analysis RC Circuits RL Circuits 3 DC Steady-State

More information

5-Sep-15 PHYS101-2 GRAPHING

5-Sep-15 PHYS101-2 GRAPHING GRAPHING Objectives 1- To plot and analyze a graph manually and using Microsoft Excel. 2- To find constants from a nonlinear relation. Exercise 1 - Using Excel to plot a graph Suppose you have measured

More information

Transient response of RC and RL circuits ENGR 40M lecture notes July 26, 2017 Chuan-Zheng Lee, Stanford University

Transient response of RC and RL circuits ENGR 40M lecture notes July 26, 2017 Chuan-Zheng Lee, Stanford University Transient response of C and L circuits ENG 40M lecture notes July 26, 2017 Chuan-Zheng Lee, Stanford University esistor capacitor (C) and resistor inductor (L) circuits are the two types of first-order

More information

Lab 08 Capacitors 2. Figure 2 Series RC circuit with SPDT switch to charge and discharge capacitor.

Lab 08 Capacitors 2. Figure 2 Series RC circuit with SPDT switch to charge and discharge capacitor. Lab 08: Capacitors Last edited March 5, 2018 Learning Objectives: 1. Understand the short-term and long-term behavior of circuits containing capacitors. 2. Understand the mathematical relationship between

More information

LABORATORY NUMBER 9 STATISTICAL ANALYSIS OF DATA

LABORATORY NUMBER 9 STATISTICAL ANALYSIS OF DATA LABORATORY NUMBER 9 STATISTICAL ANALYSIS OF DATA 1.0 INTRODUCTION The purpose of this laboratory is to introduce the student to the use of statistics to analyze data. Using the data acquisition system

More information

RC, RL, and LCR Circuits

RC, RL, and LCR Circuits RC, RL, and LCR Circuits EK307 Lab Note: This is a two week lab. Most students complete part A in week one and part B in week two. Introduction: Inductors and capacitors are energy storage devices. They

More information

Lab Experiment 2: Performance of First order and second order systems

Lab Experiment 2: Performance of First order and second order systems Lab Experiment 2: Performance of First order and second order systems Objective: The objective of this exercise will be to study the performance characteristics of first and second order systems using

More information

Prelim Revision. Questions and Answers. Electricity

Prelim Revision. Questions and Answers. Electricity Prelim Revision Questions and Answers Electricity SECTION A Answer questions on the answer sheet 8. Specimen Paper The diagram shows an 8V supply connected to two lamps. The supply has negligible internal

More information

Switch + R. ower upply. Voltmete. Capacitor. Goals. Introduction

Switch + R. ower upply. Voltmete. Capacitor. Goals. Introduction Lab 6. Switch RC Circuits ower upply Goals To appreciate the capacitor as a charge storage device. To measure the voltage across a capacitor as it discharges through a resistor, and to compare + the result

More information

Antiderivatives. Definition A function, F, is said to be an antiderivative of a function, f, on an interval, I, if. F x f x for all x I.

Antiderivatives. Definition A function, F, is said to be an antiderivative of a function, f, on an interval, I, if. F x f x for all x I. Antiderivatives Definition A function, F, is said to be an antiderivative of a function, f, on an interval, I, if F x f x for all x I. Theorem If F is an antiderivative of f on I, then every function of

More information

RC Circuit Lab - Discovery PSI Physics Capacitors and Resistors

RC Circuit Lab - Discovery PSI Physics Capacitors and Resistors 1 RC Circuit Lab - Discovery PSI Physics Capacitors and Resistors Name Date Period Purpose The purpose of this lab will be to determine how capacitors behave in R-C circuits. The manner in which capacitors

More information

2018 AP PHYSICS 1 FREE-RESPONSE QUESTIONS. PHYSICS 1 Section II 1 Questions Time 25 minutes

2018 AP PHYSICS 1 FREE-RESPONSE QUESTIONS. PHYSICS 1 Section II 1 Questions Time 25 minutes 2018 AP FREE-RESPONSE QUESTIONS Time 25 minutes Directions: Question 1 is a long free-response question that requires about 25 minutes to answer and is worth 12 points. Show your work for each part in

More information

Laboratory 7: Charging and Discharging a Capacitor Prelab

Laboratory 7: Charging and Discharging a Capacitor Prelab Phys 132L Fall 2018 Laboratory 7: Charging and Discharging a Capacitor Prelab Consider a capacitor with capacitance C connected in series to a resistor with resistance R as shown in Fig. 1. Theory predicts

More information

PHY221 Lab 2 - Experiencing Acceleration: Motion with constant acceleration; Logger Pro fits to displacement-time graphs

PHY221 Lab 2 - Experiencing Acceleration: Motion with constant acceleration; Logger Pro fits to displacement-time graphs Page 1 PHY221 Lab 2 - Experiencing Acceleration: Motion with constant acceleration; Logger Pro fits to displacement-time graphs Print Your Name Print Your Partners' Names You will return this handout to

More information

Ch 28-DC Circuits! 1.) EMF & Terminal Voltage! 9.0 V 8.7 V 8.7 V. V =! " Ir. Terminal Open circuit internal! voltage voltage (emf) resistance" 2.

Ch 28-DC Circuits! 1.) EMF & Terminal Voltage! 9.0 V 8.7 V 8.7 V. V =!  Ir. Terminal Open circuit internal! voltage voltage (emf) resistance 2. Ch 28-DC Circuits! 1.) EMF & Terminal Voltage! 9.0 V 8.7 V 8.7 V V =! " Ir Terminal Open circuit internal! voltage voltage (emf) resistance" 2.) Resistors in series! One of the bits of nastiness about

More information

Pre-Lab Quiz / PHYS 224. R-C Circuits. Your Name Lab Section

Pre-Lab Quiz / PHYS 224. R-C Circuits. Your Name Lab Section Pre-Lab Quiz / PHYS 224 R-C Circuits Your Name Lab Section 1. What do we investigate in this lab? 2. For the R-C circuit shown in Figure 1 on Page 3, RR = 100 ΩΩ and CC = 1.00 FF. What is the time constant

More information

Geology Geomath Computer Lab Quadratics and Settling Velocities

Geology Geomath Computer Lab Quadratics and Settling Velocities Geology 351 - Geomath Computer Lab Quadratics and Settling Velocities In Chapter 3 of Mathematics: A simple tool for geologists, Waltham takes us through a brief review of quadratic equations and their

More information

Solutions to Systems of Linear Equations

Solutions to Systems of Linear Equations Solutions to Systems of Linear Equations 5 Overview In this chapter we studying the solution of sets of simultaneous linear equations using matrix methods. The first section considers the graphical interpretation

More information

PHYSICS 171. Experiment 3. Kirchhoff's Laws. Three resistors (Nominally: 1 Kilohm, 2 Kilohm, 3 Kilohm).

PHYSICS 171. Experiment 3. Kirchhoff's Laws. Three resistors (Nominally: 1 Kilohm, 2 Kilohm, 3 Kilohm). PHYSICS 171 Experiment 3 Kirchhoff's Laws Equipment: Supplies: Digital Multimeter, Power Supply (0-20 V.). Three resistors (Nominally: 1 Kilohm, 2 Kilohm, 3 Kilohm). A. Kirchhoff's Loop Law Suppose that

More information

PHYS 1111L - Introductory Physics Laboratory I

PHYS 1111L - Introductory Physics Laboratory I PHYS 1111L - Introductory Physics Laboratory I Laboratory Advanced Sheet Acceleration Due to Gravity 1. Objectives. The objectives of this laboratory are a. To measure the local value of the acceleration

More information

2 Background: Fourier Series Analysis and Synthesis

2 Background: Fourier Series Analysis and Synthesis Signal Processing First Lab 15: Fourier Series Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section before

More information

Experiment 2. F r e e F a l l

Experiment 2. F r e e F a l l Suggested Reading for this Lab Experiment F r e e F a l l Taylor, Section.6, and standard deviation rule in Taylor handout. Review Chapters 3 & 4, Read Sections 8.1-8.6. You will also need some procedures

More information

Exercise 1: RC Time Constants

Exercise 1: RC Time Constants Exercise 1: RC EXERCISE OBJECTIVE When you have completed this exercise, you will be able to determine the time constant of an RC circuit by using calculated and measured values. You will verify your results

More information

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction Switch Lab 9. Circuits ower upply Goals + + R 5 V Capacitor V To appreciate the capacitor as a charge storage device. To measure the voltage across a capacitor as it discharges through a resistor, and

More information

1. (10 points) Find the general solution to the following second-order differential equation:

1. (10 points) Find the general solution to the following second-order differential equation: Math 307A, Winter 014 Midterm Solutions Page 1 of 8 1. (10 points) Find the general solution to the following second-order differential equation: 4y 1y + 9y = 9t. To find the general solution to this nonhomogeneous

More information

Name: Date: Partners: LAB 2: ACCELERATED MOTION

Name: Date: Partners: LAB 2: ACCELERATED MOTION Name: Date: Partners: LAB 2: ACCELERATED MOTION OBJECTIVES After completing this lab you should be able to: Describe motion of an object from a velocitytime graph Draw the velocitytime graph of an object

More information

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction Switch Lab 6. Circuits ower upply Goals + + R 5 V Capacitor V To appreciate the capacitor as a charge storage device. To measure the voltage across a capacitor as it discharges through a resistor, and

More information

Lab 6. RC Circuits. Switch R 5 V. ower upply. Voltmete. Capacitor. Goals. Introduction

Lab 6. RC Circuits. Switch R 5 V. ower upply. Voltmete. Capacitor. Goals. Introduction Switch ower upply Lab 6. RC Circuits + + R 5 V Goals Capacitor V To appreciate the capacitor as a charge storage device. To measure the voltage across a capacitor as it discharges through a resistor, and

More information

Coulomb s constant k = 9x10 9 N m 2 /C 2

Coulomb s constant k = 9x10 9 N m 2 /C 2 1 Part 2: Electric Potential 2.1: Potential (Voltage) & Potential Energy q 2 Potential Energy of Point Charges Symbol U mks units [Joules = J] q 1 r Two point charges share an electric potential energy

More information

Figure 1: Capacitor circuit

Figure 1: Capacitor circuit Capacitors INTRODUCTION The basic function of a capacitor 1 is to store charge and thereby electrical energy. This energy can be retrieved at a later time for a variety of uses. Often, multiple capacitors

More information

Experiment Guide for RC Circuits

Experiment Guide for RC Circuits Guide-P1 Experiment Guide for RC Circuits I. Introduction 1. Capacitors A capacitor is a passive electronic component that stores energy in the form of an electrostatic field. The unit of capacitance is

More information

PHYS 2211L - Principles of Physics Laboratory I

PHYS 2211L - Principles of Physics Laboratory I PHYS 2211L - Principles of Physics Laboratory I Laboratory Advanced Sheet Acceleration Due to Gravity 1. Objectives. The objectives of this laboratory are a. To measure the local value of the acceleration

More information

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction

Switch. R 5 V Capacitor. ower upply. Voltmete. Goals. Introduction Switch Lab 6. Circuits ower upply Goals + + R 5 V Capacitor V To appreciate the capacitor as a charge storage device. To measure the voltage across a capacitor as it discharges through a resistor, and

More information

Electrical Circuits (2)

Electrical Circuits (2) Electrical Circuits (2) Lecture 7 Transient Analysis Dr.Eng. Basem ElHalawany Extra Reference for this Lecture Chapter 16 Schaum's Outline Of Theory And Problems Of Electric Circuits https://archive.org/details/theoryandproblemsofelectriccircuits

More information

Experiment P43: RC Circuit (Power Amplifier, Voltage Sensor)

Experiment P43: RC Circuit (Power Amplifier, Voltage Sensor) PASCO scientific Vol. 2 Physics Lab Manual: P43-1 Experiment P43: (Power Amplifier, Voltage Sensor) Concept Time SW Interface Macintosh file Windows file circuits 30 m 700 P43 P43_RCCI.SWS EQUIPMENT NEEDED

More information

Lab 6: Capacitors and Resistor-Capacitor Circuits Phy208 Spr 2008 Name Section

Lab 6: Capacitors and Resistor-Capacitor Circuits Phy208 Spr 2008 Name Section : Capacitors and Resistor-Capacitor Circuits Phy208 Spr 2008 Name Section Your TA will use this sheet to score your lab. It is to be turned in at the end of lab. You must use complete sentences and clearly

More information

farads or 10 µf. The letter indicates the part tolerance (how close should the actual value be to the marking).

farads or 10 µf. The letter indicates the part tolerance (how close should the actual value be to the marking). p1 EE1050/60 Capacitors Lab University of Utah Electrical Engineering Department EE1050/1060 Capacitors A. Stolp, 10/4/99 rev 3/17/01 Objectives 1.) Observe charging and discharging of a capacitor. 2.)

More information

Kirchhoff s Rules and RC Circuits

Kirchhoff s Rules and RC Circuits PHYSICS II LAB 5 SP212 Kirchhoff s Rules and RC Circuits Pages 10 11 are Appendixes added for extra information. Pages 1 9 only are the Lab instructions. I. Introduction A. Today s Lab will investigate

More information

Electric Potential Energy and Electric Potential

Electric Potential Energy and Electric Potential Name: Lab 5: Electric Potential Energy and Electric Potential Group Members: Date: TA s Name: Objectives 1. To understand the electric potential of a point charge. 2. To understand the electric potential

More information

Chapter 19 Lecture Notes

Chapter 19 Lecture Notes Chapter 19 Lecture Notes Physics 2424 - Strauss Formulas: R S = R 1 + R 2 +... C P = C 1 + C 2 +... 1/R P = 1/R 1 + 1/R 2 +... 1/C S = 1/C 1 + 1/C 2 +... q = q 0 [1-e -t/(rc) ] q = q 0 e -t/(rc τ = RC

More information

Lab 4 RC Circuits. Name. Partner s Name. I. Introduction/Theory

Lab 4 RC Circuits. Name. Partner s Name. I. Introduction/Theory Lab 4 RC Circuits Name Partner s Name I. Introduction/Theory Consider a circuit such as that in Figure 1, in which a potential difference is applied to the series combination of a resistor and a capacitor.

More information

AP Physics C: Electricity and Magnetism

AP Physics C: Electricity and Magnetism 2018 AP Physics C: Electricity and Magnetism Sample Student Responses and Scoring Commentary Inside: Free Response Question 2 RR Scoring Guideline RR Student Samples RR Scoring Commentary 2018 The College

More information

Calendar Update Energy of Charges Intro to Circuits Ohm s Law Analog Discovery MATLAB What s next?

Calendar Update Energy of Charges Intro to Circuits Ohm s Law Analog Discovery MATLAB What s next? Calendar Update Energy of Charges Intro to Circuits Ohm s Law Analog Discovery MATLAB What s next? Calendar Update http://www.ece.utep.edu/courses/web1305/ee1305/reso urces.html P2 FOLLOW YOUR PROBLEM

More information

Circuits. David J. Starling Penn State Hazleton PHYS 212

Circuits. David J. Starling Penn State Hazleton PHYS 212 Invention is the most important product of man s creative brain. The ultimate purpose is the complete mastery of mind over the material world, the harnessing of human nature to human needs. - Nikola Tesla

More information

Topic 4. The CMOS Inverter

Topic 4. The CMOS Inverter Topic 4 The CMOS Inverter Peter Cheung Department of Electrical & Electronic Engineering Imperial College London URL: www.ee.ic.ac.uk/pcheung/ E-mail: p.cheung@ic.ac.uk Topic 4-1 Noise in Digital Integrated

More information

PHYS 1102 EXAM - II. SECTION: (Circle one) 001 (TH 9:30 AM to 10:45AM) 002 (TH 3:30 PM to 4:45 PM) You have 1 hr 45 minutes to complete the test

PHYS 1102 EXAM - II. SECTION: (Circle one) 001 (TH 9:30 AM to 10:45AM) 002 (TH 3:30 PM to 4:45 PM) You have 1 hr 45 minutes to complete the test PHYS 1102 EXAM - II SECTION: (Circle one) 001 (TH 9:30 AM to 10:45AM) 002 (TH 3:30 PM to 4:45 PM) Your Name: Student ID: You have 1 hr 45 minutes to complete the test PLEASE DO NOT START TILL YOU ARE INSTRUCTED

More information

Matlab Sheet 4. Conditional Statements and Loops

Matlab Sheet 4. Conditional Statements and Loops Matlab Sheet 4 Conditional Statements and Loops 1. It is desired to compute the sum of the first 10 terms of the series 14k 20k 2 + 5k. k = 1,2,, Write and run the program to calculate the sum. 2. Create

More information

To receive full credit, you must show all your work (including steps taken, calculations, and formulas used).

To receive full credit, you must show all your work (including steps taken, calculations, and formulas used). Page 1 Score Problem 1: (35 pts) Problem 2: (25 pts) Problem 3: (25 pts) Problem 4: (25 pts) Problem 5: (15 pts) TOTAL: (125 pts) To receive full credit, you must show all your work (including steps taken,

More information

EE 40: Introduction to Microelectronic Circuits Spring 2008: Midterm 2

EE 40: Introduction to Microelectronic Circuits Spring 2008: Midterm 2 EE 4: Introduction to Microelectronic Circuits Spring 8: Midterm Venkat Anantharam 3/9/8 Total Time Allotted : min Total Points:. This is a closed book exam. However, you are allowed to bring two pages

More information

Lab 5 - Capacitors and RC Circuits

Lab 5 - Capacitors and RC Circuits Lab 5 Capacitors and RC Circuits L51 Name Date Partners Lab 5 Capacitors and RC Circuits OBJECTIVES To define capacitance and to learn to measure it with a digital multimeter. To explore how the capacitance

More information

Purpose: Materials: WARNING! Section: Partner 2: Partner 1:

Purpose: Materials: WARNING! Section: Partner 2: Partner 1: Partner 1: Partner 2: Section: PLEASE NOTE: You will need this particular lab report later in the semester again for the homework of the Rolling Motion Experiment. When you get back this graded report,

More information

Math 315: Differential Equations Lecture Notes Patrick Torres

Math 315: Differential Equations Lecture Notes Patrick Torres Introduction What is a Differential Equation? A differential equation (DE) is an equation that relates a function (usually unknown) to its own derivatives. Example 1: The equation + y3 unknown function,

More information

Herefordshire College of Technology Center Number Student:

Herefordshire College of Technology Center Number Student: Herefordshire College of Technology Center Number 024150 Course: : BTEC Level 3 Subsidiary Diploma in Engineering / Diploma in Electrical/Electronic Engineering Student: Unit/s: 6 Electrical & Electronic

More information

b) Connect the oscilloscope across the potentiometer that is on the breadboard. Your instructor will draw the circuit diagram on the board.

b) Connect the oscilloscope across the potentiometer that is on the breadboard. Your instructor will draw the circuit diagram on the board. Geiger Counter Experiments and The Statistics of Nuclear Decay Using a Geiger Mueller tube, there are a number of experiments we can do. In the classroom there are two different types of Geiger Counters:

More information

Chapter 26 Examples : DC Circuits Key concepts:

Chapter 26 Examples : DC Circuits Key concepts: Chapter 26 Examples : DC Circuits Key concepts: Internal resistance : battery consists of some idealized source of voltage (called the electromotive force, or EMF, which uses the symbol ξ) and an effective

More information

Non-Linear Regression

Non-Linear Regression Non-Linear Regression Recall that linear regression is a technique for finding the equation of the line of best fit (LOBF) when two variables have a linear association (i.e. changes in one variable tend

More information

Investigating Springs (Simple Harmonic Motion)

Investigating Springs (Simple Harmonic Motion) Investigating Springs (Simple Harmonic Motion) INTRODUCTION The purpose of this lab is to study the well-known force exerted by a spring The force, as given by Hooke s Law, is a function of the amount

More information

Tactics Box 23.1 Using Kirchhoff's Loop Law

Tactics Box 23.1 Using Kirchhoff's Loop Law PH203 Chapter 23 solutions Tactics Box 231 Using Kirchhoff's Loop Law Description: Knight/Jones/Field Tactics Box 231 Using Kirchhoff s loop law is illustrated Learning Goal: To practice Tactics Box 231

More information

Companion. Jeffrey E. Jones

Companion. Jeffrey E. Jones MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.

More information

EE292: Fundamentals of ECE

EE292: Fundamentals of ECE EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 4 120906 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Review Voltage Divider Current Divider Node-Voltage Analysis 3 Network Analysis

More information

SPECIMEN. All items required by teachers and candidates for this task are included in this pack.

SPECIMEN. All items required by teachers and candidates for this task are included in this pack. Advanced GCE PHYSICS A Unit G486: Practical Skills in Physics 2: Quantitative Task Specimen Task For use from September 2008 to June 2009. G486 All items required by teachers and candidates for this task

More information

Laboratory 3 Measuring Capacitor Discharge with the MicroBLIP

Laboratory 3 Measuring Capacitor Discharge with the MicroBLIP Laboratory 3 page 1 of 6 Laboratory 3 Measuring Capacitor Discharge with the MicroBLIP Introduction In this lab, you will use the MicroBLIP in its Data Acquisition Mode to sample the voltage over time

More information

Chapter 6. Answers to examination-style questions. Answers Marks Examiner s tips

Chapter 6. Answers to examination-style questions. Answers Marks Examiner s tips (a) Taking natural logs on both sides of V = V o e t/c gives ln V = ln V o + ln (e t/cr ) As ln (e t/cr ) = t CR then ln V = ln V o t CR = a bt hence a = ln V o and b = CR (b) (i) t/s 20 240 270 300 mean.427.233.033

More information

AP Physics C: Electricity and Magnetism

AP Physics C: Electricity and Magnetism 2017 AP Physics C: Electricity and Magnetism Sample Student Responses and Scoring Commentary Inside: RR Free Response Question 2 RR Scoring Guideline RR Student Samples RR Scoring Commentary 2017 The College

More information

Lab E3: The Wheatstone Bridge

Lab E3: The Wheatstone Bridge E3.1 Lab E3: The Wheatstone Bridge Introduction The Wheatstone bridge is a circuit used to compare an unknown resistance with a known resistance. The bridge is commonly used in control circuits. For instance,

More information

Chapter 8. Capacitors. Charging a capacitor

Chapter 8. Capacitors. Charging a capacitor Chapter 8 Capacitors You can store energy as potential energy by pulling a bowstring, stretching a spring, compressing a gas, or lifting a book. You can also store energy as potential energy in an electric

More information

Merrily we roll along

Merrily we roll along Merrily we roll along Name Period Date Lab partners Overview Measuring motion of freely falling objects is difficult because they acclerate so fast. The speed increases by 9.8 m/s every second, so Galileo

More information

Driven Harmonic Oscillator

Driven Harmonic Oscillator Driven Harmonic Oscillator Physics 6B Lab Experiment 1 APPARATUS Computer and interface Mechanical vibrator and spring holder Stands, etc. to hold vibrator Motion sensor C-209 spring Weight holder and

More information

To study the motion of an object under the influence

To study the motion of an object under the influence L A B 3 FALLING OBJECTS First and Second Derivatives To study the motion of an object under the influence of gravity, we need equipment to track the motion of the object. We can use calculus to analyze

More information

Capacitance Measurement

Capacitance Measurement Overview The goal of this two-week laboratory is to develop a procedure to accurately measure a capacitance. In the first lab session, you will explore methods to measure capacitance, and their uncertainties.

More information

7/06 Electric Fields and Energy

7/06 Electric Fields and Energy Part ASome standard electric field and potential configurations About this lab: Electric fields are created by electric charges and exert force on charges. Electric potential gives an alternative description.

More information

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB OBJECT: To study the discharging of a capacitor and determine the time constant for a simple circuit. APPARATUS: Capacitor (about 24 μf), two resistors (about

More information

Problem Weight Total 100

Problem Weight Total 100 EE 350 Problem Set 3 Cover Sheet Fall 2016 Last Name (Print): First Name (Print): ID number (Last 4 digits): Section: Submission deadlines: Turn in the written solutions by 4:00 pm on Tuesday September

More information

Louisiana State University Physics 2102, Exam 2, March 5th, 2009.

Louisiana State University Physics 2102, Exam 2, March 5th, 2009. PRINT Your Name: Instructor: Louisiana State University Physics 2102, Exam 2, March 5th, 2009. Please be sure to PRINT your name and class instructor above. The test consists of 4 questions (multiple choice),

More information