---
title: "Nonlinear Frequency Conversion Interactive Lab | Sandbox Physics"
description: "Does a longer crystal always make more new light? No. Phase mismatch can make light generated at different depths cancel."
canonical_url: "https://sandboxphysics.com/labs/nonlinear-frequency-conversion/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/nonlinear-frequency-conversion/"
last_modified: "2026-10-28"
---

L26 · Phase matching and energy exchange

# Nonlinear Frequency Conversion

**Does a longer crystal always make more new light?** No. Phase mismatch can make light generated at different depths cancel. Even at matched angles, sum-frequency mixing can send energy back into the input waves. In matched second-harmonic generation from a single input, conversion approaches a limit; finite-beam walk-off can stop extra length from helping.

Watch input light fade as a new frequency grows inside the crystal. Compare the automatically acquired depth trace and angle scan, then try sum-frequency back-conversion or seeded difference mixing.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

This is a teaching model of a lossless type-I BBO crystal, with all beams traveling forward along one line. It covers second harmonic, sum frequency and seeded difference frequency. Two lower-frequency ordinary waves couple to one higher-frequency extraordinary wave, and every participating field can be depleted. Depth is measured along the propagation direction inside the crystal. The angle is the one between the wave vector and the optic axis, not the angle of an external mount. Each process uses three frequencies that conserve energy exactly. A Sellmeier fit gives the principal refractive indices. An illustrative linear thermo-optic correction, the same at every wavelength, uses manufacturer coefficients around a nominal reference of twenty degrees. The angle offset is measured from the phase-matching angle calculated at twenty degrees. This thermal model is not a calibration measured over a wide temperature range. Wavelengths from 220 to 2200 nanometres are supported; if a difference-frequency input is impossible or no type-I matching exists, the Lab reports an unsupported state. You set the effective nonlinear coefficient as a single number; the tensor and its azimuthal dependence are not solved. Field amplitudes are normalized to megawatts with photon weighting and propagated with a fourth-order method; second harmonic includes the factor required for degenerate waves. Energy and Manley–Rowe residuals are reported without renormalizing the fields. A prescribed Gaussian-mode overlap reduces the coupling as the extraordinary mode walks off. It does not model transverse deformation, diffraction, focusing, group-velocity mismatch, pulse shapes in time or spatially resolved conversion. The radius defines an equivalent uniform mode area, and the intensity is a diagnostic based on that convention. Switching off walk-off gives a plane-wave comparison. Difference frequency starts from a high-frequency pump and one coherent lower-frequency seed, and the initially empty partner wave is generated classically. The model does not include spontaneous parametric down-conversion or vacuum noise. The phase control sets the phase of the partner or signal seed. When the generated wave starts empty, this changes the output phase but not the efficiency. Crystal coatings, absorption, thermal gradients, damage and the real throughput of dichroic optics are left out. The data rows record the propagated powers and rerun the same depleted-field model at 61 nearby internal angles, so the scan is not an ideal sinc curve. The internal depth readout is a model diagnostic and does not stand for a detector placed inside the crystal. Apparatus dimensions and wavelength routing are schematic. Continuous wave powers are rendered with slow flow markers; these are not temporal pulse solutions. Field radius follows the selected equivalent mode radius, and color labels the wavelength channel. Optical changes acquire a fresh trace and scan automatically.

Laser foundations · Light, gain and feedback

