Sluggish pickup on 2003 Hyundai Sonata

For the past few months my car does not pick up speed and it shakes when I am idling. Is this an engine problem or transmission problem

Asked by for the 2003 Hyundai Sonata
Hello this seems like you may have a misfire in the engine.Has the check engine light come on and what is the mileage and when was the last service.I would have a diagnostic performed by a qualified repair center like I.F.A. in Oakland,Ca.ask for Karl or Dana they can solve the problem that you are having.HAVE A BLESS DAY from DR. RECO.