Menu Close

Potentials and covariance: UPSC Physics Optional PYQ Solutions (1995–2025)

All 14 questions UPSC has asked on potentials and covariance in the Physics Optional (Paper I, Electromagnetic Waves and Blackbody Radiation) from 1995 to 2025, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Electromagnetic Waves and Blackbody Radiation 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.

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):

2025 · 2c 2025 · 6a 2023 · 7c 2021 · 6a 2013 · 4c 2009 · 5a 2006 · 5c 2006 · 7b 2004 · 7a 2002 · 7b 2001 · 5b 2001 · 7a 1996 · 1b 1995 · 3

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

Show that the electromagnetic wave equation is invariant under Lorentz transformations.

2025 · Paper I · Q2c · 15 marks

Solution

Wave equation. Each component ψ of E→ in free space obeys □ψ≡∇2ψ−1c2∂2ψ∂t2=0. It is enough to show that the operator □ keeps its form under a Lorentz transformation. (The field components themselves mix under the transformation, but each new component is a combination of old ones, each of which satisfies □ψ=0.)

Lorentz transformation along x: x′=γ(x−vt),y′=y,z′=z, t′=γ(t−vxc2),γ=11−v2/c2.

Derivatives. By the chain rule: ∂∂x=γ(∂∂x′−vc2∂∂t′), ∂∂t=γ(∂∂t′−v∂∂x′).

Second derivatives. ∂2∂x2=γ2(∂2∂x′2−2vc2∂2∂x′∂t′+v2c4∂2∂t′2), 1c2∂2∂t2=γ2c2(∂2∂t′2−2v∂2∂x′∂t′+v2∂2∂x′2).

Subtract. The mixed terms cancel: ∂2∂x2−1c2∂2∂t2 =γ2(1−v2c2)(∂2∂x′2−1c2∂2∂t′2). Since γ2(1−v2/c2)=1, and ∂y=∂y′, ∂z=∂z′: ∇2−1c2∂2∂t2=∇′2−1c2∂2∂t′2.

So the wave equation has the same form in both frames, and light travels at c in every inertial frame. (Under a Galilean transformation the mixed terms do not cancel, so the wave equation is not invariant.)

✓ Derivation checked step by step We checked the chain-rule transformation of the operator symbolically and numerically on a test function.

↑ Back to the question list

Consider a long straight wire of length L carrying a current I. Determine the magnetic vector potential A⃗ at a point P located at distance x from the wire.

2025 · Paper I · Q6a · 20 marks

Solution

Setup. Put the wire along the z-axis from z=−L/2 to z=L/2, and the point P at distance x on the perpendicular bisector. Each element Idzẑ is at distance z2+x2 from P.

Vector potential. By the Biot–Savart form for A→, A→=μ04π∫Idl→r=μ0I4πẑ∫−L/2L/2dzz2+x2. The integral is 2sinh−1L2x, so A→=μ0I2πln[L/2+x2+L2/4x]ẑ. A→ is parallel to the current.

Long wire (L≫x). A→≈μ0I2πlnLxẑ. This grows without limit as L→∞, but only the dependence on x matters physically. Writing A→=−μ0I2πlnxẑ+const: B→=∇×A→=−∂Az∂xϕ̂=μ0I2πxϕ̂, the familiar field of a long straight wire.

✓ Checked by computer We integrated ∫dz/z2+x2 over the wire symbolically and checked the long-wire limit.

↑ Back to the question list

A spherical shell of radius R, carrying a uniform surface charge σ, is set spinning at angular velocity ω about its axis. Find the vector potential it produces at point r⃗.

2023 · Paper I · Q7c · 15 marks

Solution

Setup. Put ω→ along z. The spinning charge gives a surface current K→=σv→=σω→×r→′. Choose the field point r→ in the xz-plane at angle ψ from the z-axis. (The answer is then rotated back to the general direction.)

Integral. With A→=μ04π∫K→|r→−r→′|da′, the standard calculation (Griffiths, Example 5.11) gives A→(r→)=μ0Rσ3(ω→×r→)(r≤R), A→(r→)=μ0R4σ3r3(ω→×r→)(r≥R). The outline: only the component of K→ along ω→×r→ survives the integration over the azimuth; the remaining integral over the polar angle is ∫−11uduR2+r2−2Rru, which equals 2r3R2 for r<R and 2R3r2 for r>R.

In spherical coordinates (ω→×r→=ωrsinθϕ̂): A→=μ0Rωσ3rsinθϕ̂(r<R), A→=μ0R4ωσ3sinθr2ϕ̂(r>R).

