# Revision history [back]

In addition, symbolic functions have an integrate method. For example, given the function $latex f(x) = \sin(x)\tan(x)$,

sage: var('x')
sage: f = sin(x)*tan(x)


its symbolic integral is calculated like so:

sage: f.integrate(x)
-1/2*log(sin(x) - 1) + 1/2*log(sin(x) + 1) - sin(x)


Be sure to provide the variable you wish to integrate with respect to as an argument to integrate.

In addition, symbolic functions have an integrate method. For example, given the function $latex f(x) $$f(x) = \sin(x)\tan(x),\sin(x)\tan(x)$$, sage: var('x') sage: f = sin(x)*tan(x)  its symbolic integral is calculated like so: sage: f.integrate(x) -1/2*log(sin(x) - 1) + 1/2*log(sin(x) + 1) - sin(x)  Be sure to provide the variable you wish to integrate with respect to as an argument to integrate.  3 No.3 Revision Evgeny 51 ●3 ●5 ●11 In addition, symbolic functions have an integrate method. For example, given the function $$f(x) f(x) = \sin(x)\tan(x)$$,\sin(x)\tan(x)$,

sage: var('x')
sage: f = sin(x)*tan(x)


its symbolic integral is calculated like so:

sage: f.integrate(x)
-1/2*log(sin(x) - 1) + 1/2*log(sin(x) + 1) - sin(x)


Be sure to provide the variable you wish to integrate with respect to as an argument to integrate.