Menu Close

Linear harmonic oscillator: UPSC Physics Optional PYQ Solutions (2001–2026)

All 16 questions UPSC has asked on linear harmonic oscillator in the Physics Optional (Paper II, Quantum Mechanics) from 2001 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Quantum Mechanics topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers or the algebra were worked out again independently in code (Python with SymPy) and agree with ours.
  • ✓ Derivation checked step by step for “derive” and “show that” questions, every step was checked against the standard result and its assumptions.
  • ✓ Checked step by step for descriptive questions, every statement was checked against standard textbooks.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 2a 2026 · 2b 2024 · 1e 2024 · 2b 2023 · 1b 2021 · 4b 2019 · 4b 2018 · 1b 2018 · 1c 2017 · 2b 2010 · 2a 2007 · 2a 2005 · 1d(i) 2002 · 2b 2001 · 2a 2001 · 2b

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

A particle is in the ground state of a 1-D simple harmonic oscillator potential, V(x)=12mω2x2. Calculate the position uncertainty of the particle.

2026 · Paper II · Q2a · 15 marks

Solution

Ground state. ψ0=(mωπℏ)1/4e−mωx2/2ℏ. |ψ0|2 is even, so ⟨x⟩=0.

Mean square. With α=mω/ℏ and ∫x2e−αx2dx=π2α3/2: ⟨x2⟩=απ⋅π2α3/2=12α=ℏ2mω.

Position uncertainty. Δx=⟨x2⟩−⟨x⟩2=ℏ2mω. (Similarly Δp=mℏω/2, so ΔxΔp=ℏ/2: the ground state is a minimum-uncertainty state.)

✓ Checked by computer We computed ⟨x⟩ and ⟨x2⟩ for the Gaussian ground state symbolically.

↑ Back to the question list

(i) A particle is in the normalized state ψ which is a superposition of the energy eigenstates ψ1 and ψ2 with energies 10 eV and 30 eV, respectively. The average value of the energy of the particle in the state ψ is 24 eV. Find the state ψ in terms of ψ1 and ψ2. (ii) Obtain the allowed eigenenergies of the half 1-D simple harmonic oscillator defined by the Hamiltonian H=p22m+V(x), where V(x)=12mω2x2 for x≥0;=∞ for x<0 Express its eigenstates in terms of eigenstates of the full 1-D oscillator.

2026 · Paper II · Q2b · 20 marks

Solution

(i) Superposition. Write ψ=c1ψ1+c2ψ2 with ψ1,ψ2 orthonormal. Then |c1|2+|c2|2=1, ⟨E⟩=10|c1|2+30|c2|2=24. Substituting |c1|2=1−|c2|2: 10+20|c2|2=24, so |c2|2=0.7,|c1|2=0.3. Hence (up to an overall phase and a relative phase δ that the data cannot fix) ψ=0.3ψ1+0.7eiδψ2. A measurement gives 10 eV with probability 0.3 and 30 eV with probability 0.7.

(ii) Half oscillator. For x>0 the Schrödinger equation is the same as for the full oscillator. The infinite wall at x=0 adds the boundary condition ψ(0)=0. The full-oscillator eigenfunctions ψn(x)=NnHn(ξ)e−ξ2/2 (ξ=xmω/ℏ) have parity (−1)n. The even ones (n=0,2,4,…) are non-zero at x=0; the odd ones (n=1,3,5,…) vanish there. So only the odd states survive: E=(n+12)ℏω,n=1,3,5,… =32ℏω,72ℏω,112ℏω,… i.e. Ek=(2k+32)ℏω, k=0,1,2,…, with spacing 2ℏω.

