I took the magical knack trait to pump my caster lvl by 2. Does this affect my animal companion lvl too? or are they seperate and my pet is always stuck at rangerlvl-3? I figured taking this trait would allow my pet to be only 1 lvl lower, but our group thinks otherwise. Thanks for all the help!
Magical Knack has nothing to do with your animal companion. You animal companion isn't based on your caster level it's based on your Druid level. A ranger has a Druid level of level -3.
If you want to up this you can take the feat Boon Companion.