Post Reply 
problems with integration
12-06-2014, 03:35 PM (This post was last modified: 12-06-2014 04:12 PM by Han.)
Post: #16
RE: problems with integration
(12-06-2014 01:39 PM)resolved Wrote:  I tried integrating with piecewise in the integral I get "Warning: piecewise indefinite integration does not return a continuous antiderivative" Enter again and I get each term integrated separately. for example I assigned y2 the following function

y2:=-24+18*piecewise(x-9 if x>0, 0 if x<=0) + 3*(piecewise((x-9)^2 if x>0, 0 if x<=0)) + 21*piecewise((x-3) if x>0, 0 if x<=0) - 3*(piecewise((x-3)^2 if x>0, 0 if x<=0))

Why are you defining the piecewise function to break at x=0? Should each piecewise function break at x=9 or x=3?

[Image: attachment.php?aid=1266]
[Image: attachment.php?aid=1267]
[Image: attachment.php?aid=1268]

I entered in the antiderivative as shown in the screens above, and solved with

solve({f(3)=0,f(9)=0},{c1,c2}) and got {[72 -108]}

So the HP Prime knows how to solve the final equation, provided that it's constructed correctly.

The issue here is that you are using a regular antiderivative to compute the antiderivative of <x-a>^k. They aren't technically the same thing because a regular antiderivative of something like (x-a) is correct up to any constant.
\[ \frac{1}{2}(x-a)^2, \quad \frac{x^2}{2}-ax, \quad \frac{x^2}{2}-ax + C, \quad etc \]
On the other hand antiderivative of something like <x-a> must necessarily be 1/2*<x^2-2ax+a^2> + C based on my understanding of your description of <x-a>.

I'm not sure that even mathematica can correctly give you the antiderivative unless it knows how to handle functions of the form <x-a>. Does it? I'm not at my office to test.


Attached File(s) Thumbnail(s)
           

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
problems with integration - resolved - 11-28-2014, 05:04 AM
RE: problems with integration - parisse - 11-28-2014, 07:33 AM
RE: problems with integration - resolved - 11-28-2014, 01:26 PM
RE: problems with integration - parisse - 11-28-2014, 02:33 PM
RE: problems with integration - akmon - 11-28-2014, 10:30 PM
RE: problems with integration - resolved - 11-29-2014, 11:42 AM
RE: problems with integration - Gilles - 11-29-2014, 09:00 PM
RE: problems with integration - akmon - 11-29-2014, 01:32 PM
RE: problems with integration - peacecalc - 11-29-2014, 08:12 PM
RE: problems with integration - parisse - 11-30-2014, 07:10 AM
RE: problems with integration - resolved - 11-30-2014, 12:22 PM
RE: problems with integration - akmon - 11-30-2014, 12:28 PM
RE: problems with integration - resolved - 12-01-2014, 06:00 AM
RE: problems with integration - Han - 12-01-2014, 03:45 PM
RE: problems with integration - resolved - 12-06-2014, 01:39 PM
RE: problems with integration - Han - 12-06-2014 03:35 PM
RE: problems with integration - resolved - 12-06-2014, 03:37 PM
RE: problems with integration - Han - 12-06-2014, 03:46 PM
RE: problems with integration - resolved - 12-06-2014, 04:07 PM
RE: problems with integration - resolved - 12-07-2014, 12:07 PM
RE: problems with integration - Han - 12-08-2014, 02:19 AM
RE: problems with integration - Claudio L. - 01-07-2015, 03:48 PM
RE: problems with integration - Han - 12-08-2014, 03:57 PM
RE: problems with integration - resolved - 01-03-2015, 11:45 AM
RE: problems with integration - resolved - 01-06-2015, 01:55 AM
RE: problems with integration - Han - 01-06-2015, 01:09 PM
RE: problems with integration - resolved - 01-07-2015, 03:57 AM
RE: problems with integration - resolved - 01-08-2015, 12:40 AM
RE: problems with integration - Han - 01-07-2015, 05:11 AM
RE: problems with integration - Snorre - 01-07-2015, 08:57 AM
RE: problems with integration - resolved - 01-09-2015, 04:13 AM
RE: problems with integration - parisse - 01-09-2015, 07:21 AM
RE: problems with integration - parisse - 01-09-2015, 12:40 PM
RE: problems with integration - resolved - 01-10-2015, 10:30 AM
RE: problems with integration - rprosperi - 01-10-2015, 01:34 PM
RE: problems with integration - Snorre - 01-10-2015, 02:16 PM
RE: problems with integration - Han - 01-10-2015, 02:19 PM
RE: problems with integration - parisse - 01-10-2015, 03:17 PM
RE: problems with integration - Snorre - 01-10-2015, 03:58 PM
RE: problems with integration - parisse - 01-10-2015, 07:58 PM
RE: problems with integration - jte - 01-12-2015, 06:18 AM



User(s) browsing this thread: 1 Guest(s)