Eigenstates. ϕk(x)={2ψ2k+1(x),x≥00,x<0. The factor 2 restores normalisation, since |ψ2k+1|2 is even and only half of it lies in x>0.

✓ Checked by computer We solved |c1|2+|c2|2=1, 10|c1|2+30|c2|2=24 in code and checked that only the odd oscillator states vanish at x=0.

↑ Back to the question list

Find the energy of the particle of mass m moving in a potential field V(x)=2ℏ2b2x2m for which the time independent wave function is ψ(x)=exp(−bx2). Here b is a constant.

2024 · Paper II · Q1e · 10 marks

Solution

Derivatives. ψ′=−2bxe−bx2, ψ″=(4b2x2−2b)e−bx2.

Schrödinger equation. −ℏ22mψ″+Vψ =[−ℏ22m(4b2x2−2b)+2ℏ2b2x2m]ψ =[−2ℏ2b2x2m+ℏ2bm+2ℏ2b2x2m]ψ =ℏ2bmψ. So ψ is an eigenfunction with energy E=ℏ2bm.

Check. V=12mω2x2 with ω=2ℏb/m, and ψ=e−bx2 is the oscillator ground state with b=mω/2ℏ; then E=ℏω/2=ℏ2b/m. ✓

✓ Checked by computer We applied Ĥ to e−bx2 symbolically; the x2 terms cancel.

↑ Back to the question list

The ground state wave function of a harmonic oscillator is ψ0(x)=(mωℏπ)1/4exp(−mωx22ℏ). (i) At which point is the probability density maximum? (ii) What is the value of the maximum probability density?

2024 · Paper II · Q2b · 15 marks

Solution

|ψ0(x)|2=(mωπℏ)1/2e−mωx2/ℏ.

(i) Position of the maximum. The exponent −mωx2/ℏ is largest (zero) at x=0, and ddx|ψ0|2=−2mωxℏ|ψ0|2=0 only there. So the probability density is maximum at the centre, x=0. (Classically the particle is most likely to be found at the turning points, where it moves slowest; the quantum ground state is the opposite.)

(ii) Maximum value. |ψ0(0)|2=mωπℏ.

✓ Checked by computer We maximised |ψ0|2 symbolically.

↑ Back to the question list

Consider a particle of mass m and charge q moving under the influence of a one dimensional harmonic oscillator potential. Assume it is placed in a constant electric field E. The Hamiltonian of this particle is therefore given by H=p22m+12mω2X2−qEX. Obtain the energy expression and the wave function of the nth excited state of the particle.

2023 · Paper II · Q1b · 10 marks

Solution

Complete the square. 12mω2X2−qEX=12mω2(X−x0)2 −q2E22mω2, x0=qEmω2. So H=p22m+12mω2(X−x0)2−q2E22mω2.

Shifted oscillator. With y=X−x0 (a translation, so p=−iℏd/dy unchanged), H is an ordinary oscillator in y plus a constant. Hence:

Energies. En=(n+12)ℏω−q2E22mω2, n=0,1,2,… All levels are lowered by the same amount; the spacing ℏω is unchanged.

Wavefunctions. ψn(X)=NnHn(mωℏ(X−x0)) ×e−mω(X−x0)2/2ℏ, with Nn=(mωπℏ)1/412nn!. They are the usual oscillator functions, centred at the new equilibrium point x0=qE/mω2, where the spring force balances the electric force.

✓ Derivation checked step by step We checked the completed square and the shifted eigenfunctions symbolically.

↑ Back to the question list

Calculate the probability of finding a simple harmonic oscillator within the classical limits if the oscillator is in its normal state. Also show that if the oscillator is in its normal state, then the probability of finding the particle outside the classical limits is approximately 16%.

2021 · Paper II · Q4b · 15 marks

Solution

Classical limits. In the ground state E=12ℏω. A classical oscillator with this energy turns back at 12mω2x02=12ℏω: x0=ℏmω.

Probability inside. With ξ=x/x0, |ψ0|2dx=1πe−ξ2dξ, so Pin=1π∫−11e−ξ2dξ=erf(1)=0.843.

Probability outside. Pout=1−0.843=0.157≈16%. So about one-sixth of the time the oscillator is found in the classically forbidden region, where its kinetic energy would be negative. This is a purely quantum effect (wave penetration, as in tunnelling).

✓ Checked by computer We computed erf(1) in code.

↑ Back to the question list

Write down the Hamiltonian operator for a linear harmonic oscillator. Show that the energy eigenvalue of the same can be given by En=(n+12)ℏω0 at energy state n with ω0 being the natural frequency of vibration of the linear oscillator. Prove that n=0 energy state has a wave function of typical Gaussian form.

2019 · Paper II · Q4b · 15 marks

Solution

Hamiltonian. Ĥ=p̂22m+12mω02x̂2 =−ℏ22md2dx2+12mω02x2.

Ladder operators. a=mω02ℏ(x+ip̂mω0), a†=mω02ℏ(x−ip̂mω0). From [x,p̂]=iℏ we get [a,a†]=1 and Ĥ=ℏω0(a†a+12).

Spectrum. Let N=a†a. Then [N,a]=−a and [N,a†]=a†. If N|n⟩=n|n⟩, then a|n⟩ has eigenvalue n−1 and a†|n⟩ has n+1. Since n=⟨n|a†a|n⟩=∥a|n⟩∥2≥0, the lowering must stop: there is a state |0⟩ with a|0⟩=0. Then the eigenvalues of N are n=0,1,2,… and En=(n+12)ℏω0.

Ground state is Gaussian. aψ0=0 reads (x+ℏmω0ddx)ψ0=0 ⇒dψ0dx=−mω0xℏψ0, ψ0=(mω0πℏ)1/4exp(−mω0x22ℏ), a Gaussian, with energy E0=12ℏω0 (the zero-point energy).

✓ Derivation checked step by step We checked the ladder-operator algebra and the ground-state equation aψ0=0.

↑ Back to the question list

Calculate the zero-point energy of a system consisting of a mass of 10−3 kg connected to a fixed point by a spring which is stretched by 10−2 m by a force of 10−1 N. The system is constrained to move only in one direction.

2018 · Paper II · Q1b · 10 marks

Solution

Spring constant. k=Fx=10−110−2=10N/m.

Angular frequency. ω=km=1010−3=100rad/s.

Zero-point energy. E0=12ℏω=12×1.055×10−34×100 =5.3×10−33J(3.3×10−14eV). This is utterly negligible for a macroscopic system: classical mechanics is adequate.

✓ Checked by computer We computed k=F/x, ω=k/m and E0=ℏω/2 in code.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

The general wave functions of harmonic oscillator (one-dimensional) are of the form un(x)=∑k=0∞akyke−y2/2 with y=mωℏx, and coefficients ak are determined by recurrence relations ak+2=2(k−n)(k+1)(k+2)ak Corresponding energy levels are En=(n+12)ℏω. Discuss the parity of these wave functions. What happens, if the potential for x≤0 is infinite (half harmonic oscillator)?

2018 · Paper II · Q1c · 10 marks

Solution

Parity. The recurrence relates ak+2 to ak only, so the series splits into an even part (starting from a0) and an odd part (starting from a1). For the wavefunction to stay normalisable the series must terminate, and it terminates when k=n (an+2=0). So:

  • for even n, take a1=0: un contains only even powers, times the even e−y2/2: un(−x)=un(x) (even parity);
  • for odd n, take a0=0: only odd powers: un(−x)=−un(x) (odd parity).

So un has parity (−1)n; un is Hn(y)e−y2/2. This follows from the symmetry V(−x)=V(x), which makes H commute with the parity operator.

Half oscillator (V=∞ for x≤0). The equation for x>0 is unchanged, but now u(0)=0. Even solutions have un(0)≠0 (they contain the constant a0), so they are excluded; odd solutions vanish at the origin and are allowed. So only n=1,3,5,… survive: E=(n+12)ℏω=32ℏω,72ℏω,112ℏω,… The spacing becomes 2ℏω, and the normalised eigenfunctions are 2un(x) for x>0 (zero for x<0).

✓ Derivation checked step by step We checked the parity of the terminating series and the half-oscillator boundary condition.

↑ Back to the question list

Using Schrödinger equation, obtain the eigenfunctions and eigenvalues of energy for a 1-dimensional harmonic oscillator. Sketch the profiles of eigenfunctions for first three energy states.

2017 · Paper II · Q2b · 20 marks

Solution

Schrödinger equation. −ℏ22md2ψdx2+12mω2x2ψ=Eψ. Put y=mω/ℏx and λ=2E/ℏω: d2ψdy2+(λ−y2)ψ=0.

Large y. ψ″≈y2ψ, so ψ∼e−y2/2 (the other solution e+y2/2 is not normalisable). Write ψ=H(y)e−y2/2: H″−2yH′+(λ−1)H=0.

Series solution. With H=∑akyk: ak+2=2k+1−λ(k+1)(k+2)ak. For large k, ak+2/ak≈2/k, the behaviour of ey2; then ψ∼ey2/2 diverges. So the series must terminate at some k=n: λ=2n+1 ⇒En=(n+12)ℏω,n=0,1,2,… The terminated series are the Hermite polynomials: H0=1, H1=2y, H2=4y2−2, …

Eigenfunctions. ψn(x)=(mωπℏ)1/412nn! ×Hn(y)e−y2/2.

Properties. The levels are equally spaced (ℏω); the lowest energy is 12ℏω (zero-point energy); ψn has n nodes and parity (−1)n; each extends beyond the classical turning points.

n=0: ħω/2n=1: 3ħω/2n=2: 5ħω/2x
The first three oscillator states. Red dots: classical turning points.

✓ Derivation checked step by step We checked the asymptotic form, the recurrence and the termination condition symbolically.

↑ Back to the question list

A system is described by the Hamiltonian operator, H=−d2dx2+x2 show that the function Axexp(−x22) is an eigen function of H. Determine the eigen values of H.

2010 · Paper II · Q2a · 30 marks

Solution

Derivatives of ψ=Axe−x2/2: ψ′=A(1−x2)e−x2/2, ψ″=A(x3−3x)e−x2/2.

Action of H. Hψ=−A(x3−3x)e−x2/2 +x2⋅Axe−x2/2 =3Axe−x2/2=3ψ. So ψ is an eigenfunction with eigenvalue 3.

All eigenvalues of H. H is the oscillator Hamiltonian in units with ℏ=1, m=12, ω=2 (so ℏω=2). Its eigenvalues are 2(n+12)=2n+1: 1,3,5,7,… with eigenfunctions Hn(x)e−x2/2. The given function (n=1) has eigenvalue 3; e−x2/2 has eigenvalue 1.

✓ Checked by computer We applied H=−d2/dx2+x2 to xe−x2/2 symbolically.

↑ Back to the question list

Solve the Schrodinger equation for a linear harmonic oscillator. Obtain the eigenvalues and the corresponding eigenfunctions.

2007 · Paper II · Q2a · 40 marks

Solution

Schrödinger equation. −ℏ22md2ψdx2+12mω2x2ψ=Eψ. Put y=mω/ℏx and λ=2E/ℏω: d2ψdy2+(λ−y2)ψ=0.

Large y. ψ″≈y2ψ, so ψ∼e−y2/2 (the other solution e+y2/2 is not normalisable). Write ψ=H(y)e−y2/2: H″−2yH′+(λ−1)H=0.

Series solution. With H=∑akyk: ak+2=2k+1−λ(k+1)(k+2)ak. For large k, ak+2/ak≈2/k, the behaviour of ey2; then ψ∼ey2/2 diverges. So the series must terminate at some k=n: λ=2n+1 ⇒En=(n+12)ℏω,n=0,1,2,… The terminated series are the Hermite polynomials: H0=1, H1=2y, H2=4y2−2, …

Eigenfunctions. ψn(x)=(mωπℏ)1/412nn! ×Hn(y)e−y2/2.

Properties. The levels are equally spaced (ℏω); the lowest energy is 12ℏω (zero-point energy); ψn has n nodes and parity (−1)n; each extends beyond the classical turning points.

n=0: ħω/2n=1: 3ħω/2n=2: 5ħω/2x
The first three oscillator states. Red dots: classical turning points.

✓ Derivation checked step by step We checked the asymptotic form, the recurrence and the termination condition symbolically.

↑ Back to the question list

The ground state wavefunction of a linear simple harmonic oscillator is ψ=Aexp(−α2x22) Calculate the constant A and the average values of x2 and x. Given that ∫0∞e−x2=π1/22

2005 · Paper II · Q1d(i) · 10 marks

Solution

Normalisation. Using ∫−∞∞e−u2du=π (twice the given integral) with u=αx: A2∫−∞∞e−α2x2dx=A2πα=1 ⇒A=απ1/4.

Average of x. |ψ|2 is even, so ⟨x⟩=0.

Average of x2. Integrating by parts, ∫x2e−α2x2dx=π2α3, so ⟨x2⟩=απ⋅π2α3=12α2. (With α2=mω/ℏ, ⟨x2⟩=ℏ/2mω.)

✓ Checked by computer We computed A, ⟨x⟩ and ⟨x2⟩ symbolically.

↑ Back to the question list

Distinguish between a classical and a quantum mechanical harmonic oscillator. Explain the existence of zero point energy.

2002 · Paper II · Q2b · 15 marks

Solution

Classical oscillator Quantum oscillator
Energy any value 12kA2≥0 (continuous) only En=(n+12)ℏω (discrete, spacing ℏω)
Lowest energy 0 (at rest at x=0) 12ℏω (zero-point energy)
Position definite x(t)=Acosωt only probabilities |ψn(x)|2
Where it is most likely near the turning points (slowest there) ground state: at the centre; high n: approaches classical
Forbidden region never beyond ±A penetrates beyond the turning points (16% in the ground state)
Radiation at frequency ω with any intensity emits/absorbs quanta ℏω (Δn=±1)

Zero-point energy. The oscillator cannot sit at rest at the bottom of the well, because that would require Δx=0 and Δp=0 together, which the uncertainty principle forbids. With ΔxΔp≥ℏ/2, E≥(Δp)22m+12mω2(Δx)2≥12ℏω, the minimum being reached by the Gaussian ground state. Zero-point motion is real: it keeps helium liquid down to absolute zero (at normal pressure), causes the Lamb shift and the Casimir force, and shows up in X-ray scattering from crystals at very low temperature.

✓ Checked step by step We checked the comparison against standard texts.

↑ Back to the question list

A particle is in a quantum system with a parabolic potential well. (i) Using appropriate method find the ground state energy. (ii) Obtain an expression for the ground state.

2001 · Paper II · Q2a · 40 marks

Solution

Potential. V=12mω2x2.

(i) Ground-state energy (variational method). Take the trial function ψ=Ne−βx2 (β>0). Then ⟨T⟩=ℏ2β2m,⟨V⟩=mω28β, so E(β)=ℏ2β2m+mω28β. Minimise: dEdβ=ℏ22m−mω28β2=0⇒β=mω2ℏ, E0=ℏω4+ℏω4=12ℏω. The variational principle guarantees E0true≤E(β) for every β; here the trial function contains the exact solution, so we get the exact ground state energy.

(ii) Ground state. With β=mω/2ℏ and normalisation N=(2β/π)1/4: ψ0(x)=(mωπℏ)1/4e−mωx2/2ℏ. Direct check: −ℏ22mψ0″+12mω2x2ψ0=12ℏωψ0.

✓ Derivation checked step by step We minimised the variational energy with a Gaussian trial function symbolically.

↑ Back to the question list

(i) Write down the matrix representation of the energy operator of a linear oscillator. (ii) A linear oscillator is prepared in the state given by ψ(x)=1/5{ψ̂0(x)+2ψ̂1(x)+2ψ̂2(x)} Evaluate the energy of the oscillator in this state.

2001 · Paper II · Q2b · 20 marks

Solution

(i) Matrix of Ĥ. In the basis of its own eigenstates ψ̂0,ψ̂1,ψ̂2,…, ⟨m|Ĥ|n⟩=Enδmn, so the matrix is diagonal: H=ℏω(1200⋯0320⋯0052⋯⋮⋱). (In the same basis x and p have non-zero elements only next to the diagonal, ⟨n±1|x|n⟩≠0.)

(ii) Energy in the given state. ψ=15(ψ̂0+2ψ̂1+2ψ̂2) is normalised (15+25+25=1). A measurement gives | Energy | Probability | |—|—| | 12ℏω | 1/5 | | 32ℏω | 2/5 | | 52ℏω | 2/5 |

The expectation value is ⟨E⟩=ℏω(15⋅12+25⋅32+25⋅52) =1710ℏω=1.7ℏω.

✓ Checked by computer We computed ⟨E⟩=∑|cn|2En in code.

↑ Back to the question list

More on Quantum Mechanics

Questions: UPSC Civil Services (Main) Examination, Physics Paper II, 2001–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted