I am having trouble figuring out how to solve this with $k$ as a constant instead of a given value. How would I find the numbers to put into the integral? this is what i have so far.
$\int kx-(x^2-1)\;dx$
I know how to integrate and solve, it's what the integral is bound by is the part I'm struggling with.
Here's a simple graph for visualization:
Notice that the area is bounded by two $x$ coordinates, which incidentally happen to be the solutions to the intersection of the parabola and the line.
Can you figure out the bounds now?