Check. Inside, ∇×A→ gives a uniform field B→=23μ0σRω→. Outside, the potential is that of a dipole of moment m=4π3σωR4.

✓ Derivation checked step by step We checked the result against B→=∇×A→, which gives a uniform field 23μ0σRω inside and a dipole field outside.

↑ Back to the question list

In an inertial reference frame S there is only a uniform electric field E⃗=8kVm−1. Find the magnitude of E⃗′ and B⃗′ in the inertial reference frame S′ moving with a constant velocity v⃗ relative to the frame S at an angle α=45∘ to the vector E⃗. The velocity of the frame S′ is 0.6 times the velocity of light c.

2021 · Paper I · Q6a · 20 marks

Solution

Transformation of fields. For a frame moving with velocity v→, split the fields into parts parallel and perpendicular to v→: E′∥=E∥,E→′⊥=γ(E→⊥+v→×B→), B′∥=B∥,B→′⊥=γ(B→⊥−v→×E→c2).

Data. E=8 kV/m, B=0, v=0.6c, α=45∘, so γ=1/1−0.36=1.25. E∥=Ecos45∘,E⊥=Esin45∘.

Electric field in S′. E′=E∥2+γ2E⊥2 =Ecos2α+γ2sin2α =80.5+1.5625×0.5=9.06kV/m.

Magnetic field in S′. Only the perpendicular part appears: B′=γvEsinαc2 =1.25×0.6×8000×0.7073×108 =1.41×10−5T=14μT.

Check. E→′⋅B→′=0 and E′2−c2B′2=(8kV/m)2, as the invariants require.

✓ Checked by computer We transformed the fields with the general formulas in code and checked the invariants E→⋅B→ and E2−c2B2.

↑ Back to the question list

Show that the operator (∇2−1c2∂2∂t2) is invariant under Lorentz transformations.

2013 · Paper I · Q4c · 20 marks

Solution

The operator. Let □≡∇2−1c2∂2∂t2.

Lorentz transformation along x: x′=γ(x−vt), t′=γ(t−vx/c2), y′=y, z′=z.

First derivatives (chain rule): ∂∂x=γ(∂∂x′−vc2∂∂t′), ∂∂t=γ(∂∂t′−v∂∂x′).

Second derivatives. Squaring each, ∂2∂x2−1c2∂2∂t2 =γ2[∂x′2−2vc2∂x′∂t′+v2c4∂t′2 −1c2∂t′2+2vc2∂x′∂t′−v2c2∂x′2] =γ2(1−v2c2)(∂x′2−1c2∂t′2).

Result. γ2(1−v2/c2)=1 and the y, z derivatives are unchanged, so ∇2−1c2∂2∂t2=∇′2−1c2∂2∂t′2.

In four-vector language, □=∂μ∂μ is the scalar product of the four-gradient with itself, and so is invariant.

✓ Derivation checked step by step We checked the transformation of the operator by the chain rule and on a test function numerically.

↑ Back to the question list

A cylindrical conductor is carrying a current along its axis which is assumed to be in z-direction. The current is uniformly distributed throughout its cross-section. Show that the vector potential A⃗ associated with the magnetic induction due to the current-carrying cylindrical conductor is independent of z.

2009 · Paper I · Q5a · 10 marks

Solution

Equation for A→. In the Coulomb gauge (∇⋅A→=0), for steady currents, ∇2A→=−μ0J→.

Direction. J→=Jẑ with J=Iπa2 for s<a and 0 outside. Each Cartesian component of A→ obeys its own Poisson equation with the matching component of J→ as source. Only Jz is non-zero, so A→=Azẑ.

Independence of z. The current is the same at every z (an infinitely long uniform conductor). Shifting the whole system along z changes nothing, so Az cannot depend on z. Equivalently, from A→=μ04π∫J→(r→′)|r→−r→′|dV′, replacing z→z+z0 is undone by shifting the integration variable z′→z′+z0, which leaves the integral unchanged. So Az=Az(s), a function of the distance from the axis only. Then ∇⋅A→=∂Az/∂z=0, consistent with the gauge.

Explicit form. In cylindrical coordinates 1sdds(sdAzds)=−μ0J gives Az=−μ0Is24πa2(s≤a), Az=−μ0I4π[1+2lnsa](s≥a), up to a constant. Both depend on s only. Their curl, Bϕ=−dAz/ds, gives μ0Is/2πa2 inside and μ0I/2πs outside, as Ampère’s law requires.

✓ Derivation checked step by step We checked the symmetry argument and the explicit solution of ∇2Az=−μ0Jz.

↑ Back to the question list

