How to disable the discrete graphics card on a mid 2010 MacBook Pro on El Capitan?
That is neither a permanent solution nor it disables discrete graphics card, you will end up with very slow graphics that make your computer unusable for everyday work.

I answered this other question with the full procedure to permanently disable discrete graphics card on startup.