I'm trying to find vout as a function of v1,r,c, and v2, but I'm i'm kind of stuck on what to do.
I'm pretty sure you need to do nodal analysis, but I've never really encountered a circuit like this where I need to find the voltage when it goes to ground.
My initial attempt looks like (v1-vx)/R+(v2-vx)/Zc=0 where vx is the voltage at that node. I'm not sure if there's more to the equation or how to find bout.
Any help would be appreciated.