Ask Your Question
0

Using solve() to find an unknown which is a limit of integration?

asked 2013-05-24 05:28:24 +0200

boyfarrell gravatar image

Is it possible to use the solve() function to find an unknown which is a limit of integration? A trivial example would be,

$$ \int_0^{x^\prime} mx+c \quad dx = 10 $$

where $x^{\prime}$ is the unknown ($m$ and $c$ are both known).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-05-24 06:11:45 +0200

tmonteil gravatar image

updated 2013-05-24 06:14:55 +0200

For such an easy example, Sage is able to do it in the following way:

sage: var('x,c,m,t')
(x, c, m, t)
sage: f(x) = m*x + c

sage: solve([f.integral(x,0,t) == 0], t)
[t == -2*c/m, t == 0]

sage: solve([f.integral(x,0,t) == 10], t)
[t == -(c + sqrt(c^2 + 20*m))/m, t == -(c - sqrt(c^2 + 20*m))/m]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-05-24 05:28:24 +0200

Seen: 458 times

Last updated: May 24 '13