Two general theories exist on the origins of yoga. The linear model holds that yoga has Vedic origins, as reflected in the Vedic textual corpus, and influenced Buddhism; according to author Edward Fitzpatrick Crangle, this model is mainly supported by Hindu scholars. According to the synthesis model, yoga is a synthesis of indigenous, non-Vedic and Vedic elements; this model is favoured in Western scholarship.
Learn more on Wikipedia