What do you mean by a gauge transformation? What is its importance? Show that the Lorentz gauge condition ∇⃗⋅A⃗+1c∂θ∂t=0 is Lorentz invariant. Here A⃗ and ϕ are the vector and scalar potentials.

2006 · Paper I · Q5c · 20 marks

Solution

Gauge transformation. The potentials are defined by B→=∇×A→,E→=−∇ϕ−∂A→∂t. They are not unique. For any scalar function Λ(r→,t), the change A→→A→′=A→+∇Λ, ϕ→ϕ′=ϕ−∂Λ∂t leaves the fields unchanged:

  • ∇×∇Λ=0, so B→′=B→;
  • −∇ϕ′−∂tA→′=−∇ϕ+∇∂tΛ−∂tA→−∂t∇Λ=E→.

This is a gauge transformation.

Importance.

  • We may choose Λ to make the equations for the potentials as simple as possible (Coulomb gauge for statics, Lorenz gauge for radiation).
  • In the Lorenz gauge, ϕ and A→ obey uncoupled wave equations with sources ρ and J→, whose solutions are the retarded potentials.
  • Gauge invariance is linked to charge conservation, and in quantum theory it underlies the coupling of charged particles to the field.

The Lorenz condition is Lorentz invariant. In SI units the condition is ∇⋅A→+1c2∂ϕ∂t=0. Form the four-potential Aμ=(ϕ/c,A→) and the four-gradient ∂μ=(1c∂∂t,∇). Then the condition reads ∂μAμ=0. The left side is the scalar product of two four-vectors, which has the same value in every inertial frame. So if the condition holds in one frame, it holds in all.

The printed condition, ∇⋅A→+1c∂θ∂t=0, is the Gaussian-units form, with θ standing for the scalar potential ϕ. The proof is the same in either unit system.

✓ Derivation checked step by step We checked the gauge invariance of E→ and B→ and the invariance of ∂μAμ.

↑ 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

Write down the different components of the electromagnetic field tensors Fμν and further prove that Maxwell’s equations of electrodynamics are invariant to Lorentz transformations.

2006 · Paper I · Q7b · 20 marks

Solution

Field tensor. With Aμ=(ϕ/c,A→), metric (+,−,−,−) and ∂μ=(1c∂t,−∇), define Fμν=∂μAν−∂νAμ. Using E→=−∇ϕ−∂tA→ and B→=∇×A→, its components are Fμν=(0−ex−ey−ezex0−BzByeyBz0−Bxez−ByBx0), where ei=Ei/c. It is antisymmetric, so it has six independent components: the three of E→ and the three of B→. Lowering both indices changes the sign of the E entries only.

Maxwell’s equations as tensor equations.

  1. With the four-current Jν=(cρ,J→): ∂μFμν=μ0Jν. ν=0 gives ∇⋅E→=ρ/ε0; ν=1,2,3 give ∇×B→=μ0J→+μ0ε0∂tE→.
  2. The Bianchi identity (automatic from F=∂A−∂A): ∂λFμν+∂μFνλ+∂νFλμ=0. The choice (1,2,3) gives ∇⋅B→=0; choices with one index 0 give ∇×E→=−∂tB→.

Invariance. Under a Lorentz transformation Λ, every index transforms the same way: F′μν=ΛμαΛνβFαβ, J′ν=ΛνβJβ,∂′μ=Λμα∂α. So if ∂μFμν−μ0Jν=0 in one frame, then in another frame the same combination is Λνβ times zero – also zero. The same holds for the Bianchi identity. Equations written as tensor equations keep their form in all inertial frames: Maxwell’s equations are Lorentz covariant. (Charge conservation, ∂νJν=0, follows from the antisymmetry of Fμν.)

✓ Derivation checked step by step We checked the tensor components against Fμν=∂μAν−∂νAμ and the reduction of the two tensor equations to Maxwell’s four.

↑ Back to the question list

What are the vector and scalar potentials? Derive Maxwell’s wave equations in terms of these potentials.

2004 · Paper I · Q7a · 20 marks

Solution

Potentials. Since ∇⋅B→=0, we can write B→=∇×A→; A→ is the vector potential. Faraday’s law then gives ∇×(E→+∂tA→)=0, so E→+∂tA→ is a gradient: E→=−∇ϕ−∂A→∂t. ϕ is the scalar potential. These two equations satisfy the two homogeneous Maxwell equations automatically.

