π¨ New Course Features Demo
This page demonstrates all the new interactive features added to the Quantum Mechanics course. These components are now available for use throughout the course to enhance learning.
1. Interactive Wave Function Visualizer
Visualize wave functions in real-time! Adjust quantum numbers, toggle between Ο(x) and |Ο|Β², and watch time evolution animations.
π¨ Interactive Wave Function Visualizer
Green: Wave function Ο(x) |Cyan: Probability density |Ο|Β²
Red walls: Infinite potential barriers (Ο = 0 at boundaries)
Harmonic Oscillator Visualizer
Explore the quantum harmonic oscillator with its characteristic Gaussian envelope and Hermite polynomials:
πQuantum Harmonic Oscillator
What you're seeing:
- β’ Gray curve: Parabolic potential V(x) = Β½mΟΒ²xΒ²
- β’ Orange dashed line: Energy level En = (n + Β½)βΟ
- β’ Cyan/Green curve: Wave function Οn(x) or probability |Οn|Β²
- β’ Orange markers: Classical turning points
- β’ Note the zero-point energy: E0 = Β½βΟ even for n=0!
- β’ Higher n states show more nodes (zeros) in the wave function
Hydrogen Atom Orbital Visualizer
Visualize the electron orbitals in hydrogen (1s, 2s, 2p, 3s, 3p, 3d) with proper quantum numbers:
βοΈHydrogen Atom Orbitals
Quantum Numbers:
- β’ n (principal): 1 β determines energy E = -13.6/nΒ² eV
- β’ l (angular momentum): 0 β determines orbital shape (s, p, d, f)
- β’ m (magnetic): 0 β determines orientation in space
Color Legend:
- β’ Blue/Cyan: Positive wave function
- β’ Red/Orange: Negative wave function
- β’ White dot: Nucleus (proton)
- β’ Brightness indicates magnitude of Ο or |Ο|Β²
2. Physical Intuition Boxes
π‘Why Can't Energy Be Zero?
Imagine trying to confine a particle to a box. Classically, you could have it sit perfectly still at the bottom with zero energy. But quantum mechanically, this violates the uncertainty principle!
If the particle were at rest (p = 0, Ξp = 0), it would have definite momentum. But confining it to a box of width L means Ξx β€ L. The uncertainty principle ΞxΒ·Ξp β₯ β/2 would be violated!
Therefore, the particle must have some minimum kinetic energy (the zero-point energy Eβ) just from being confined. This is a purely quantum effect with no classical analog.
3. Common Mistakes
Learn from typical errors students make when first encountering this material:
β οΈCommon Mistakes to Avoid
Mistake:
Why it's wrong:
Correct approach:
Mistake:
Why it's wrong:
Correct approach:
Mistake:
Why it's wrong:
Correct approach:
4. Comparison Tables
Side-by-side comparisons help clarify key differences:
Classical vs. Quantum: Particle in a Box
How the quantum treatment differs fundamentally from classical mechanics
| Aspect | Classical | Quantum |
|---|---|---|
| Energy | Any value E β₯ 0 allowed | Quantized: En = nΒ²ΟΒ²βΒ²/(2mLΒ²) |
| Position | Particle has definite position x(t) | Position uncertain: described by |Ο(x)|Β² |
| Zero Energy | Particle at rest (E=0) allowed | Zero-point energy: E1 β 0 (uncertainty principle) |
| Probability | Uniform probability everywhere | Non-uniform: |Ο(x)|Β² with nodes at x=nL/k |
| Superposition | Not applicable | Particle can be in superposition of multiple states |
5. Code Examples
Computational examples help build intuition and practical skills:
Infinite Square Well - Python Simulation
Plot wave functions and probability densities for the first three energy levels
import numpy as np
import matplotlib.pyplot as plt
# Parameters
L = 1.0 # Well width
N = 1000 # Number of points
x = np.linspace(0, L, N)
# Wave function for n=1,2,3
def psi_n(x, n, L):
return np.sqrt(2/L) * np.sin(n * np.pi * x / L)
# Energy levels
def E_n(n, L, m=1, hbar=1):
return (n**2 * np.pi**2 * hbar**2) / (2 * m * L**2)
# Plot wave functions
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 5))
for n in [1, 2, 3]:
psi = psi_n(x, n, L)
prob = psi**2
ax1.plot(x, psi, label=f'n={n}')
ax2.plot(x, prob, label=f'n={n}')
ax1.set_xlabel('Position (x/L)')
ax1.set_ylabel('Ο(x)')
ax1.set_title('Wave Functions')
ax1.legend()
ax1.grid(True, alpha=0.3)
ax2.set_xlabel('Position (x/L)')
ax2.set_ylabel('|Ο(x)|Β²')
ax2.set_title('Probability Densities')
ax2.legend()
ax2.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
# Print energy levels
print("Energy Levels (in units of ΟΒ²βΒ²/2mLΒ²):")
for n in range(1, 6):
print(f"E_{n} = {n**2}E_1")Energy Levels (in units of ΟΒ²βΒ²/2mLΒ²):
E_1 = 1E_1
E_2 = 4E_1
E_3 = 9E_1
E_4 = 16E_1
E_5 = 25E_1python script.py6. Practice Problems with Solutions
Work through problems at your own pace. Click "Show Hint" for guidance, or "Show Solution" for the complete worked answer. Your progress is automatically saved!
π Practice Problems
A particle is confined in a 1D infinite square well of width L = 1 nm. Calculate the energy of the ground state (n=1) in eV.
Given: melectron = 9.11 Γ 10-31 kg, β = 1.055 Γ 10-34 JΒ·s
For an infinite square well, show that the wave functions for different quantum numbers (n β m) are orthogonal.
A particle in an infinite well (width L) is initially in the state:
Ξ¨(x,0) = A[Οβ(x) + 2Οβ(x)]
where Οn are the energy eigenstates.
(a) Find the normalization constant A
(b) What is the probability of measuring Eβ?
(c) Find β¨Eβ© at t=0
π Problem Set Statistics
7. Enhanced Navigation
Notice the breadcrumb navigation at the top of the page and the table of contents in the sidebar. These help you track where you are in the course and navigate efficiently.
8. Concept Glossary with Tooltips
Hover over technical terms to see definitions! For example, try hovering over these terms:
In quantum mechanics, a Hermitian operator has real eigenvalues. An eigenstate satisfies the eigenvalue equation Γ|Οβ© = a|Οβ©.
The commutator [Γ, BΜ] = ΓBΜ - BΜΓ determines whether two observables can be simultaneously measured. When operators commute, they share eigenstates.
A complete set of states allows any state to be expressed as asuperposition. The wave function collapse occurs upon measurement.
9. Downloadable Resources
Download course materials in various formats for offline study:
π₯ Downloadable Resources
Study materials for offline learning and practice
Summary Sheet
Key equations, concepts, and formulas in a 2-page reference card
Problem Set
Practice problems with space for solutions (answers separate)
Lecture Notes
Complete formatted notes with all derivations
LaTeX Source
Editable LaTeX source code for notes and equations
Jupyter Notebook
Interactive Python notebook with visualizations and calculations
Python Examples
Complete code examples ready to run
π‘ How to use these resources:
- β’ Summary Sheets: Quick reference during problem-solving
- β’ Problem Sets: Print and practice, check solutions online
- β’ LaTeX Source: Modify equations for your own notes
- β’ Notebooks: Run interactively with Jupyter or Google Colab
- β’ Code Examples: Copy into your own projects
10. Reading Progress Tracking
Notice the progress bar at the top of the page and the floating progress indicator in the bottom-right corner. These track your reading progress and time spent, with estimates of time remaining!
Features:
- Color-coded progress bar (red β orange β yellow β green)
- Circular progress indicator with percentage
- Actual time spent reading tracked automatically
- Estimated time remaining based on your reading speed
- Motivational messages as you progress
- Completion celebration when you reach 99%+
11. Global Course Search
Press Cmd/Ctrl + K to open the global search. Search across all pages, equations, and concepts instantly!
Search capabilities:
- π Search all course pages by title and content
- π Find equations instantly (SchrΓΆdinger, commutator, etc.)
- π‘ Look up concepts and definitions
- Filter results by type (pages, equations, concepts)
- Keyboard navigation with arrow keys and Enter
- Press ESC to close the search modal
π― What's Next?
These features are being rolled out across all pages in the course. Check out:
- Your Progress Dashboard - Track your learning journey and earn achievements
- Equation Reference Database - Searchable database of all important QM equations
- Enhanced Infinite Well Page - See these features in action
- Course Home - Return to the main course