For discrete basis:
I=n∑∣n⟩⟨n∣
Think about how this just creates a n×n diagonal matrix with 1's in it.
For a continuous basis:
I=∫∣x⟩⟨x∣ dx
Note:
- note
I∣x⟩=∫−∞∞∣x′⟩⟨x′∣x⟩dx′=∫−∞∞∣x′⟩δ(x−x′)dx′=∣x⟩
- Note
⟨x∣I∣ψ⟩=∫−∞∞⟨x∣x′⟩⟨x′∣ψ⟩dx
=∫−∞∞δ(x−x′)ψ(x′)dx′
=ψ(x)=⟨x∣ψ⟩
- Note
⟨ϕ∣ψ⟩=∫⟨ϕ∣x⟩⟨x∣ψ⟩dx
=∫ϕ∗(x)ψ(x) (dx)