The other two equations. Gauss’s law ∇⋅E→=ρ/ε0 gives ∇2ϕ+∂∂t(∇⋅A→)=−ρε0. The Ampère–Maxwell law, with ∇×∇×A→=∇(∇⋅A→)−∇2A→, gives ∇2A→−1c2∂2A→∂t2 −∇(∇⋅A→+1c2∂ϕ∂t)=−μ0J→.

Wave equations (Lorenz gauge). Use the gauge freedom to set ∇⋅A→+1c2∂ϕ∂t=0. Then both equations become wave equations with sources: ∇2ϕ−1c2∂2ϕ∂t2=−ρε0, ∇2A→−1c2∂2A→∂t2=−μ0J→. Away from sources, ϕ and A→ travel as waves at speed c.

✓ Derivation checked step by step We checked the derivation of the two coupled equations and their reduction in the Lorenz gauge.

↑ Back to the question list

What are vector and scalar potentials for the electromagnetic field? Are they unique? Explain what are Coulomb’s and Lorentz gauges. Derive the electromagnetic wave equation in Lorentz gauge and show that it is equivalent to Maxwell’s equation.

2002 · Paper I · Q7b · 30 marks

Solution

Potentials. B→=∇×A→ and E→=−∇ϕ−∂tA→. These satisfy ∇⋅B→=0 and ∇×E→=−∂tB→ identically.

Not unique. For any Λ(r→,t), A→′=A→+∇Λ,ϕ′=ϕ−∂Λ∂t give the same E→ and B→. So the potentials are fixed only up to such a gauge transformation; we can impose one extra condition.

Coulomb gauge. ∇⋅A→=0. Then ∇2ϕ=−ρ/ε0: ϕ is the instantaneous Coulomb potential of the charges. It is convenient in statics and for radiation in source-free regions.

Lorenz gauge. ∇⋅A→+1c2∂ϕ∂t=0. It treats ϕ and A→ alike and is Lorentz invariant.

Wave equations in the Lorenz gauge. Substituting the potentials into Gauss’s law and the Ampère–Maxwell law, and using the Lorenz condition: □ϕ=−ρε0, □A→=−μ0J→,□=∇2−1c2∂2∂t2.

Equivalence with Maxwell’s equations. Conversely, start from these two equations plus the Lorenz condition, and define E→, B→ from the potentials.

  • The homogeneous equations hold automatically.
  • ∇⋅E→=−∇2ϕ−∂t∇⋅A→=−∇2ϕ+1c2∂t2ϕ=−□ϕ=ρ/ε0.
  • ∇×B→−1c2∂tE→=−□A→+∇(∇⋅A→+1c2∂tϕ)=μ0J→.

So the wave equations with the Lorenz condition carry exactly the content of Maxwell’s equations. (Consistency also needs ∇⋅J→+∂tρ=0, which keeps the Lorenz condition true at all times.)

✓ Derivation checked step by step We checked gauge freedom, both gauge conditions, and that the Lorenz-gauge wave equations give back all four Maxwell equations.

↑ Back to the question list

What is gauge transformation? Define coulomb gauge. Derive the equation for vector potential under coulomb gauge.

2001 · Paper I · Q5b · 20 marks

Solution

Gauge transformation. The fields B→=∇×A→ and E→=−∇ϕ−∂tA→ are unchanged if A→→A→+∇Λ,ϕ→ϕ−∂Λ∂t for any scalar function Λ. Such a change of potentials is a gauge transformation.

Coulomb gauge. Choose Λ so that ∇⋅A→=0. (If ∇⋅A→≠0, solve ∇2Λ=−∇⋅A→ and use the new A→.)

Scalar potential. Gauss’s law gives ∇2ϕ=−ρ/ε0, the Poisson equation, with the instantaneous solution ϕ(r→,t)=14πε0∫ρ(r→′,t)|r→−r→′|dV′.

Vector potential. The Ampère–Maxwell law gives ∇×(∇×A→)=μ0J→ −1c2∂∂t(∇ϕ+∂A→∂t). With ∇×∇×A→=−∇2A→ (since ∇⋅A→=0): ∇2A→−1c2∂2A→∂t2=−μ0J→+1c2∇∂ϕ∂t. For steady currents (∂t=0) this is ∇2A→=−μ0J→, A→=μ04π∫J→(r→′)|r→−r→′|dV′. In a source-free region (ρ=0, so ϕ=0) it is the plain wave equation ∇2A→=1c2∂t2A→.

✓ Derivation checked step by step We checked the gauge transformation, the Coulomb condition and the resulting equation for A→.

↑ Back to the question list

Define scalar and vector potentials. Recast Maxwell’s equations in terms of these potentials.

2001 · Paper I · Q7a · 20 marks

Solution

