As Phillip says, you can set in the nvidia control panel to use the nvidia gpu when running a program. In normal windows use it should use the intel GPU to save power.
yeah you can set all that to do different things depending on being plugged in or not. Go into the advanced options and youll see different settings for on battery or AC power.