If you have read the HSW page entitled How Car Engines Work, you know about the valves that let air into the engine and let exhaust out of the engine. You also know about the cam shaft that controls the valves. The camshaft uses rotating lobes that push against the valves to open and close them. This is an animation from How Car Engines Work to help understand how the cam shaft opens and closes the valves:
It turns out that there is big relationship between the way the lobes are ground on the camshaft and the way the engine performs in different RPM ranges. To understand why this is the case, imagine that we were running an engine extremely slowly - at just 10 or 20 RPMs, so it took the piston seconds to complete a cycle. It would be impossible to actually run a normal engine this slowly, but imagine that we could. We would want to grind the cam shaft so that, just as the piston starts moving downward in the intake stroke, the intake valve would open. The intake valve would close right as the piston bottoms out. Then the exhaust valve would open right as the piston bottoms out at the end of the combustion stroke and would close as the piston completes the exhaust stroke. That would work great for the engine as long as it ran at this very slow speed.
When you increase the RPMs, however, this configuration for the camshaft does not work well. If the engine is running at 4,000 RPM, the valves are opening and closing 2,000 times every minute, or 3 to 4 times every second. When the intake valve opens right at the top of the intake stroke, it turns out that the piston has a lot of trouble getting the air moving into the cylinder in the short time available (a fraction of a second). Therefore, at higher RPMs you want the intake valve to open prior to the intake stroke - actually back in the exhaust stroke - so that by the time the piston starts moving downward in the intake stroke the valve is open and air moves freely into the cylinder during the entire intake stroke. This is something of a simplification, but you get the idea. For maximum engine performance at low engine speeds the valves need to open and close differently than they do at higher engine speeds. If you put in a good low-speed camshaft it hurts the engine's performance at high speeds, and if you put in a good high-speed camshart it hurts the engine's performance at low speeds (and in extreme cases can make it very hard to start the engine!).
VTEC (which stands for Variable Valve Timing and Lift Electronic Control) is an electronic and mechanical system in some Honda engines that allows the engine to effectively have multiple camshafts. As the engine moves into different RPM ranges, the engine's computer can activate alternate lobes on the camshaft and change the cam's timing. In this way the engine gets the best features of low-speed and high-speed camshafts in the same engine. Several of the links below go into the actual mechanics of the VTEC system if you are interested.
Several engine manufacturers are experimenting with systems that would allow infinite variability in valve timing. For example, imagine that each valve had a solenoid on it that could open and close the valve under computer control rather than relying on a camshaft. With this type of system you would get maximum engine performance at every RPM. Something to look forward to in the future...
Here are several interesting links: