Hello(adsbygoogle = window.adsbygoogle || []).push({});

I am having a problem solving a set of simultaneous equations in mathematica. One of the equations is an integral, with the unkowns as limits of integration, and the other is a function containing both variables, but no closed form solution can be found for either variable. I am therefore attempting to solve it numerically.

I have tried both FindRoot and NSolve, and i get the same error for both, namely that algebraic limits cannot be supplied with Nintegrate. Below is a sample of what I'm trying to do (I have replaced the functions with simpler examples to avoid confusion - I am aware that this problem does not need to be solved numerically!!)

Apologies if i the above code has errors, I have had to copy it from one machine to another, and may have made a mistake in doing so.Code (Text):f[s_] := 2 s

NSolve[{NIntegrate[f[s], {s, (a + b)/2, a + 2 b}] == 0, a - 2 b + 2 == 0. {a, b}]

Any help would be greatly appreciated.

Mat Davies

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Simultaneous equations with an integral

Loading...

Similar Threads - Simultaneous equations integral | Date |
---|---|

Running simultaneous computation in mathematica | Nov 27, 2011 |

Solving simultaneous equations with big matrices using Mathematica 7 | Jun 4, 2011 |

Need help to solve simultaneous equation in Mathematica | Apr 23, 2011 |

Solving two ODE's Simultaneously using MATLAB | Apr 3, 2011 |

Solving four ordinary dif equations simultaneously using ode45 matlab | Nov 29, 2006 |

**Physics Forums - The Fusion of Science and Community**