From: "Amisha Shah" <>
Newsgroups: comp.soft-sys.matlab
Subject: Solving unknown in eqn with integral
Date: Sun, 30 May 2010 00:31:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <htsbk8$hk$>
Reply-To: "Amisha Shah" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1275179464 564 (30 May 2010 00:31:04 GMT)
NNTP-Posting-Date: Sun, 30 May 2010 00:31:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2370815
Xref: comp.soft-sys.matlab:640576

Dear Community,

I have one equation and one unknown but the unknown is imbedded in an integral.

For example:

x +5 = x^2 + integral (x*y2)dy (boundary from 0,1)

I would like to solve for x using lsqnonlin but unsure how to incorporate the integral into it.

Please help!