Transfer Function:
We first talk about transfer function.
Transfer function is ratio of numerator polynomial N(omega) to denominator polynomial D(omega) that has frequency as its variable. The previously learned voltage gain, current gain, transfer impedance, and transfer admittance are all transfer functions.
Those are the codes.

This is what the graph looks like.
Signals with Multiple Frequency Components
We first calculate the theoretical phase shift at different frequency.
In this lab, we will measure the response of a circuit that is applied with multiple input signals, in other words, multiple sinusoidal waves of different frequency. Another response we look at is a sinusoidal signal with a time-varying frequency, known as a sinusoidal sweep. We are going to find the magnitude response of an electrical circuit and use this information to infer the effect of the circuit on some relatively complex input signals.
In low frequency, our circuit acts like DC, which the capacitor is open, the voltage across R2 is half of Vin. In high frequency, the circuit acts like AC, which the capacitor acts like short, and voltage across R2 is 0. This means that as omega goes to 0, Vout also goes to 0. It is a low-pass filter, meaning low frequencies flows through while high frequencies are blocked.
This is our input graph. We create a custom waveform, 20(sin(1000πt)+sin(2000πt)+sin(20,000πt)) and sinusoidal sweep function. We are going to using Analog Discovery to measure Vin and Vout from the circuit.
The wave at 500 Hz.
The wave at 1000 Hz.
The wave at 10K Hz.
This shows that the output voltage and the input voltage has some phase shift.
For second part of lab, the input voltage is a sinusoidal sweep from 100Hz to 10 Khz in 20 msec:
The graph of a sweep wave. Vin and Vout rise and fall in the same rate and has no phase shift. Both output graphs are what we expected.
Summary:
Today, we learn about frequency response. The frequency response of a circuit is determined by the variation in its behavior with change in signal frequency. We can use the transfer function H(omega) to find the frequency response of a circuit. The transfer function of a circuit is the frequency dependent ratio of a phasor output N(omega) (voltage or current) to a phasor input D(omega) . We can use these equations to analyze the transfer function.