Terahertz Driven Linear Function