The current is defined as follows:\$\$
\$ i=\begin{cases} 4 & 0<t<1 \\ 4t^2 & t > 1 \\ \end{cases} \$
The goal is to calculate the charge from \$t=0\$ to \$t=2\$ s
What I've tried:
I've tried integrating both parts.
\$\int 4dt=4t+c\$
\$\int 4t^2dt=\frac{4}{3}t^3+c\$
Then I fill in \$2\$ in the second integrated equation and \$0\$ in the first equation, and I subtract. I get \$\frac{32}{3}\$ coulombs as the answer, but I should get \$\frac{40}{3}\$ coulombs.
Where did I go wrong?