To pump a solute across a membrane against its gradient requires work; the cell must expend energy. Therefore, this type of membrane traffic is called active transport. The transport proteins that move solutes against their concentration gradients are all carrier proteins rather than channel proteins. This makes sense because when channel proteins are open, they merely allow solutes to diffuse down their concentration gradients rather than picking them up and transporting them against their gradients.
Active transport enables a cell to maintain internal concentrations of small solutes that differ from concentrations in its environment. For example, compared with its surroundings, an animal cell has a much higher concentration of potassium ions (K+) and a much lower concentration of sodium ions (Na+). The plasma membrane helps maintain these steep gradients by pumping Na+ out of the cell and K+ into the cell.
As in other types of cellular work, ATP hydrolysis supplies the energy for most active transport. One way ATP can power active transport is when its terminal phosphate group is transferred directly to the transport protein. This can induce the protein to change its shape in a manner that translocates a solute bound to the protein across the membrane. One transport system that works this way is the sodium-potassium pump, which exchanges Na+ for K+ across the plasma membrane of animal cells.
Urry, Lisa A.. Campbell Biology. Pearson Education. Kindle Edition. https://www.pearson.com/us/higher-education/series/Campbell-Biology-Series/2244849.html