Consider the function
\(\[ f(x) = \begin{cases} ax^2 & \text{if } x \geq a,\\ ax +2a& \text{if } x
where a is some number. What is the largest value of a such that the graph of \(y=f(x)\) intersects every horizontal line at least once?
The largest possible value of a is 8.