The Standard Formula for Sinusoidal Function in AC Circuits

When you hook up a Siglent or Rigol oscilloscope to a mains isolation transformer or a function generator, the waveform you see is governed by a single, foundational equation. The general formula for a sinusoidal function describing an alternating voltage or current over time is:

v(t) = Vp sin(2πft + φ) + VDC

Alternatively, using angular frequency (ω), the formula is written as v(t) = Vp sin(ωt + φ) + VDC. This equation is the bedrock of AC circuit theory, signal processing, and power electronics.

Symbol Definition Table

SymbolParameterStandard UnitTypical Bench Measurement
v(t)Instantaneous value at time tVolts (V) or Amps (A)Read directly from scope crosshairs
tTimeSeconds (s)Usually measured in milliseconds (ms) or microseconds (µs)
VpPeak Amplitude (Zero-to-Peak)Volts (V) or Amps (A)Half of the peak-to-peak (Vpp) reading
fCyclic FrequencyHertz (Hz)60 Hz (US Mains), 50 Hz (EU Mains), 1 kHz (Audio test)
ωAngular Frequency (2πf)Radians per second (rad/s)~377 rad/s for 60 Hz mains
φPhase Angle / Phase ShiftRadians (rad) or Degrees (°)Measured as time delay between two channels
VDCDC OffsetVolts (V) or Amps (A)Vertical shift from the zero-volt baseline

When This Formula Applies (And Its Assumptions)

This formula assumes a linear, time-invariant (LTI) system operating in steady-state. It perfectly models ideal AC voltage sources, the output of linear oscillators, and the steady-state response of RLC circuits. It does not apply to transient events (like the first few milliseconds of an inductor charging), non-linear distortion (like a clipped amplifier output), or chaotic waveforms. For those, you need Fourier series or Laplace transforms.

Realistic Answer Magnitudes

Knowing what a "normal" answer looks like saves you from chasing ghosts on the bench:

  • Mains Power: A standard US 120V RMS outlet yields a peak amplitude (Vp) of about 170V. If your math spits out 120V for the peak, you forgot to multiply by √2.
  • Audio Signals: Line-level audio sits around 0.3V to 1.0V peak. Speaker-level signals range from 5V to 40V peak.
  • Microcontroller DACs: An ESP32 or Arduino Due generating a sine wave via DAC will max out at roughly 3.3V peak-to-peak (1.65V peak) with a 1.65V DC offset.

Rearranged Forms: Solving for Every Variable

On the bench, you rarely solve for v(t). Usually, you have a scope screenshot and need to extract a parameter. Here are the rearranged forms. Note: When using inverse sine (arcsin), remember it only returns principal values between -π/2 and π/2. You may need to add π or 2π to find the correct quadrant based on your physical circuit context.

  • Solve for Peak Amplitude (Vp):
    Vp = (v(t) - VDC) / sin(2πft + φ)
  • Solve for Time (t):
    t = [arcsin((v(t) - VDC) / Vp) - φ] / (2πf)
  • Solve for Phase Angle (φ):
    φ = arcsin((v(t) - VDC) / Vp) - 2πft
  • Solve for Frequency (f):
    f = [arcsin((v(t) - VDC) / Vp) - φ] / (2πt)
  • Solve for DC Offset (VDC):
    VDC = v(t) - Vp sin(2πft + φ)

Worked Examples with Unit Tracking

Let’s run through two common bench scenarios, tracking every unit to ensure the math holds up. For deeper reading on AC waveform mathematics, refer to the Georgia State University HyperPhysics AC Circuits guide or the All About Circuits AC Waveforms textbook chapter.

Problem 1: Finding Instantaneous Mains Voltage

Scenario: You are designing a solid-state relay trigger circuit for a US standard wall outlet (120V RMS, 60 Hz). The waveform crosses zero going positive at t = 0 (meaning φ = 0 and VDC = 0). What is the exact instantaneous voltage at t = 3 milliseconds?

  1. Convert RMS to Peak Amplitude:
    Vp = VRMS × √2
    Vp = 120 V × 1.4142 = 169.7 V
  2. Calculate Angular Frequency (ω):
    ω = 2πf
    ω = 2 × π × 60 Hz = 376.99 rad/s
  3. Convert Time to Seconds:
    t = 3 ms = 0.003 s
  4. Plug into the Formula:
    v(0.003) = 169.7 × sin(376.99 rad/s × 0.003 s + 0)
    v(0.003) = 169.7 × sin(1.13097 radians)
    Crucial Step: Ensure your calculator is in RADIAN mode, not degree mode!
    sin(1.13097 rad) = 0.9048
    v(0.003) = 169.7 V × 0.9048 = 153.5 V

Answer: At exactly 3 ms into the cycle, the instantaneous voltage is 153.5 Volts.

Problem 2: Extracting Parameters from a Signal Generator

Scenario: You inject a test current into a shunt resistor and read the following equation from your data logger: i(t) = 5 sin(314.16t - π/4) Amps. Find the cyclic frequency (f), the period (T), and the phase shift in degrees.

  1. Identify Given Values:
    Ip = 5 A
    ω = 314.16 rad/s
    φ = -π/4 rad
  2. Solve for Cyclic Frequency (f):
    f = ω / 2π
    f = 314.16 / (2 × 3.14159) = 50.0 Hz (Standard EU/UK mains frequency)
  3. Solve for Period (T):
    T = 1 / f
    T = 1 / 50 Hz = 0.02 s = 20 ms
  4. Convert Phase Shift to Degrees:
    φ (degrees) = φ (radians) × (180 / π)
    φ = (-π/4) × (180 / π) = -45°

Answer: The signal is a 50 Hz sine wave with a 20 ms period, lagging the reference by 45 degrees.

Unit Mistakes That Break the Math

If your calculated waveform doesn't match your oscilloscope trace, you almost certainly fell victim to one of these three unit traps:

1. The Calculator Mode Trap (Radians vs. Degrees)
The term (2πft) inherently produces an angle in radians. If your calculator is set to Degrees, sin(377 × 0.003) will calculate the sine of 1.13 degrees (yielding ~0.019) instead of 1.13 radians (yielding ~0.904). Always verify your calculator is in RAD mode when using 2πft. If your formula uses ωt, it is strictly radians. If your formula explicitly writes sin(360ft + φ°), then use Degrees.
2. The RMS vs. Peak Trap
Multimeters read RMS. Oscilloscopes read Peak-to-Peak. The formula v(t) strictly requires the Zero-to-Peak amplitude (Vp). If you plug 120V directly into Vp for a US wall outlet, your peak calculations will be 41% too low. Always multiply RMS by √2 (1.414) to get Vp, or divide Peak-to-Peak by 2.
3. The Angular vs. Cyclic Frequency Trap
Confusing f (Hz) with ω (rad/s) is a classic error. If a datasheet specifies a filter cutoff at ω = 10,000, the frequency is not 10 kHz; it is 10,000 / 2π = 1,591 Hz. Never plug ω directly into the f slot of the 2πft formula, or you will multiply by 2π twice.

Frequently Asked Questions

How do I write the formula for sinusoidal function using angular frequency?

In higher-level AC circuit analysis and phasor math, calculating 2π over and over is tedious. Instead, we substitute ω (omega) for 2πf. The formula becomes v(t) = Vp sin(ωt + φ) + VDC. This is mathematically identical but much cleaner when working with complex impedance (Z = R + jωL) in RL or RC circuits. Just remember that ω is measured in radians per second, not Hertz.

Why does the formula for sinusoidal function sometimes use cosine instead of sine?

You will frequently see v(t) = Vp cos(ωt + φ) in RF engineering and advanced textbooks. A cosine wave is simply a sine wave shifted to the left by 90 degrees (π/2 radians). Mathematically, sin(θ + 90°) = cos(θ). In phasor analysis, cosine is often preferred as the reference because it aligns the real part of Euler's formula (ejωt = cos(ωt) + j sin(ωt)) with the physical waveform. If you are using a sine-based formula but the reference signal is a cosine, simply add or subtract 90° from your phase angle φ to reconcile them.

What happens to the formula if the AC signal has a DC offset?

The VDC term at the end of the equation accounts for this. A pure AC signal oscillates symmetrically around 0V. However, in single-supply op-amp circuits, half-wave rectifiers, or Class A amplifiers, the sine wave is "lifted" above the zero line. For example, an audio signal biased at 2.5V to run on a 5V Arduino ADC will have a VDC of 2.5V. If you forget to subtract this DC offset before calculating phase or RMS values in your code, your microcontroller's math will yield wildly inaccurate results.