Re: simple antiderivative
- To: mathgroup at smc.vnet.net
- Subject: [mg68114] Re: simple antiderivative
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Mon, 24 Jul 2006 05:52:22 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <ea1nh0$pjt$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
T Harris wrote:
> Hello, I am a beginner with Mathematica and I am wrapping up Calculus 1
> right now. Here is my question.
>
> I am doing antiderivatives and tried to check one I did and can't get my
> handworked answer which is correct by the solution manual to match
> Mathematica's
> answer. I copied and pasted everything here so it looks weird until you
> paste it back in notebook.
>
> Here is my input copied and pasted;
>
> \!\(Integrate[8 x - 3\ \(Sec\^2\)[x], x]\)
>
> My output is :
>
> \!\(\[Integral]\((8\ x - 3\ \(Sec\^2\)[x])\) \[DifferentialD]x\)
>
> Why don't I get the answer below as I do when I do it by hand? The
> antiderivative of Sec^2 is Tan. I am puzzled by the output mathematica
> gives.
>
> \!\(4 x\^2 - 3\ Tan\ [x]\)
>
>
> Thanks
>
> T Harris
>
You must not separate the head of a function from its argument.
Therefore, write Sec[x]^(2) instead of Sec^(2)[x]. For instance,
Integrate[8x-3 Sec[x]^(2),x]
returns
2
4 x - 3 Tan[x]
as expected.
Regards,
Jean-Marc