Scalar and vector potentials.

  • ∇⋅B→=0 means B→ is the curl of some field: B→=∇×A→. A→ is the vector potential.
  • Then Faraday’s law says ∇×(E→+∂tA→)=0, so E→+∂tA→=−∇ϕ for some scalar ϕ, the scalar potential: E→=−∇ϕ−∂A→∂t. In statics these reduce to the electrostatic potential and the magnetostatic vector potential.

Maxwell’s equations in terms of the potentials.

  1. ∇⋅B→=0 – satisfied identically.
  2. ∇×E→=−∂tB→ – satisfied identically.
  3. Gauss’s law becomes ∇2ϕ+∂∂t(∇⋅A→)=−ρε0.
  4. The Ampère–Maxwell law becomes (∇2A→−1c2∂2A→∂t2) −∇(∇⋅A→+1c2∂ϕ∂t)=−μ0J→.

So four equations for six field components become two equations for four potential components. In the Lorenz gauge, ∇⋅A→+1c2∂tϕ=0, they separate into □ϕ=−ρε0,□A→=−μ0J→.

✓ Derivation checked step by step We checked that the potentials satisfy the two homogeneous equations and give the two inhomogeneous equations stated.

↑ Back to the question list

Starting from Biot Savart’s law, find the vector potential at a distance r, from a current carrying wire.

1996 · Paper I · Q1b · 20 marks

Solution

Setup. Put the wire along the z-axis from z=−L/2 to z=L/2, and the point P at distance x on the perpendicular bisector. Each element Idzẑ is at distance z2+x2 from P.

Vector potential. By the Biot–Savart form for A→, A→=μ04π∫Idl→r=μ0I4πẑ∫−L/2L/2dzz2+x2. The integral is 2sinh−1L2x, so A→=μ0I2πln[L/2+x2+L2/4x]ẑ. A→ is parallel to the current.

Long wire (L≫x). A→≈μ0I2πlnLxẑ. This grows without limit as L→∞, but only the dependence on x matters physically. Writing A→=−μ0I2πlnxẑ+const: B→=∇×A→=−∂Az∂xϕ̂=μ0I2πxϕ̂, the familiar field of a long straight wire.

✓ Checked by computer We integrated ∫dz/z2+x2 over the wire symbolically and checked the long-wire limit.

↑ Back to the question list

Starting from maxwell equations obtain differential equations for scalar and vector potentials. Choosing the required gauge obtain identical differential equations for scalar and vector potentials. Solve the equation for scalar potential in a dielectric medium having a source of charge density ρ.

1995 · Paper I · Q3 · 60 marks

Solution

Equations for the potentials. In a linear medium (ε, μ) write B→=∇×A→ and E→=−∇ϕ−∂tA→. Then ∇⋅D→=ρ and ∇×H→=J→+∂tD→ give ∇2ϕ+∂∂t∇⋅A→=−ρε, ∇2A→−με∂2A→∂t2 −∇(∇⋅A→+με∂ϕ∂t)=−μJ→. They are coupled.

Choosing the gauge. Use the gauge freedom (A→→A→+∇Λ, ϕ→ϕ−∂tΛ) to impose the Lorenz condition for the medium: ∇⋅A→+με∂ϕ∂t=0. Then the two equations take identical form: ∇2ϕ−1v2∂2ϕ∂t2=−ρε, ∇2A→−1v2∂2A→∂t2=−μJ→, with v=1/με.

Solving for ϕ.

  1. Static case. ∇2ϕ=−ρ/ε. The potential of a point charge q is q/(4πεr), which satisfies ∇21r=−4πδ3(r→). Superposing, ϕ(r→)=14πε∫ρ(r→′)|r→−r→′|dV′.
  2. Time-dependent case. A disturbance at r→′ takes time |r→−r→′|/v to reach r→. The Green’s function of the wave operator that respects causality is δ(t′−t+R/v)4πR, R=|r→−r→′|. Using it, ϕ(r→,t)=14πε∫ρ(r→′,tr)RdV′, with tr=t−R/v.

This is the retarded potential: the charge density is evaluated at the earlier (“retarded”) time t−R/v. One can check directly that it satisfies the wave equation above. In the same way, A→(r→,t)=μ4π∫J→(r→′,t−R/v)RdV′.

✓ Derivation checked step by step We checked the coupled equations, the Lorenz-gauge reduction in a medium, and the retarded solution for ϕ.

↑ Back to the question list

More on Electromagnetic Waves and Blackbody Radiation

Questions: UPSC Civil Services (Main) Examination, Physics Paper I, 1995–2025. 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