The problem is as follows: A ball moving in a straight line is experiencing acceleration $a(t)=kt$ until it arrives at a certain length $l$ when some time $t_f$ has passed. The initial speed and position are both $0$
In order to solve this equation I tried using the alternative form $\int v dv = \int a dx$
In which I found the final speed via $\int_{0}^{v_f}v dv=\int_{0}^{l} k t dx$ result being $\frac{1}{2} {v_f}^2 = l k t_f $
This is wrong.
My questions are:
1.How does one go about integrating acceletarion with respect to position, when acceletarion is time dependant.
2.Why does the aformentioned process work when acceletarion is constant.