[L01 · Compare sources](https://sandboxphysics.com/labs/laser-source-comparison/) [L02 · Count transitions](https://sandboxphysics.com/labs/light-matter-transitions/) [L03 · Build inversion](https://sandboxphysics.com/labs/population-inversion/) [L04 · Amplify once](https://sandboxphysics.com/labs/single-pass-amplifier/) [L05 · Add feedback](https://sandboxphysics.com/labs/passive-optical-resonator/) [L06 · Start from noise](https://sandboxphysics.com/labs/laser-noise-startup/) [L07 · Build and debug](https://sandboxphysics.com/labs/build-debug-laser/) [L08 · Measure and diagnose](https://sandboxphysics.com/labs/laser-diagnostic-bench/) [L09 · Select axial modes](https://sandboxphysics.com/labs/gain-longitudinal-modes/) [L10 · Confine the beam](https://sandboxphysics.com/labs/stable-resonator-geometry/) [L11 · Select spatial modes](https://sandboxphysics.com/labs/transverse-laser-modes/) [L12 · Propagate and measure](https://sandboxphysics.com/labs/gaussian-beam-quality/) [L13 · Align and match](https://sandboxphysics.com/labs/alignment-mode-matching/) [L14 · Optimize extraction](https://sandboxphysics.com/labs/output-coupler-optimization/) [L15 · Drive the dynamics](https://sandboxphysics.com/labs/laser-dynamics-relaxation/) [L16 · Store and release](https://sandboxphysics.com/labs/q-switched-giant-pulse/) [L17 · Lock phases into pulses](https://sandboxphysics.com/labs/mode-locking-frequency-comb/) [L18 · Calibrate the comb](https://sandboxphysics.com/labs/optical-frequency-comb/) [L19 · Inject carriers](https://sandboxphysics.com/labs/semiconductor-laser-diode/) [L20 · Compare gain media](https://sandboxphysics.com/labs/laser-medium-zoo/) [L21 · Distributed gain](https://sandboxphysics.com/labs/fiber-fbg-laser/) [L22 · Choose feedback](https://sandboxphysics.com/labs/laser-feedback-architectures/) [L23 · Balance ultrafast pulses](https://sandboxphysics.com/labs/ti-sapphire-oscillator/) [L24 · Stretch and compress](https://sandboxphysics.com/labs/chirped-pulse-amplification/) [L25 · Trap and extract](https://sandboxphysics.com/labs/regenerative-multipass-amplifier/) [L26 · Convert frequencies](https://sandboxphysics.com/labs/nonlinear-frequency-conversion/) [L27 · Scatter and cascade](https://sandboxphysics.com/labs/raman-brillouin-lasers/) [L28 · Synchronize a slave](https://sandboxphysics.com/labs/injection-locking/) [L29 · Lock to a reference](https://sandboxphysics.com/labs/pdh-frequency-lock/) [L30 · Measure phase noise](https://sandboxphysics.com/labs/laser-linewidth-phase-noise/) [L31 · Scatter for feedback](https://sandboxphysics.com/labs/random-laser/) [L32 · Diagnose thermal scaling](https://sandboxphysics.com/labs/thermal-lensing/) [L33 · Combine coherent fields](https://sandboxphysics.com/labs/coherent-beam-combining/) [L34 · Sustain a Kerr pulse](https://sandboxphysics.com/labs/microresonator-kerr-comb/) [L35 · Return a delayed field](https://sandboxphysics.com/labs/external-feedback-chaos/) [L36 · Scan without mode hops](https://sandboxphysics.com/labs/tunable-laser-scan/)

Physical basis: [MIT: coherence and spectrum](https://ocw.mit.edu/courses/res-6-006-video-demonstrations-in-lasers-and-optics-spring-2008/resources/coherence-length-and-source-spectrum/) · [Rate equations](https://ocw.mit.edu/courses/6-977-ultrafast-optics-spring-2005/resources/chapter2/) · [Pumping and gain media (§7.2)](https://ocw.mit.edu/courses/6-974-fundamentals-of-photonics-quantum-electronics-spring-2006/bf3bdeb971819ddc9c68719d28bb2745_classnotes.pdf) · [Laser dynamics](https://ocw.mit.edu/courses/6-977-ultrafast-optics-spring-2005/resources/chapter4/)

Physics tutorial

## Light trades energy inside a crystal

**Background** In a nonlinear crystal, light waves of different frequencies exchange energy. The crystal couples the fields; it does not add an independent source of optical energy.

**Why it matters** Light made deeper in the crystal can reinforce what came before or cancel part of it. In sum-frequency mixing, the same coupling can also return energy to the inputs.

Start with the essentials

- **Focus question**: Does a longer crystal always make more new light?
- **One-sentence intuition**: Phase matching lets generated fields add in step; in sum-frequency mixing, depletion can lead to back-conversion.

### Core mathematical model

#### Frequency sum and wave-vector mismatch

$$
\begin{aligned}\omega_3&=\omega_1+\omega_2\\\Delta k&=k_3-k_1-k_2\end{aligned}
$$

In second-harmonic generation, the two lower-frequency photons are identical fundamental photons. Difference-frequency generation starts from wave three plus a coherent lower-frequency seed.

#### Extraordinary index at the internal optic-axis angle

$$
\frac{1}{n_e(\theta)^2}=\frac{\cos^2\theta}{n_o^2}+\frac{\sin^2\theta}{n_e^2}
$$

The high-frequency wave travels as an extraordinary wave and the two lower-frequency waves as ordinary waves. The reference angle comes from the Sellmeier fit for BBO.

#### Coupled equations for the three complex fields

$$
\begin{aligned}a_1\prime&=i\kappa W a_2^*a_3e^{-i\Delta kz}\\a_2\prime&=i\kappa W a_1^*a_3e^{-i\Delta kz}\\a_3\prime&=i\kappa W a_1a_2e^{i\Delta kz}\end{aligned}
$$

Every wave can be depleted. For second harmonic, the two low-frequency waves become a single wave, and the equation for the high-frequency wave takes half the coupling coefficient.

#### Power and the Manley–Rowe relations

$$
\begin{aligned}P_j&=(\omega_j/\omega_r)|a_j|^2\\|a_1|^2+|a_3|^2&=C_1\\|a_2|^2+|a_3|^2&=C_2\end{aligned}
$$

The two Manley–Rowe invariants hold when the waves are distinct. For second harmonic, the conserved quantity is the fundamental photon flow plus twice the harmonic photon flow.

#### Overlap loss from walk-off

$$
\begin{aligned}\delta x(z)&=z\tan\rho\\W(z)&=\exp\!\left[-\frac{2\delta x(z)^2}{3w^2}\right]\end{aligned}
$$

As the extraordinary beam walks off sideways, a prescribed Gaussian overlap factor reduces the coupling. This is a scalar approximation for finite beams; it does not solve for diffracting or distorted transverse fields.

#### Plane-wave limit for second harmonic

$$
\begin{aligned}\eta&=\tanh^2\!\left(\frac{\kappa a_0L}{\sqrt2}\right)\\\Delta k&=0,\quad W=1\end{aligned}
$$

For lossless, phase-matched plane waves, this closed form gives an independent check on the numerical propagation. With weak conversion and nonzero mismatch, the familiar sinc-squared curve appears.

### Common difficulties

#### Colors are labels; readouts give wavelengths

**Typical misconception** Each beam really has the color shown on screen.

**Better mental model** The colors only label the model's channels, and some of those channels are infrared. The wavelength readouts tell you what each beam physically is.

#### Each angle-scan point reruns the full model

**Typical misconception** An ideal phase-matching curve is as good as detector data.

**Better mental model** Each recorded point reruns the model with depleting fields. The values are simulated powers, not measurements from real hardware.

### Run the experiment

1. 01

   #### Compare a depth and its recorded scan

   Choose Matched second harmonic. A depth trace and angle scan are acquired automatically; open Advanced controls to move the depth diagnostic.

   **What to observe:** The diagnostic reads a different point on the same propagated solution. The stored trace and scan retain their original values.

2. 02

   #### Detune the internal angle

   Drag the internal-axis dial or choose Angle mismatch. Temperature mismatch is in Advanced controls and additional demonstrations.

   **What to observe:** The generated output falls and the depth trace can oscillate. The optical frequencies still conserve energy; the fields no longer add in step along the crystal.

3. 03

   #### Find energy flowing back

   Choose Sum frequency and increase Crystal length from two to four millimetres. Then try Seeded difference frequency.

   **What to observe:** Sum-frequency output can fall as energy returns to the lower-frequency waves. Seeded difference mixing instead drains the higher-frequency pump and amplifies the seed as it generates its partner.

Physical conclusion

Read the powers of all three waves together, and remember that the beam overlap here is a scalar approximation, not a full spatial solution.

## Related experiments and articles

Probes and measurement · Reading path

### Controlled light and precision measurement

Articles on this path that use this experiment, followed by the other experiments they suggest.

1. [Article **Frequency combs measure both the spacing and the offset**](https://sandboxphysics.com/stories/probe-evidence/frequency-comb-self-reference/)
2. [Lab **Mode Locking** Watch random phases lock into one pulse](https://sandboxphysics.com/labs/mode-locking-frequency-comb/)
3. [Lab **Microresonator Kerr Comb** Compare a circulating pulse with its comb](https://sandboxphysics.com/labs/microresonator-kerr-comb/)
4. [Lab **Optical Frequency Comb** Check how a comb is calibrated](https://sandboxphysics.com/labs/optical-frequency-comb/)

Waves & optics · Starter path

## From one ray to interference measurement

Start with refraction, find where the ray picture stops working, then use interference to measure tiny distances.

[Start here → **Optical Boundary Explorer** Turn the incident angle and watch reflected and transmitted power trade off. Then switch to the critical-angle scene. Observe · 11 min](https://sandboxphysics.com/labs/optical-boundary-explorer/)

1. [1 Optical Boundary Explorer](https://sandboxphysics.com/labs/optical-boundary-explorer/)
2. [2 Rainbow Caustic Observatory](https://sandboxphysics.com/labs/rainbow-laboratory/)
3. [3 Camera Obscura](https://sandboxphysics.com/labs/camera-obscura/)
4. [4 Coherent Wave Composer](https://sandboxphysics.com/labs/coherent-wave-composer/)
5. [5 Young Double-Slit Bench](https://sandboxphysics.com/labs/young-double-slit-bench/)
6. [6 Michelson Precision Lab](https://sandboxphysics.com/labs/michelson-precision-lab/)

[View the full path →](https://sandboxphysics.com/topics/waves-and-optics/#starter-path)
