Maybe it's a really basic question as i just started learning calculus but If integration represents the area under a curve, why indefinite integrals gives a function as area and how it is related to the area under that curve? Like definite integrals which gives a 'number' as the area.
also why integration of sin is -cos and not '0(zero)' as if we see sin graph it has equal no of crests as valleys of equal areas so why they don't cancel each other out and give '0'?
thank you.
(1) $\LARGE {\int}_a^b f(x)dx $ is a number ( which corresponds to the area under the graph of function $f$ from $x=a$ to $x=b$ in case this graph is above the $X-$ axis.)
(2) $\LARGE g(x)={\int}_a^x f(t)dt $ is a function that gives as output the number called " definite integral " ( as defined in (1) above) for a varying limit of integration $x$. So, the input of this function , $x$ , is the varying upper limit of integration. Maybe one could call $g(x)$ the definite integral function; it is sometimes called the " accumulation function".
Example : https://www.desmos.com/calculator/todsdsoeaf
(3) $ \LARGE h(x) = \int f(x)dx $ is the indefinite integral , which is defined as a generic function representing all the antiderivatives or primitives of function $f$. So $h(x)= \LARGE \int f(x)dx $ reads as " function $h$ is any primitive of $f$ " .
With $f, g, h$ as defined above , we have :
(1) $\LARGE g'(x) = f(x)$ , i.e. the derivative of $g(x)$ - the accumulation function of $f(x)$ - is functon $f$ itself ; meaning that integration and derivation are inverse processes.
(2) $\LARGE {\int}_a^b f(x)dx = h(b) - h(a) $ .
Since the most dffcult concept is the idea of an " accumulation function" , I add this picture . In this picture, I have arbitrarily chosen $a=0$ as the lower limit of integration.