Gauge Potential Transformations

Can someone please show me what transformation the lagrangian is invariant under in a theory with just an SU(N) gauge field (with or w/o a source term I don't think it matters). I tried to find this on my own and I got some confusing answers.

Except for U(1), every source I found said that the transformation is of the form [itex]A_\mu \rightarrow UA_\mu U^\dagger - iU\partial_\mu U^\dagger[/itex]. However, this clearly doesn't apply to a U(1) gauge field where the transformation is [itex]A_\mu \rightarrow A + \partial_\mu f[/itex]

*edit* I just realized that they are actually the same, but I can't figure how to delete this thread.

The Physics Forums Way

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving