Professional Documents
Culture Documents
ESCUELATCNICASUPERIORDEINGENIERA
(ICAI)
INGENIEROENINFORMTICA
PROYECTOFINDECARRERA
RESOLUCINNUMRICADE
SISTEMASDEECUACIONES
NOLINEALES
AUTOR: D.CARLOTASEZCANALES
MADRID, SEPTIEMBRE2006
Agradecimientos
Quieroagradeceramimadreelapoyoquemehadadoenestosaosde
carrera,especialmenteenesteltimoao,porsucomprensinypor
hacermelascosasmsfciles.
TambinquierodarlasgraciasaLydia,NataliayOscarporser
grandesamigosentodoslosmomentosdemividayporayudarmea
seguiradelante.
AgradeceraFranciscoJavierRodrguezGmezsuayudaparapoder
realizaresteproyecto,supacienciaycomprensin.
TambinquieromencionaralAtril,porsusgrandesdesayunosqueme
dabanfuerzasparahaceresteproyecto.
Resumen
Esteproyectoconsisteprincipalmenteenelestudiodelasbasesmatemticas,
anlisisydiseodelosdiferentesalgoritmosnumricosqueresuelvenelproblemadelos
sistemasdeecuacionesnolineales.Paraeldesarrollodedichosalgoritmossehaempleado
elpaquetedeclculonumrico,simblicoygrficoMathematica
debidoalasgrandes
posibilidadesdeclculoyrepresentacingrficaqueofrece.Esunsistemadecomputacin
numricoysimblicoqueincorporaunexcelentelenguajedeprogramacinylacapacidad
de integrar clculos,
grficos
caractersticasquedistinguenaMathematicadelosprogramasdeanlisisconvencionales
sonsuverstilinterfazgrficaysusofisticadoenguajeldeprogramacin.Comopruebade
todoesto,laaplicacinde MathematicaenloscamposdelaEconoma,Fsica,Qumica,
BiologaoLingstica.Tambinsehadesarrolladouninterfazgrficoimplementadocon
GUIkit,quepermite
desarrollaraplicacionesindependientesconclculossofisticadosy
creacindegrficos.
Lametodologaempleadaenesteproyectohaconsistidobsicamenteendetallarlateora
matemticadecadamtodonumrico,sudiseoeneudocdigo,pssucodificacinysu
desarrolloenelpaquetedeclculonumrico,simblicoygrficoMathematica,yla
resolucin prctica
comprensindelosalgoritmosestudiadosycomprendersuaplicacinprctica.Enla
resolucindelosproblemassemuestracomosolucinlosclculosmsimportantesquese
II
realizanencadaiteracinpararesolverelproblema,untablaresumenconlosdatosms
importantesqueresultandecadaiteraciny,porltimo,lasolucinaproximadadel
problema.Ademssehacreadounainterfazgrficaparaqueelusuariopuedaresolverlos
sistemasdeecuacionesnolinealesdeunaformamsfcil.
En matemticas,
comportamientonoesexpresablecomolasumadeloscomportamientosdesuspartes.En
particular,elcomportamientodesistemasdeecuacionesnolinealesnoestsujetoal
principiodesuperposicin,comoloesunsistemalineal.La
linealidaddeunsistemade
aproximaciones,permitiendounclculomssencillodelosresultados.Comolossistemas
nolinealesnosonigualesalasumadesuspartes,usualmentesondifcilesdemodelar,y
sus comportamientos con respecto a una variable dada, por ejemplo el tiempo, es
extremadamentedifcildepredecir.Adems,lossistemasnolinealessonsistemasenlos
quesuspartesocomponentesinteractandetalformaquesedaunacontinuainfluencia
mutuaorelacincausalqueseretroalimenta.Esta influenciamutuapuededescribirse
mediantefuncionesnolineales.
Lasecuacionesnolinealessondeintersenelcampodelacienciaytecnologadebidoa
quelamayoradelosproblemasfsicossonimplcitamentenolinealesensunaturaleza.
Unaecuacinnolinealesunaecuacindelaforma f(x)=0,paraalgnvalordesconocido
de x y no puede ser dibujada en un plano mediante una lnea. En muchos casos,
manipulandounaecuacinnolinealalgebraicamente,
sepuededarunafrmulaexplcita
paralaobtencindelasolucinosoluciones.Porejemploparalaecuacindesegundo
grado,sedisponedeunafrmulaanalticaquedasusolucin.
III
Sinembargo,enotrasmuchasocasionesesmuydifcil,inclusoimposibleenlamayorparte
deloscasos,obtenerlasolucinexactadelaecuacinpormtodosalgebraicos.Algunos
ejemplosquenopuedeserresueltosdeformaexactason:
x2=sen(x)3,cos(x)+
Exp(x)=sen(x)5.Enestoscasos,esnecesariorecurriramtodosnumricosparaobtener
unasolucinaproximadayparadarunaestimacindelerrorcometidoentalaproximacin,
esdecir,aproximarlarazconelgradodeprecisindeseado.
Enesteproyectosehananalizadoseismtodosnumricosparalaresolucindesistemasde
ecuacionesnolineales,estosmtodossonlossiguientes:
1.
MtododelPuntoFijo.
2.
MtododeSeidel.
3.
MtododeNewton.
4.
MtododeCuasiNewton.
5.
MtododelaMximaPendiente.
6.
MtododeContinuacinuHomotopa.
Algunosejemplosdeaplicacionesdeecuacionesnolinealesson:larelatividadgeneral,la
teoradelcaos,lasecuacionesdeNavierStokesdedinmicadefluidos,lapticano
lineal,elsistemadelclimadelaTierra,elbalanceodeununiciclorobotolagestindelas
organizaciones.
Elprincipalobjetivodeesteproyectoesdisearunaherramientaqueayudeacalcular
IV
solucionesaproximadasasistemasdeecuacionesnolinealesmedianteeldesarrolloe
implementacindediferentesmtodosnumricosqueresuelvendeformaaproximadaeste
tipodesistemasdeecuaciones.Peroadems,tambinsehanconseguidootrosobjetivos
comoelestudiodelosmtodosnumricosqueresuelvensistemasdeecuacionesnolineales
ydelaconvergenciadedichomtodosparaidentificarelmejormtodoaemplearencada
tipodeproblema,determinarelerrorcometidoenlaaproximacinnumricadelas
soluciones.
SehadiseadounpaquetedefuncionesenellenguajeMathematicaquecontienelos
algoritmosnumricosqueseempleanenlaresolucindesistemasdeecuacionesno
lineales,deestaformasepuedenabordarproblemasdelmundoreal,quedeotromodosera
casiimposiblederesolverdeformamanual,dadoelelevadonmerodedatosaprocesary
alacantidaddeclculosarealizar.Estepaquetedefuncionessehacreadosiguiendouna
estructuramodularparapermitirfuturasintegracionesconotrossistemasomejoras.
Abstract
ThisProjectconsistsmainlyonthestudyofthemathematicalbasis,analysisand
designofthedifferentnumericalalgorithmsthatresolvesproblemsofnonlinearequation
systems.Thepacketofnumericalcalculus,symbolicandgraphycalMathematicaisused
forthealgorithmsbecausethepackethasbigpossibilitiesofcalculusandgraphical
representations.Thatisasystemofnumericalandsymboliccomputationthathasan
excelentprogramminglanguageandcapacityofmakeupcalculus,graphicsandtextonone
document. The mainly characteristics that distinguish Mathematica of conventional
analiticalprogramareherversatilegraphicalinterfaceandhersophisticatedprogrammming
language.Asaproofofthis,
theapplicationofMathematicaonfieldssuchasEconomy,
Phisics,Chemestry,BiologyorLanguage.Aswell,ithasbeendevelopedagraphical
interfaceimplementwithGUIkit,thatallowstodevelopindependentapplicationswith
sophisticatescalculusandcreationofgraphics.
ThemethodologyusedinthisProjectconsistsbasicallyonlistingthemathematicaltheory
ofeachnumercialmethods,itsdesignonpseudocodem,itscodificationanddeveloping
withthepacketofnumericalcalculus,symbolicandgraphycalMathematica,andthe
practicalresolutionofeveryexamplesandproblemsproposestomakeeasythecompresion
ofthestudiesalgorithmsandtocompriseitspracticalapplication.Intheresolutionof
problemsitisshownasa solutionthemostimportantcalculusthatarecarriedoutinsuch
iterationforresolvetheproblem,asummarytablewiththemostimportantdatathatresults
VI
insuchiteration,andfinally,theapproximatesolutionoftheproblem.Aswell,agraphical
interfaceiscreatedfortheusercanresolvethenonlinearequationsystemseasily.
Inmathematics,thenonlinearequationsystemsrepresentssystemswichbehaviouris
notexppresablesuchthesumofthebehaviour
ofitsparts.Inspecial,thebehaviourof
nonlinaerequationsystemsarenotsubjecttothesuperpositionprinciple,suchasisalinear
system. The liniality of the equation systems allows researchers make mathematical
suppositionsandapproximations,permittingaeasilycalculusofresults.
Suchthenonlinearsystemsarenotequalstothesumofitsparts,usuallythesystemsare
dificultofmodel,anditsbehaviourswithregardtoonevariablegiven,forexample,the
weather,isextremelydifficulttopredict.Aswell,thenonlinearsystemsaresystemsinthat
itspartsorcomponentsinteractwithacontinuousmutualinfluence.Thismutualinfluence
canbedescribedwithnonlinearfunctions.
Thenonlinearequationsareinterestedinthefieldofscienceandthecnologybecausethe
mostofphysicalproblemsareimplicitlynonlinearinhernature.Anonlinearequationisa
equationofformf(x)=0,foranyunknownvalueofxanditcannotbedrawninaplane
withaline.Inmanycases,manipulatingalgebraticmentanonlinearequation,cangivean
explicitformulatoobtainthesolutionorsolutions.Forexampleforthesecondgrade
equation,existsoneanalyticalformulethatgivesthesolition.
Nevertheless,inothercasesisdifficult,evenimpossibleinthemajorityofcases,toobtain
theexactsolutionoftheequationwhitalgebraticalmethods.Someexaplesthatcannotbe
resolvesintheexactformare:x2=sen(x)3,cos(x)+Exp(x)=sen(x)5.Inthiscases,
VII
isnecesarytorecoursetonumericalmethodstoobtainanapproximatesolutionandtogive
anestimationofthemistakemakedontheapproximation,itmeans,toapproxtherootwith
thepreciosionrankwhised.
Sixnumericalmethodsareanalyzedinthisprojectforresolvenonlinearequationsystems,
thismethodsarethefollowings:
1.
Methodoffixedpoint.
2.
MethodofSeidel
3.
MethodofNewton.
4.
MethodofCuasiNewton.
5.
Methodofmaximunslope.
6.
MethodofContinuationorHomotopy.
Someexamplesofapplicationofnonlinearequationare:thegeneralrelativity,thechaos
theory,theNavierStockesequationsofdinamycfluids,theopticsnonlinear,theweather
climatesystemoftheEarthortheorganizationmanagement.
Themainlyobjectiveofthisprojectistodesignatoolthathelpstocalculateapproximate
solutionsfornonlinearequationssystemsbymeansofdevelopingandimplementationof
differentsnumericalmethodsthatresolvesthistypeofequationsystemwithaapproximate
form.Aswell,otherobjetivesareachived:thestudyofnumercialmethodsthatresolves
nonlinearequationsystemsandconvergenceofthemethodsforidentifythebestmethodto
VIII
use in each type of problem, determinate the mistake maked on the numerical
approximationofsolutions.
ApacketoffunctionsinMathematicalanguageisdesignedandcontainsthenumerical
algorithmsthatareusedontheresolutionofnonlinearequationsystems,onthisform
problemsoftherealworldcanbetackledthatonotherformwillbehardlyimpossibleto
resolvewithamanualform,giventheraisenumberofdatestoprocessandthelotof
calculostomake.Thispacketoffunctionsiscreatedfollowingamodularstructuretoallow
futuresintegrationswithothersystemsorimprovements.
IX
ndice
Agradecimientos...................................................................................................................................i
Resumen..................................................................................................................................................ii
Abstract....................................................................................................................................................vi
ndice........................................................................................................................................................x
1.Introduccin.......................................................................................................................................1
2.Objetivos............................................................................................................................................5
3.MtododelPuntoFijo....................................................................................................................7
3.1Introduccin............................................................................................................................7
3.2Pseudocdigo.........................................................................................................................11
3.3Problemas................................................................................................................................12
4.MtododeSeidel.............................................................................................................................41
4.1Introduccin............................................................................................................................41
4.2Pseudocdigo.........................................................................................................................41
4.3Problemas................................................................................................................................42
5.MtododeNewton..........................................................................................................................56
5.1Introduccin............................................................................................................................56
5.2Pseudocdigo.........................................................................................................................60
5.3Problemas................................................................................................................................62
6.MtododeCuasiNewton............................................................................................................149
6.1Introduccin............................................................................................................................149
6.2Pseudocdigo.........................................................................................................................154
6.3Problemas................................................................................................................................155
7.MtododelaMximaPendiente................................................................................................185
7.1Introduccin............................................................................................................................185
7.2Pseudocdigo.........................................................................................................................190
7.3Problemas................................................................................................................................192
8.MtododeContinuacinuHomotopa.....................................................................................210
8.1Introduccin............................................................................................................................210
8.2Pseudocdigo.........................................................................................................................215
8.3Problemas................................................................................................................................217
9.InterfazdeUsuario..........................................................................................................................239
9.1Ventanainicial.......................................................................................................................239
9.2VentanaMtododelPuntoFijo........................................................................................243
9.3VentanaMtododeSeidel.................................................................................................245
9.4VentanaMtododeNewton..............................................................................................247
9.5VentanaMtododeCuasiNewton................................................................................250
9.6VentanaMtododelaMximaPendiente....................................................................252
9.7VentanaMtododeContinuacinuHomotopia.........................................................255
10.Metodologa....................................................................................................................................258
11.Valoracineconmica.................................................................................................................270
11.1.Introduccin........................................................................................................................270
11.2.Tcnicasdeestimacindecostes.................................................................................270
11.3.CostesdelProyecto...........................................................................................................272
12.Conclusiones..................................................................................................................................273
AnexoI.ManualdeInstalacinydeUsuario............................................................................279
ManualdeInstalacin.........................................................................................................................279
ManualdeUsuario...............................................................................................................................281
Bibliografa............................................................................................................................................282
CDROMconelcdigodelosalgoritmosnumricosdeResolucindeSistemasde
EcuacionesnoLinealesenMathematica .
XI
1. Introduccin
Esteproyectoconsisteprincipalmenteenelestudiodelasbasesmatemticas,
anlisisydiseodelosdiferentesalgoritmosnumricosqueresuelvenelproblemadelos
sistemasdeecuacionesnolineales.Paraeldesarrollodedichosalgoritmossehaempleado
elpaquetedeclculonumrico,simblicoygrficoMathematica
debidoalasgrandes
posibilidadesdeclculoyrepresentacingrficaqueofrece.Tambinsehadesarrollado
una interfaz grfica
independientesconclculossofisticadosycreacindegrficosyqueseincluyeenla
versindeMathematica5.2.Porltimo,sehanplanteadoyresueltodiferentesproblemas
parafacilitarlacomprensindelosalgoritmosestudiadosycomprendersuaplicacin
prctica.
Enmatemticas,lossitemasdeecuacionesnolinealesrepresentansistemascuyo
comportamientonoesexpresablecomolasumadeloscomportamientosdesuspartes.En
particular,elcomportamientodesistemasdeecuacionesnolinealesnoestsujetoal
principiodesuperposicin,comoloesunsistemalineal.Un
sistemalinealeselquesu
comportamientonopuedeserlasumadesuspartes.Lalinealidaddeunsistemade
ecuaciones permite a los investigadores hacer ciertas suposiciones matemticas
aproximaciones,permitiendounclculomssencillodelosresultados.Comolossistemas
nolinealesnosonigualesalasumadesuspartes,usualmentesondifcilesdemodelar,y
sus comportamientos con respecto a una variable dada, por ejemplo el tiempo, es
extremadamentedifcildepredecir,adems,lossistemasnolinealessonsistemasenlosque
suspartesocomponentesinteractandetalformaquesedaunacontinuainfluenciamutua
orelacincausalqueseretroalimenta.Estainfluenciamutuapuededescribirsemediante
funcionesnolineales.
Lasecuacionesnolinealessondeintersenelcampodelacienciaytecnologa
debidoaquelamayoradelosproblemasfsicossonimplcitamentenolinealesensu
naturaleza.Unaecuacinlinealpuedeserdescritausandounoperadorlineal,Lysepuede
dibujarenunplanocartesianomedianteunalnea.Unaecuacinlinealenalgnvalor
desconocidodextienelaformaLx=0.Unaecuacinnolinealesunaecuacindela
forma fHxL=0,paraalgnvalordesconocidodexynopuedeserdibujadaenunplano
medianteunalnea.Parapoderresolvercualquierecuacinsenecesitadecidirenqu
espaciomatemticoseencuentralasolucinx.Podraserquexesunnmeroreal,unvector
ounafuncin.Lassolucionesdeecuacioneslinealespuedensergeneralmentedescritas
comounasuperposicindeotrassolucionesdelamismaecuacin.Estohacequelas
ecuacioneslinealesseanmsfcilesderesolver.asLecuacionesnolinealessonmuchoms
complejas, y mucho ms
superpuestas.Paralasecuacionesnolinealeslassolucionesgeneralmentenoformanun
espaciovectorialy,engeneral,nopuedensersuperpuestasparaproducirnuevassoluciones.
Estohaceelresolverlasecuacionesmuchomsdificilqueensistemaslineales.
Enmuchoscasos,manipulandolaecuacinalgebraicamente,sepuededaruna
frmulaexplcitaparalaobtencindelasolucin osoluciones.Porejemplo,parala
2
ecuacindesegundogradoax +bx+c=0,sedisponedelafrmula
x=I-b
b -4acM H2aL.
Sinembargo,enotrasmuchasocasionesesmuydifcil,inclusoimposibleenla
mayorpartedeloscasos,obtenerlasolucinexactadelaecuacinpormtodosalgebraicos.
Algunos
ejemplosque
x-2=senHxL-3cosHxL,
nopuedeserresueltos
2x
de
formaexacta
- 5.Enestoscasos,esnecesario recurrira
son:
mtodos
cometidoentalaproximacin,esdecir,aproximarlarazconelgradodepresicindeseado.
Laresolucin deunsistemadeecuacionesnolinealesesunproblemaqueseevita
siesposible,normalmenteaproximandoelsistemanolinealmedianteunsistemade
ecuacioneslineales.Cuandoestonoresultasatisfactorio,hayqueabordarelproblema
directamenteaplicandolosdiferenetesmtodosdisponibles.
Enesteproyectosevanaanalizarseismtodosnumricosparalaresolucinde
sistemasdeecuacionesnolineales,estosmtodossonlossiguientes:
1.
MtododelPuntoFijo.
2.
MtododeSeidel.
3.
MtododeNewton.
4.
MtododeCuasiNewton.
5.
MtododelaMximaPendiente.
6.
MtododeContinuacinuHomotopa.
Algunosejemplosdeaplicacionesdeecuacionesnolinealesson:larelatividad
general,lateoradelcaos,lasecuacionesdeNavier-Stokesdedinmicadefluidos,la
pticanolineal,elsistemadelclimadelaTierra,elbalanceodeununiciclorobot,la
ecuacindetransportedeBoltzmann,laecuacinde
KortewgdeVires,laecuacinno
linealdeSchroedingerolagestindelasorganizaciones.
Enresumen,elobjetivodelpresenteproyectoconsisteenelestudiodelossistemas
deecuacionesnolineales.Paraello,seanalizarnlosmtodosoalgoritmosnumricospara
laresolucindeestossistemasyseharunestudiosobrelaaplicabilidaddecadamtodoa
diferentestiposdesistemasdeecuacionesnolineales.
2. Objetivos
Elprincipalobjetivodeesteproyectoesdisearunaherramientaqueayudea
calcularsolucionesaproximadasasistemasdeecuacionesnolinealesmedianteeldesarrollo
eimplementacindediferentesmtodosnumricosqueresuelvendeformaaproximadaeste
tipodesistemasdeecuaciones.
Peroadems,tambinsedesprendenlossiguientesubobjetivoseneldesarrollo
delsoftwareparalaresolucindesistemasdeecuacionesnolineales:
1.
El estudio de los mtodos numricos que resuelvensistemas de ecuaciones no
lineales.
2.
Estudiarlaconvergenciadelosmtodosparasaberculeselmtodomsadecuado.
3.
Resolucinmediantemtodosnumricosdelossistemasdeecuacionesnolineales.
4.
Determinarelerrorcometidoenlaaproximacinnumricadelassoluciones.
5.
Aprendizajeyfamiliarizacinconeldesarrolloeimplantacindealgoritmosen
Mathematica.
7.
Abordarproblemasdelmundoreal,quedeotromodoseracasiimposiblede
resolverdeformamanual,dadoelelevadonmerodedatosaprocesaryalacantidadde
clculosarealizar.
8.
Emplear medios informticos actuales como una herramienta ms en el estudio y
aprendizaje.
9.
DesarrollarunainterfazgrficadeusuarioconelpaqueteGUIKitdeMathematica.
10.
Desarrollo modular del software lo que permite futuras integraciones con otros
sistemasylainclusindemejorasomodificaciones.
11.
Laherramientadebeofrecercomosalida,unarchivodetexto,enelquesepresenteel
informedetalladodelasoperacionesrealizadasenlasdiferentesiteracionesrealizadasen
cadamtodo,muytilesencuantoalestudioycompresindelosalgoritmos.
12.
Yporltimo,desarrollarunsoftwaretilparaqueencasosfuturosseautilizadode
formafcilparapoderresolverproblemasquenecesitencalcularsistemasdeecuacionesno
lineales.
(1)
..
..
..
fnHx1,x2, ...,xnL
dondesepuedeconsiderarquetodafuncin
x=Hx1,x2,...,xnL
delespacion-dimensional
fiaplicaunvector
(2)
enlarectareal
Enlasiguientefigurasemuestraunarepresentacingeomtricadeunsistemano
linealcuandon=2.
Sistemanolinealcuandon=2.
Figura1
Demanerageneral,unsistemadenecuacionesnolinealesconnincgnitaspuede
n
representarsemedianteladefinicindeunafuncin
i
Fde en pormediode:
f1 x1,x2 ...,xn
f2Hx1,x2 , ...,xnL
.
.
FHx1,x2,...,xnL=
.
k
L{
. H
x1,x2,..., x
(3)
Siseusalanotacinvectorialpararepresentarlasvariablesx1,x2,...,xn,elsistema
nolinealanteriorseescribecomosigue:
(4)
FHxL=0.
en
Seafunafuncindefinidaenelconjunto
yde
dicequelafuncin ftieneunlmiteLenx0yseescribe
lmfHxL=L
xx0
si,dadocualquiernmero>0,existeunnmerod >0talque
f HxL - L
siemprequexDy0
x - x0 d.
en
convaloresen
.Se
Enestadefinicinpuedeusarsecualquiernormaque
resulteconveniente;elvalor
especficodeddependerdelanormaelegida,perolaexistenciayelvalordellmiteLson
independientesdelanormautilizada.
n
Definicin2. SedicequelafuncinfdeD
en
escontinuaenx0Dsiexiste
lmfHxL
xx0
setienef(x0)yadems
lmfHxL=
fHx0L.
xx0
Sedice,adems,quefescontinuaenelconjuntoDsifescontinuaencadapunto
delconjuntoD,loqueseexpresaescribiendofCHDL.
Sedefinenlosconceptosdelmiteycontinuidadparafuncionesde
n
desusfuncionescomponentesde
en
.
n
Definicin3. SeaFunafuncindeD
i
y
f1 x
FHxL=
f2HxL
.
.
.
j
delaforma
fn
en
L{
EllmitedeFes
lmFHxL=L=HL1,L2,...,LnL
xx0
en
atravs
existeylmF x L = FHx L.
0
D si lmFx
LafuncinFescontinuaenx
0
xx0
HL
xx0
Adems,FescontinuaenelconjuntoDsiloesencadaxdeD.Esteconceptoseexpresa
escribiendoFCHDL.
Teorema1.
Seafunafuncinde
D enyx0D.Siexistenlasconstantesd >0y
k>0con
fx
K, paracadaj = 1,2,...,n.
x j
siempreque x - x
0 d y x D,entonces f escontinuaen x0.
n
Definicin4.
Pordefinicin,unafuncinGdeD en tieneunpuntofijoen
pDsiGHpL=p.
Teorema2.
Sea
D=88x1,x2,...,xn< aixibiparatodai=1,2,...,n<
para
algn
conjuntodeconstantesa1,a2,.....,anyb1,b2,....,bn.SuponiendoqueGesunafuncin
continuadeD
en
conlapropiedaddequeGHxLDsiemprequexD.
EntoncesGtieneunpuntofijoenD.
Ysuponiendo,adems,queGtienederivadasparcialescontinuasyqueexisteuna
constantek
1con
fx
x j
10
cionadaenDarbitrariamenteygeneradapor
k
k-1
x =GHx
L,
paracadak1,
convergeenelpuntofijonicopDy
HkL
H1L
- p k x
1-k
H0L
-x
3.2 Pseudocdigo
Algoritmo1.AlgoritmodelPuntoFijo
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolineales
medianteelmtododelPuntoFijoeselsiguiente.
Algoritmo del Punto Fijo
Input
I8 H
L< 8
L<
1
x
2
H0L
...
xm0
HLL
LL
error_inicial 160
i0
While error_inicial >= error
do
H* Se evala la funcin transformada en el punto*L
p_sig
if
p
ftrans2
trans1
...
k
j
ftrans3
HpL
{
p z
HpL L
Output
11
Tabla de datos.
3.3 Problemas
Problema 1. Aplquese el mtodo de Punto Fijo para sistemas no lineales para aproximar el
sistemadeecuacionesnolinealessiguiente,iniciandoelmtodoenelpunto
H 0L H 0L H 0L T
T
-5
inicialP0=Ix 1 ,x 2 ,x 3 M =H0.1,0.1,-0.1L eiterandohastaquePi+1-Pi10 .
f1Hx1,x2,x3L=3x1-cosHx2x3L-12=0,
f2Hx1,x2,x3L=x -x1-81Hx
2-0.1L +senx3+1.06=0,
x
f3Hx1,x2,x3L=e 1 2+20x3+H10p -3L 3=0.
Solucin
Clear@ecuaciones, ecuacionestrans, p, dD;
10 3
x1 81 Hx2 0.1L
96H
ecuacionestrans =
2 Cos x x
1 j
D
@
x1 x2
iExp
20
+1 ,
+ Sin x + 1.06
x2
@ D
10 3 z= ;
+y
d = 10.
3 x1 +
20 x3
i 0.1 y
H0L
i x1 y
P0 = x2
k
H0L
+ 1
1 2
-0.1
j x3H0L
k
IH
k-1
20
2+
sin
k-1
+ 1.06 - 0.1
x 3H
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
x 1H
z
{
-3 + 10 p
{ = 0.1
k
j x3H0L
x x
+ -
H1
IH
- xHk-1L
xHk-1L L +
LH2
12
LM
3- 10 p
LM
=;
0.1,
H0L
i x1
z
-0.523101267286
y i 0.499995934919
x2H4L
3
i+1
0.00944114960371
k
j
0.423101
{
j -0.523101267286
i 0.499995934919
0.0000255677467667
0.00941558
{
-0.523363310909
i 0.499999999970
0.0000255677467667
y
{
k
j
0.0000123367203634
0.000234826
{
-0.523598136414
i 0.499999999993
0.0000123367203634
x3
z j -0.523363310909
y i 0.499999999970
H4L
i x1
j x2H3L z
k
0.00944114960371
k
j
k x2H2L {
0.100000000000
P -P
i+1
i 0.499983333472
i 0.499983333472
k x2H1L {
j x3H2L
H3L
i x1
0.100000000000 y
k
j
z
-0.100000000000
z
y
j x3H1L
H2L
i x1
k x2H0L {
j x3H0L
H1L
i x1
Pi
3.41679062543 10
-0.523598136414
z k 3.41679062543 10-8
k
j
i 0.499999999993
-8
0.0000123026
{
z
-0.523598467181
i 0.500000000000
k 1.64870403996 10-8
-7
3.07563 10
j -0.523598467181
-0.523598774744
f1Hx1,x2L
k 1.64870403996 10
-0.523598774744
=2 +
x1
10 x + x + 8 = 0,
2
= x1 x2
f2Hx1,x2L
Aplqueseel
1
+ x1 - 10 x2 + 8 = 0.
mtodo
dePuntoFijo
2M
b)
Seaelsistemadeecuacionesnolinealessiguiente.
Problema2.
-8
H 0L
i+1- i
iniciandoelmtodoenelpuntoinicial
-5
10 .
P0=Ix 1 ,x 2 M =H0.8,0.8L .
Solucin
a)
Clear@ecuaciones, p, dD;
ecuaciones = 8x21 + 10 x1 + x22 + 8, x1 x22 + x1 10 x2
13
+ 8<;
1
=
2
9
8L,
+
Hx1
10
+
x2
10
Hx1 x2
x1
8L=;
+
x 2 + 10 x1 + x22 + 8
1
=i
j
2
x 1 x2 - 10 x 2 + x 1 + 8
0
=i y
{
j0z
P0 =
i x1
j
k
H0L
y = i 0. y
Lz
{
j 0. z
10
j x2H0L
JH 1
xHk-1L
JH
xHk-1L
10
H 2
LH
xHk-1L
L
xHk-1L
+8
N{
+ xHk-1L + 8 z
1
Tabla de datos.
i
0
H0L
i x1
i
i
i y
k
j 0z
j x 0 Lz
j
H1L
i
0.800000000000
y
i
i x1 y
z
j x 1 Lz j
0.800000000000
j
k
{
H2L
i
i x1 y i 0.928000000000 y
z
j x 2 Lz j
0.931200000000
k
{
j
H3L
i
0.972831744000
y
i
i x1 y
z
3
j x Lz j
0.973269983232
j
k
{
H4L
i
0.989365606239
y
i
i x1 y
z
4
j x Lz j
0.989435095259
k
{
j
H5L
i
0.995782611054
y
i
i x1 y
z
5
j x Lz j
0.995793653594
k
{
j
H6L
i
0.998318800902
y
i
i x1 y
z
j x 6 Lz j
0.998320562762
k
{
j
H7L
i
0.999328437427
y
i
i x1 y
z
7
j x Lz j
0.999328719003
k
{
j
H8L
i
0.999731521447
y
i
i x1 y
z
8
j x Lz j
0.999731566479
k
{
j
H9L
i
i x1 y i 0.999892631999 y
z
9
j x Lz j
0.999892639203
k
{ j
k
{
2
P -P
i+1
i+1
0.800000000000 y
{
z
0.800000000000
0.928000000000 y
H
2
H
2
H
2
H
2
H
2
H
2
H
2
H
2
0.006417
0.995793653594
0.998318800902 y
0.00253619
0.998320562762
0.999328437427 y
0.00100964
0.999328719003
0.999731521447 y
0.000403084
0.999731566479
0.999892631999 y
0.995782611054 y
0.0165339
0.989435095259
0.989365606239 y
0.0448317
0.973269983232
0.972831744000 y
0.1312
0.931200000000
0.8
0.000161111
0.999892639203
0.999957056546 y 0.0000644245
H
2
0.999957057698
14
10
k
11
i
j
x 10
2H
12
x 11
2
0.999957056546
k 0.999982823218
k 0.999993129383
0.999957057698
z
z j 0.999982823402
k 0.999993129383
y 0.0000257667
y i
{
y
xH12L
0.999982823218
y i
H11L
1
j
k
Lz
xH10L
x 12
j 0.999993129412 z
k 0.999997251769
0.999993129412
0.999982823402
y
{
0.999997251773
0.0000103062
4.12239 10
-6
13 =
i 0.999997251769 y
k
0.999997251773
Solucin
b)
2
@
Clear ecuaciones, p, d ;
D 2
+ 8<;
ecuaciones = 8x1 + 10 x1 + x2 + 8, x1 x2 + x1 10 x2
2
2
1
ecuacionestrans
8L, 1
8L=;
2 +
=
+
+ x1 +
9
Hx1
10
10
x2
Hx1 x2
x 2 + 10 x1 + x22 + 8
1
0
=i y
=i
L
2
x 1 x2 -
10 x 2 + x 1 + 8
{
j0z
P0 = i
x H0L
1
j
k
y=i
L z
0.8
y
{
j 0.8 z
HL
y=
10
j x2H0L
JH
xHk-1L
10
JH
xHk-1L
1
LH
L2
H 2
+ xHk-1L
L
xHk-1L
2
2+
+8
Hk-1L
1
y
L
N{
+8 z
Tabla de datos.
i
H0L
i x1
i 0.800000000000 y
jx
j
{ k
2H L z
Pi
0.800000000000
P -P
i+1
i 0.928000000000 y
z j
{ k
15
0.931200000000
i+1
0.1312
H
2 L
H1L
i x1
k
1
H2L
i x1
j
k
H
2 L
x 2L
jx
4
H
2 L
x 5L
2
jx
7
k
11
j
k
x
2
0.999731566479 z
0.999982823218
0.999993129383
x 11
0.999993129412
0.000161111
0.999892639203 z
0.0000644245
{
0.999957057698 z
j
{ k
0.0000257667
0.999982823402
0.999993129383
{
yz
0.0000103062
0.999993129412
{ k
0.999997251769
{ k
z j
i 0.999982823218 y
0.999982823402
0.999731566479
yz i
0.999892631999 y
{ k
j
0.999957057698
0.000403084
0.999892639203 z
i 0.999957056546 y
i 0.999957056546 y
0.00100964
{
0.999328719003
j
0.999731521447 y i
k
j
xH11L
0.998320562762 z
0.999731521447 y
0.00253619
0.999328437427 y i
0.999328719003 z
i 0.999892631999 y
0.995793653594
0.998318800902 y
i 0.999328437427 y
0.006417
{ k
j
j
k
0.998320562762 z
0.995793653594 z
0.989435095259
j
0.995782611054 y i
x 10
k
j
0.995782611054 y
0.0165339
i 0.989365606239 y
0.989365606239 y i
i 0.998318800902 y
j
i
0.973269983232 z
0.989435095259 z
{ k
j
0.973269983232 z
z
y
xH10L
0.931200000000 z
2H
i x1
j
10
2H L
x 8L
H9L
j
i
7
H8L
i x1
j
2H
H7L
6L
i x1
k
k
j
z
y
i x1
k
H6L
i 0.972831744000 y
0.972831744000 y
0.0448317
4
H5L
i x1
j
0.928000000000 y i
H4L
3L
i x1
k
z
y
i x1
k
H3L
z
y
0.999997251773
4.12239 10
-6
12
0.999997251769 y
{
0.999997251773
Problema3. Seanlasecuacionessiguientes:
f1Hx1,x2L=5x2-x2=0,
1 2
H L = - H + L = f2x1,x2x20.25senx1cosx20.
UtilizarelmtododePuntoFijoparaaproximarelsistemadeecuacionesnolinealesiterandohastaque
-5
Pi+1-Pi10 .,comenzandoporlasaproximacin
inicial:
H 0L
H 0L
P0=Ix 1 ,x 2 M =H0.5,0.5L .
Solucin
Clear@ecuaciones, p, dD;
ecuaciones = 85 x21 x22, x2 0.25 HSin@x1D + Cos@x2DL<;
16
$%%%%%%%% , 0.25
Sin x1
H
@ D
;
Cos x2
@ DL=
P0 =
= i 5 x1
j
k
L z
{
- x2
k
j
H0L y
i x1
H
x2 -
LL {
0.25 cos x2
i 0
k
+ sin x1
0.5
=i
y
{
0z
y
{
0.5
y=
"####################
j x2H0L
x2Hk-1L!!!!
LM
IH
LMM
IH
x1Hk-1L
+ sin
{
z
Tabla de datos.
i i x H0L y
1
Pi
i 0.500000000000 y
jx
k
0 Lz
2H
P -P
i+1
i 0.223606797750 y
z j
0.500000000000
0.339252025124
i+1
1 i x H1L y i 0.223606797750 y
i 0.151718117936 y
1
z
z
1
j x Lz j
j
0.339252025124
0.291187975613
k
2H
2 i x H2L y i 0.151718117936 y
i 0.130223221540 y
1
z
z
2
j x Lz j
j
0.291187975613
0.277260057885
k
2H
3 i x H3L y i 0.130223221540 y
i 0.123994467375 y
1
z
z
3
j x Lz j
j
0.277260057885
0.272916126437
k
H
2
4 i x H4L y i 0.123994467375 y
i 0.122051802174 y
1
z
z
4
j x Lz j
j
0.272916126437
0.271666490106
k
H
2
5 i x1H5L y i 0.122051802174 y
i 0.121492947817 y
z
z
5
j x Lz j
j
0.271666490106
0.271268513444
k
H
2
6 i x H6L y i 0.121492947817 y
i 0.121314967243 y
1
z
z
6
j x Lz j
j
0.271268513444
0.271156513360
k
H
2
7 i x H7L y i 0.121314967243 y
i 0.121264879283 y
1
z
z
j x 7 Lz j
j
0.271156513360
0.271119846920
k
2H
0.276393
0.0718887
0.0214949
0.00622875
0.00194267
0.000558854
0.000177981
0.000050088
8 i x H8L y i 0.121264879283 y
i 0.121248481552 y
1
z
z 0.0000163977
j x 8 Lz j
j
0.271119846920
0.271109872001
k
H
2
9 i x H9L y i 0.121248481552 y
i 0.121244020633 y
1
z
z 4.46092 10-6
j x 9 Lz j
j
0.271109872001
0.271106470504
{ k
{
k
{ k
H
2
17
Tabla de datos.
P10 = j
k 0.271106470504 {
Problema4.
Seaelsistemanolinealdeecuacionessiguiente:
f1 x1,x2,x3
f2Hx1,x2,x3L
- 1 2 = 0,
= 3x - cos x x
2
= x - 625 x 2 - 1 4=0,
2
1-x1
x2
f3Hx1,x2,x3L=e
I
P0=
+ 20 x3 + H10 p - 3L 3 = 0.
Aplquese
1
el
3M
de
mtodo
Punto
Fijoconla
T
1,1,1 yaplicandoelmtodohastaque
aproximacin
i+1- i
Solucin
3D
Clear@ecuaciones, p, dD;
28
ecuaciones =
@2
1
3 x Cos x
2,
d = 10.
x3 + H10 Pi 3L 3 <;
2L,
@
Exp x x
x + 0.3125 0.03 ,
6;
60
H0L
i x1
P0 = x2H0L
1.
1.
-3 + 10 p z
H
L{
j 1. z
k {
x1H0L
i
2H
0
k
j x3H L
y=
xHk-1L xHk-1L
LH
2
+ 0.3125 - 0.03
x
i"####################################
1Hk-1L
k
j
LM
IH 2
25
z
{
I cos
20
k-1
- x1
H
k-1
LH
x2
1
L
60
18
+ 1
j 20 x3 + -x1 x2
ik
j x3H0L
625 x2
- 10
p
L
z
{
=
;
10 Pi 3
=j 0
inicial
-6
10 .
H0L
i x1
y
i
1.00000000000
x2H0L z
j x3H0L
k
H1L
i x1
x2H1L
j x3H1L
k
Pi
1.00000000000
j
{
1.00000000000
0.346767435289
y
z
0.0446257569496
z
j -0.491992747657
j x3H2L
0.499919662207
y
z
0.0251134233175
j -0.522830993577 z
H3L
i x1
y i
H2L
i x1
x2H2L
k
x2H3L
j x3H3L
k
H4L
i x1
x2H4L
j x3H4L
0.0446257569496
j -0.491992747657
0.499971267263
y
z
0.0287978577545
j -0.522974964963 z
{
i 0.499919662207
y
0.0251134233175
z
j
{
-0.522830993577
j -0.522974964963
0.153152
0.00368443
z
{
i 0.499962197310
j -0.522884028376
0.0287992338059
1.49199
i 0.499971267263
0.0287978577545
y i
i+1
i 0.346767435289
y i
P -P
i+1
0.0000909366
0.499962197310
i 0.499962206844
y
y
z
0.0287992338059
0.0287989919494
j -0.522884028376 z
j -0.522884007342 z
{ k
{ k
y i
2.41856 10
-7
0.0287989919494
-0.522884007342
y
z
a)
f1Hx1,x2,x3L=15x1-13+x2 -4x3=0,
2
f2Hx1,x2,x33L=10x2-11-x3+x1 =0,f3Hx1,x2,x3L=25
x3-22-x2 =0
H 0L
b)
H 0L
f1Hx1,x2,x3L=1-x1-cosHx1x2x3L=0,
14
f2Hx1,x2,x3L=1-H1-x
1L -0.05x3 -x2+0.15x3=0,f3Hx1,x2,x3L=1+0.1x2 2
0.01x2-x3+x1 =0,
H 0L
c)
H 0L
P0=Ix 1 ,x 2 ,x 3 M =H1,1,1L
H 0L
H 0L
P0=Ix 1 ,x 2 ,x 3 M =H0,-0.1,0.5L
f1Hx1,x2,x3L=6x1-2cosHx2x3L-1=0,
f2Hx1,x2,x3L=9x2+
-x x
x 1+senHx3L+1.06+0.9=0,
H 0L H 0L H 0L T
T
P0=Ix 1 ,x 2 ,x 3 M =H0,0,0L
19
Tabla de datos.
Solucin
a)
2
3<;
Clear@ecuaciones, p, dD; 2
ecuaciones = 815 x1 13 + x2 4 x3, 10 x2 11 x3 + x1
, 25 x3 22 x2
2
2 L, 1 H22
3L=;
1
1
H13
H11 x3
ecuacionestrans = 9
4 x3L,
+
+
+
15
10
25
x2
x1
x2
1.
j
j x3H0L
1.
y
z
k
{ k
{
Ecuaciones preparadas para el mtodo del Punto Fijo.
L + 13 N y
i
2
1
x1H0L
y =
i
xH0L
2
-x
j
k
x2H0L {
k
j x3H0L z
H1L
i x1 y
x2H1L {
k
j x3H1L z
H2L
i x1 y
xH
1
k-1
L + 11N
Hk-1L
H 3
+ 22
25
i i x1H0L y
0
j x3H0L
k
{
+ 4 xHk-1L
2
Hk-1L
10
- xHk-1L
JH
Pi
i
k
P -P
i+1
i+1
1.00000000000 y i 1.06666666667
1.00000000000
j
1.00000000000
i 1.06666666667
0.920000000000
i 1.03133333333
j 0.920000000000
y i 1.03133333333
0.1
{
1.07822222222
{
j 0.933240000000
y i 1.03802645597
1.10000000000
{
z
1.10000000000
k
j
z
{
0.0353333
{
2
k
x2H2L {
j x3H2L
1.07822222222
1.08695915556
z j
0.933240000000
0.00873693
0.930140057375
20
y i 1.03593866824
j x3H3L
y i 1.03802645597
1.08695915556
z
j 0.930140057375 z
H4L
i x1
y i 1.03593866824
y i 1.03651180803
H3L
i x1
3
x2H3L
k
x2H4L z
j x3H4L
k
H5L
i x1
y i 1.03651180803
H6L
i x1
j 0.931128884592
H7L
i x1
7
k
H8L
i x1
j x3H8L
0.00057314
{
j 0.931207490160
0.000144442
z
y i 1.03640899627
1.08571501733
z
{
j 0.931187292947
0.0000416305
z
y i 1.03639813820
1.08571501733
1.08570436854
z
y i 1.03639813820
x2H8L z
j 0.931187292947
1.08567721564
y i 1.03640899627
j 0.931128884592 z
1.08567721564
x2H7L z
j x3H7L
1.08581999047
j 0.931207490160
0.00208779
y i 1.03636736578
y i 1.03636736578
j 0.931368829074
1.08581999047
x2H6L z
j x3H6L
1.08526411341
j 0.931368829074 z
x2H5L z
j x3H5L
1.08526411341
y i 1.03640110559
1.08570436854
j 0.931192639933 z
k
j 0.931192639933
0.0000108581
z
1.08570715391
j 0.931191133641 z
k
y
-6
2.9674 10
{
Solucin
b)
Clear@ecuaciones, p, dD; ecuaciones
= 81 x1 Cos @ x1 x2 x3D,
2
0.01 x2 + x1 <; d = 10. 5; p = 80.0, 0.1, 0.5<;
puntoFijo@ecuaciones, ecuacionestrans, p, dD;
21
f x1, x2, x3
H
H0L
i x1 y
P0 = k x2H0L
{
j x3H0L z
0.15 x
2+
!!!!!!!!!!!!!!
i y
-4
- +1
x1
= 0
z
j0 z
x + 0.1 x - 0.01 x2 - x3 + 1
y
i 0.
-0.1
k0.5
xH L
IH
k
j x3H0L
xHk-1L
3
L
xH0L
-0.05
kH
LH
1 - cos
k-1
x1Hk-1L
+ 0.15
xH
LH
2
xHk-1L
LM
k-1
xH
Hk-1L 2
+ 0.1 x2
"######################
xHk-1L
L
3
L
1-
H
- 0.01
x 1H
k-1
+1
LL
+1
{
z
x2Hk-1L
Tabla de datos.
i i x1H0L y
Pi
0
x2H0L {
j x3H0L
i x1
0
k
H1L
1
k
x2H1L
j x3H1L
x2H2L
j x3H2L
0.500000000000
{
z
0.0625000000000
0.999765625000
3
k
x2H3L {
j x3H3L
i
k
j
x2H4L {
j x3H4L
0.100000049950
0.999999882799
y
0
i
k 0.100000049950 {
P5 = 0
i
k 0.0999999941399
j 1.00000000050
{
z
0.000235374
0.0000117714
k 0.0999999941399 {
z
j
1.00000000050
0.999999882799
0.0375998
k 0.0999882785034 {
j
z
1.00000099900
z
y
0.999765625000
0.502
i0
1.00000099900
H4L
i x1 y
0.0999882785034
k 0.100099800000 {
H3L
i x1 y
i0
0.100099800000
i+1
i
k 0.0625000000000 {
j
z
1.00200000000
z
y
1.00200000000
P -P
H2L
i x1 y
-0.100000000000
i
j
y
i+1
1.17701 10
-7
22
Solucin
c)
Clear@ecuaciones, p, dD;
ecuaciones = 9 6 x1 2 Cos@x2 x3D 1,
"#######################################
9 x +
x2
93
ecuacionestrans =
@
Cos
x1 x2D
x2
D
x x
+ 3 Exp
, x2 + Sin x
=
+ 10 Pi
3 ;
"#######################################
@
10 Pi 3 =;
+ 1.06 + 0.9, 60 x
+ Sin x
+ 1.06 0.1,
60
20 Exp@
5
d = 10. ; p = 80., 0., 0.<;
x12 + sin x3
-x1 x2
+ 1.06
+ 0.9
+ 10 p - 3
=k 0
j0z
0.
k
j x3H0L
9 x2 +
j
k
60 x3 + 3
0.
i
H0L
P0 = x2
k
"##########################################
f x1, x2, x3
H0L
i x1 y
{
0.
i x1
j x3H0L
k
k
j
xHk-1L
LM
xHk-1L
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LH
cos
xH0L
IH
i3
x1H
k-1
-x
Hk-1L
20
LH
IH
+ sin
x3H
k-1
LM
60
- 0.1
+ 1.06
Hk-1L
3 - 10 p
Tabla de datos.
i i x1H0L
0
0
{z
x2H0L
j
k x3
i x1
H0L
H1L
1 z{
k x3H1L
y
i+1
P -P
i+1
i 0.500000000000
y
0
j z
0
k
Pi i
k -0.214395890455 {
-0.523598775598
i 0.500000000000 j
y i 0.497901916407
-0.214395890455 k
-0.523598775598
z j
0.523599
k -0.200000000000 {
-0.529256504414
0.0143959
23
H2L
i x1
2
x2H2L
y i 0.497901916407
-0.200000000000
{
k
j x3H2L z
H3L
i x1 y
x2H3L {
k
j x3H3L z
H4L
i x1 y
4
k
x2H4L {
j x3H4L
y i 0.498134326654
-0.199567869407
j -0.529256504414
i 0.498134326654
-0.199604819327
j -0.528834138957
i 0.498145333572
-0.199605997698
-0.528824817283
0.0000369499
{
z
j
-0.528824817283
y i 0.498144712711
y
-0.199604819327
z j
0.000432131
{
z
j
-0.528834138957
y i 0.498145333572
y
-0.199567869407
k
-0.528825955120
1.17837 10
-6
-0.199605997698 {
P5 = k
-0.528825955120
Problema6.. Dadoelsiguienteproblemanolineal
f1Hx1,x2L= -x1H1+x1L+2x2=18,
2
a)
b)
Representargrficamentelascurvasf1yf2.
CalcularlasolucinaproximadadelsistemaempleandoelmtododePuntoFijo
comenzandoenlospuntos
H 0L
H 0L
P0=Ix 1 ,x 2 M =H2,11L ,
H 0L H 0L T
P0=Ix 1 ,x 2 M =H-1.5,
-5
T
10.5L eiterandohastaquePi+1-Pi510 .
Solucin
a)
<< Graphics`ImplicitPlot`;
Clear@ecuaciones, p, m, d, f, g, g1, g2, gD;
f
x H1 2xL
2 y
1L
+ Hy 6L
18;
2
25;
Print@"Representacin grfica de la solucin",
"\n\t f1Hx, yL = ", f, "\n\t f2Hx, yL = ", g D;
g = Hx
g1 = ImplicitPlot
PlotStyle
AxesLabel
g2 = ImplicitPlot
@f == 0, 8x, 5, 7<,
> 88Thickness @0.010D, RGBColor @0, 0, 1D<<,
> 8"X", "Y"<, DisplayFunction > Identity D;
@g == 0, 8x, 5, 7<,
24
f2Hx, yL = Hx - 1L + Hy - 6L - 25
Y
35
30
25
20
15
10
5
-4-2
2 4 6
Solucin
b)
Clear@ecuaciones, p, dD;
ecuaciones = 8x1 H1 + x1L + 2 x2 18, Hx1 1L2 + Hx2 6L2 25<;
!!!!!!!!!!!!!!!!!!!!!!!!!!
"##############################
ecuacionestrans
= 90.5 + 2 x2 17.75 , 25 Hx1 1L
P0
kH
j
= i x1H0L y
j
k
= -x1 Hx1+ 1L + 2 x2 - 18
x1 - 1
x2
=i
Lz
+H
2.
-6
y
{
11.
25
- 25 {
z
=k 0 {
j
Tabla de datos.
HL
"#######################################
y =
j x2H0L z
H
j
25 -
-1
x1Hk-1L
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IH
i
0
H0L
i x1
j
j
3
j
j
5
j
8
2H
2H
jx
k
10.9700824659
10.9697943394
10.9699951785
{ k
j
k
10.9700824659
10.9697943394
10.9699902189
10.9700057088
10.9699951785
1.54694659358 y
z
10.9699943457
10.9699943457
0.00363879
0.00177686
0.00019588
0.0000956959
0.0000105303
i 1.54694659358 y
z
0.0341964
i 1.54695173798 y
z
0.0693863
i 1.54694417065 y
{ k
i 1.54684847479 y
10.9737212511
i 1.54698923590 y
1.54695173798 y
i 1.54876609259 y
1.54694417065 y
10.9700057088
10.9683657714
-P
i 1.54615042038 y
1.54684847479 y
10.9699902189
10.8989794856
i+1
0.438447
i 1.51195401815 y
1.54698923590 y
8 Lz
1.54876609259 y
H
2
H
2
10.9737212511
2H
1.54615042038 y
x 7 Lz j
k
H8L
i x1 y i
k
10.9683657714
x 6 Lz j
k
H7L
i x1 y i
j
7
2H
1.51195401815 y
x 5 Lz j
k
H6L
i x1 y i
j
6
H
2
x 4 Lz j
k
H5L
i x1 y i
k
10.8989794856
i+1
i 1.56155281281 y
1.56155281281 y
x 3 Lz j
k
H4L
i x1 y i
k
H
2
x 2 Lz j
k
H3L
i x1 y i
k
11.0000000000
x 1 Lz j
k
H2L
i x1 y i
k
2H
i 2.00000000000 y
x 0 Lz j
k
H1L
i x1 y i
Pi
+6
-6
5.1444 10
z
Clear@ecuaciones, p, dD;
ecuaciones = 8x1 H1 + x1L + 2 x2 18, Hx1 1L2 + Hx2 6L2 25<;
!!!!!!!!!!!!!!!!!!!!!!!!!!
"##############################
ecuacionestrans
= 90.5 2 x2 17.75 , 25 Hx1 1L
26
P0 = i
k H
H0L
x 0 Lz
x1 - 1
y=i
-1.5
j
+ x2 - 6
y =i 0 y
- 25
10.5 z
HL
i x1 y
=
j x2H0L
z
{
x2
H
j
- 17.75 - 0.5
Hk-1L
"#######################################
25 -
-1
x1Hk-1L
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IH
+6
z
Tabla de datos.
i
0
H0L
i x1
j
z
k x2H0L {
H1L
H1L
H2L
H2L
H3L
i x1
j
k x2
i x1
j
k x2
i x1
j
z
k x2H3L {
H4L
i x1
j
z
k x2H4L {
H5L
i x1
j
z
k x2H5L {
H6L
i x1
j
z
k x2H6L {
7
8
9
H7L
i x1
j
k x2H7L {z
H8L
i x1
j
k x2H8L {z
i x1
H9L
j x2H9L
z
{
xH10L
j x2H10L
P -P
i+1
-2.30277563773 y
i+1
k 10.5000000000
{
z
k 10.3301270189
{
z
0.802776
k 10.3301270189
k 9.75388772965
0.576239
k 9.75388772965
k 9.83691359752
0.380135
k 9.83691359752
k 10.1248988840
k 10.1248988840
k 10.0822922322
0.194054
k 10.0822922322
k 9.93788999333
0.144402
k 9.93788999333
k 9.95900689082
k 9.95900689082
k 10.0311541233
0.0721472
k 10.0311541233
k 10.0205389218
0.0482099
k 10.0205389218
k 9.98444588416
{
z
k 9.98974060663
0.0240362
{
z
k 10.0077830203
{
z
0.0180424
j
i -2.30277563773 y
z
j
i -2.20594666911 y
z
j
i -1.82581124573 y
z
j
i -1.88702097859 y
z
j
i -2.08107487744 y
z
j
i -2.05389332466 y
z
j
i -1.95800548239 y
z
j
i -1.97241766549 y
z
j
i -2.02062758317 y
z
j
i -2.01363068271 y
k 9.98444588416
z j
k
i -1.98959449795 y
xH11L {
11 i 1
y k 9.98974060663
j
kj x2H11L {z
10
Pi
-1.50000000000 y
j
i -2.20594666911 y
z
j
i -1.82581124573 y
z
j
i -1.88702097859 y
z
j
i -2.08107487744 y
z
j
i -2.05389332466 y
z
j
i -1.95800548239 y
z
j
i -1.97241766549 y
z
j
i -2.02062758317 y
z
j
i -2.01363068271 y
z
j
i -1.98959449795 y
z
j
i -1.99314473956 y
0.287985
0.0958878
0.036093
27
i
12
H12L
1
j x2H12L z
k xH13L {
13 i
j x2H13L z
k xH14L {
14 i
j x2H14L z
k xH15L {
15 i
j x2H15L z
k xH16L {
16 i
j x2H16L z
k xH17L {
17 i
y
j x2H17L z
k xH18L {
18 i
j x2H18L z
k xH19L {
19 i
j x2H19L z
k xH20L {
20 i
j x2H20L z
k xH21L {
21 i
j x2H21L z
k xH22L {
22 i
j x2H22L z
k xH23L {
23 i
j x2H23L z
k xH24L {
24 i
j x2H24L z
k xH25L {
25 i
j x2H25L z
k xH26L {
26 i
j x2H26L z
k xH27L {
27 i
j x2H27L z
k xH28L {
28 i
j x2H28L z
k xH29L {
29 i
y
j x2H29L z
k xH30L {
30 i
kj x2H30L
y
{z
i 1.99314473956 kj
10.0077830203
0.012035
y i -2.00517973698 y
z j 10.0051322785
z
- y i -2.00341762559 y
i 2.00517973698 kj
10.0051322785
z j 9.99610995200
z
- y i -1.99740438893 y
i 2.00341762559 kj
9.99610995200
z j 9.99743449806
z
- y i -1.99828868918 y
i 1.99740438893 kj
9.99743449806
10.0019453931
10.0012829113
9.99902739529
9.99935858430
10.0004863254
10.0003207179
9.99975684306
9.99983964357
10.0001215799
10.0000801788
9.99993921041
9.99995991074
10.0000303949
z j 9.99998480258
9.99998997767
i 2.00002026312 kj y i -2.00001336305 y
10.0000200447
i 2.00001336305 kj y i -1.99998986835 y
9.99998480258
z j
0.0000704842
z j 10.0000200447
{
0.0000939786
z j 10.0000303949
z
- y i -2.00002026312 y
i 1.99997327359 kj
{
0.000140968
z j 9.99995991074
z
- y i -1.99997327359 y
i 1.99995947306 kj
{
0.000187959
z j 9.99993921041
z
- y i -1.99995947306 y
i 2.00005345161 kj
{
0.000281936
z j 10.0000801788
z
- y i -2.00005345161 y
i 2.00008105108 kj
{
0.00037591
z j 10.0001215799
z
- y i -2.00008105108 y
i 1.99989309191 kj
{
0.000563875
z j 9.99983964357
z
- y i -1.99989309191 y
i 1.99983788661 kj
{
0.000751853
z j 9.99975684306
z
- y i -1.99983788661 y
i 2.00021379667 kj
{
0.00112774
z j 10.0003207179
z
- y i -2.00021379667 y
i 2.00032418188 kj
{
0.00150357
z j 10.0004863254
z
- y i -2.00032418188 y
i 1.99957232857 kj
{
0.00225552
z j 9.99935858430
z
- y i -1.99957232857 y
i 1.99935145665 kj
{
0.00300768
z j 9.99902739529
z
- y i -1.99935145665 y
i 2.00085503051 kj
{
0.0045109
z j 10.0012829113
z
- y i -2.00085503051 y
i 2.00129636853 kj
{
0.00601324
z j 10.0019453931
z
- y i -2.00129636853 y
i 1.99828868918 kj
{
0.00902233
z
z
0.0000469895
0.0000352421
0.0000234947
28
31
k
32
xH32L
2H
xH33L
2
-1.99999331843
9.99998997767
{
k -1.99999331843
x 33
10.0000075987
k -2.00000506580
j
{ k
z j 9.99999620064
{
z
k -2.00000334077
0.000017621
i 10.0000050112
j
z k
j 10.0000050112
{
k -2.00000506580
y i
{
i 10.0000075987
j
y
z
x 32
-1.99998986835
y i
j
x 31
33
Lz
xH31L
0.0000117474
{
y
8.81052 10
-6
34
=i
-2.00000334077 y
j 9.99999620064
k
a)
f1Hx
2 1,x22L=x1 +x2 -x1=0,f2Hx1,x2L=
x1 -x2 -x2=0,
H 0L
H 0L
P0=Ix 1 ,x 2 M =H0.7,0.4L
2
2
b)
H 0L H 0L T
T
P0=Ix 1 ,x 2 M =H0.4,0.7L
2
c)
f1Hx1,x2,x3L=x
1 +x2-37=0,f2Hx1,x2,
2
x3L=x1-x2 -5=0,
f3Hx1,x2,x3L=x3+x1+x2-3=0
H 0L
H 0L
H 0L
P0=Ix 1 ,x 2 ,x 3 M =H5,1,-1L
2
2
d)
f2Hx1,x2,x3L =x1x
-8x
x,x
P0=
,x
3 L
= - 1
+ 10 x3 = 0,
=0
x
7x
3T2
0.5,0.5,0.1
Solucin
a)
Clear@
ecuaciones, p, d ;
2
ecuaciones = 8x1
ecuacionestrans
+ x2 2
=
x1
, x1
9!!!!!!!!!!!!!!!!
x1 x2 2
2
x2
x2 <;
!!!!!!!!!!!!!!!!!!! =
x2 + x12
29
=i
L j
x 2 - x + x22 y
1
1
1
2
x 2 - x2
0
=i y
- x2
0z
P0 =
H0L
i x1 y
j
k
2H
=i
Lz
x0
0.7
y
{
0.4
i
1
xH0L
j x2H0L
"##################################
j
k
LL
1H
x k-1
H
-
LL
x k-1
"##################################
L 2
x1Hk-1L
y
z
{
x2Hk-1L
Tabla de datos.
i
H0L
i x1
i 0.700000000000 y
j
x 0
2
x 1
2
x 2
2
x 3
2
x 4
2
x 5
2
x 6
2
x 7
x 8
k
i
x 9
2H
xH10L
jx
k
1
2
10
z
y
z
y
z
y
z
y
z
y
z
{
H9L
i x1
2H
10
2H
H8L
i x1
z
y
H7L
i x1
H6L
i x1
z
y
H5L
i x1
H4L
i x1
z
y
{
H3L
i x1
H2L
i x1
z
y
{
H1L
i x1
j
2
Pi
0.400000000000
0.300000000000
0.489897948557
0.393635585635
0.411567767494
0.428756635260
0.416505725371
0.419164848234
0.420602702657
z j
{ k
0.393635585635
0.411567767494
0.428756635260
0.416505725371
0.419164848234
0.420602702657
0.419231182537
{ k
yz i
0.419647520980
{ k
0.419647520980
0.771876229401
0.189898
0.0962624
0.0212727
0.0171889
0.0122509
0.00265912
0.00143785
0.00137152
i 0.771896955379 y
0.419231182537
0.771896955379
0.489897948557
i 0.771579694135 y
i 0.771579694135 y
k
i 0.772241857884 y
i 0.772241857884 y
k
i 0.772056657064 y
i 0.772056657064 y
k
i 0.769548500984 y
i 0.769548500984 y
k
i 0.776037147647 y
i 0.776037147647 y
k
0.300000000000
i 0.771621681768 y
i 0.771621681768 y
k
i 0.750348994052 y
i 0.750348994052 y
k
0.1
i 0.803023612875 y
i 0.803023612875 y
k
i+1
i 0.734846922835 y
i 0.734846922835 y
k
P -P
i+1
0.000416338
{ 0.000087382
yz
0.419734902937
30
11
k
12
Lz
xH11L
x 12
2
k 0.771853145768
z
z j 0.419592672216
k 0.771853145768
{
y
x 13
0.419650054738
0.419592672216
j 0.419650054738 z
k 0.771846472640
i
y
{
0.419651312275
0.0000573825
0.000142231
0.419734902937
k 0.771815289209
k xH13L {
i 1 y
13
H12L
2H
0.771815289209
y i
x 11
0.771876229401
y i
6.67313 10
-6
14 =
i 0.771846472640 y
k
0.419651312275
Solucin
b)
ecuaciones, p, d ;
Clear@
ecuaciones =
83 x1
x2
1<;
!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
, 3 x1 x2
ecuacionestrans =
2D
x1
3 ,
+ x1 3
3 x1
i 3 x12 - x22
k
-x3 + 3 x 2 x1 - 1
0
=i y
k
j
P0
= i x1
j
H0L
2H
0.4
=i
z
y
k
y
{
j 0.7 z
x1H L
0
L
+1
$%%%%%%%%%%%%%%%%%%%%%%
H
!!!!
H2 L
k-1
k
j
1H
x k -1
!!!!
H L
Tabla de datos.
H0L
i x1
i 0.400000000000 y
jx
j
{ k
2H L z
P -P
i+1
i 0.404145188433 y
z
0.700000000000 j
{ k
31
0.941629792788
i+1
0.24163
HL
H1L
i x1
k
1
H2L
i x1
j
j
3
3L
jx
6L
jx
2H
H9L
i x1
x
2
k
i
j
xH10L
xH11L
2H
x 11
H
x 12
2
i
j
xH14L
2H
x 14
x 15
2H
i
j
xH17L
2H
x 17
x 18
2
19
y
z
{ k
j
0.866878386985
0.500492470081
j
{ k
yz i
j
0.866837719240
{ k
0.500468990547
0.499836058744
j
{ k
0.00328084
{
0.866878386985 z
0.00189419
0.866837719240
0.500468990547
0.499843865209
j
{ k
yz i
j
0.866120096701
{ k
0.500054670981
0.500052066604
j
{ k
0.499981778996
j
{ k
yz i
j
0.865995347290
{ k
0.499982646875
y
0.865754970393
0.499843865209
0.500006073963
j
{ k
0.500054670981
0.500005784643
j
{ k
{
0.866021897037
0.000365126
{
0.000210806
0.500052066604
y
0.865993844080
0.499981778996
0.499982646875
0.000121742
{
y
0.865995347290
0.0000702876
{
yz
0.0000405769
0.866035924197
0.500006073963
y
0.866035423080
0.500005784643
0.499997975378
0.000013526
{
y
{
0.866022064071
0.0000234271
{
y
0.866021897037
z j
yz
y i
0.000632932
0.866115585789
y i
0.866035423080
y
0.866120096701
y i
0.866035924197
0.00109627
0.499836058744
y i
0.865993844080
{
yz
y i
0.866115585789
0.865741449200
y i
0.865754970393
0.00572476
0.863597549558 z
y i
0.865741449200
0.863476476688
0.498528376255 y
i 0.500492470081 y
0.863597549558 z
z j
k
{
x 19
0.00991557
i 0.498598277709 y
z j
k
k xH19L {
i 1
y
k
0.863476476688 z
0.873392046155
j
0.504253132956 y i
z j
k
k xH18L {
i 1
y
z j
k
x 16
2H
18
y
z
k xH16L {
i 1
y
z j
k
k xH15L {
i 1
y
z j
k
x 13
2H
17
y
z
k xH13L {
i 1
y
16
{
y
k xH12L {
i 1
y
15
i 0.498598277709 y
z j
k
{
x 10
14
z
y
0.0168139
i 0.504467786120 y
0.0291225
0.873763836342 z
0.504253132956 y
k
j
0.844641336143
0.487653902791 y
0.504467786120 y i
0.0543141
0.873392046155 z
i 0.498528376255 y
2H
{ k
j
x8
0.873763836342 z
13
0.844641336143 z
12
k
j
0.0940748
0.843598161451
j
0.487051625602 y i
11
j
i
0.937672940468
i 0.541365724591 y
0.487051625602 y
i 0.487653902791 y
{
z
0.541365724591 y i
0.843598161451 z
x7
H8L
i x1
0.543650214343 y
{ k
j
{
z
0.937672940468 z
i x1
10
j
i
0.941629792788
H7L
i
k
2H
k
j
z
y
H6L
x5 L
i x1
i 0.543650214343 y
0.404145188433 y i
0.139505
j
H5L
i x1
H4L
i x1
z
y
H3L
x2 L
i x1
z
y
7.80926 10
-6
32
P20 = j
k 0.866022064071 {
Solucin
c)
2
@
Clear ecuaciones, p, d ;
ecuaciones = 8 x1 + x2 37, x1
5
ecuacionestrans
d = 10.
9!!!!!!!!!!!!!!!
37 x2 ,
5, x3 + x1 + x2 3<;
x2
!!!!!!!!!!!!
= ;
x1 5 , 3 x1 x2
1 2
2
- 37
f Hx1, x2, x3L = x + x
k -x2 + x1 - 5
{ =k0 {
j
z
j0z
x1 + x2 + x3 - 3
H0L
5. y
i x1 y
=i
H0L
1.
P0 = x2
k
{ k
{
j
j x3H0L z
-1.
xH0L
x2H L
i "###########################
L
37 - H
"######################HL
x 2Hk-1L
k-1
Hx1
H
j x3H L
L-5
L
- x1Hk-1L
H
- x2Hk-1L
+
3
Tabla de datos.
i i x1H0L y
i 5.00000000000
0
x2H0L {
k
j x3H0L z
H1L
i x1 y
1
k
x2H1L {
j x3H1L
Pi
y i 6.00000000000
1.00000000000
k
P -P
i+1
i+1
2.
{ k
z
{
z
j
-1.00000000000 j
-3.00000000000
i 6.00000000000
y i 6.08276253030
y
0
1.00000000000
z j
{ k
-3.00000000000
z j
33
1.
{
-3.00000000000
H2L
i x1
2
x2H2L
y i 6.08276253030
1.00000000000
{
k
j x3H2L z
H3L
i x1 y
1.04055875870
-4.08276253030 z
i 5.99661915093
{
-4.04055875870 z
y i 6.00000000000
1.00000000000
x2H4L {
{ k
z
0.998308144277
1.00000000000
k
z
-3.99661915093 z
{
-3.99830814428 z
i 6.00014098632
y i 6.00000000000
x2H6L {
1.00000000000
1.00007049068
k
z
H7L
x2H7L
0.00183284
{
-4.00014098632 z
y i 5.99999412577
1.00000000000
0.0000704956
{ k
z
1.00000000000
{
z
0.999997062883
{ k
z
0.0000763649
{
z
j
-4.00007049068 j
-3.99999412577
i 6.00000000000
y i 6.00000024476
y
0.999997062883
x2H9L {
j x3H9L
-3.99830814428 z
j
-4.00014098632 j
-4.00007049068
i 5.99999412577
y i 6.00000000000
y
x2H8L {
{ k
k
j x3H8L z
H9L
i x1 y
k
y i 6.00000000000
1.00007049068
{
k
j x3H7L z
H8L
i x1 y
0.00169186
{ k
H6L
i x1 y
i x1
0.0439396
{
z
j
-4.04055875870 j
-3.99661915093
i 6.00000000000
y i 6.00014098632
y
x2H5L {
j x 3H6L
0.998308144277
0.0422038
{ k
k
j x3H4L z
H5L
i x1 y
j x 3H5L
{
z
1.00000000000
H4L
i x1 y
1.08276
{ k
z
j
-3.00000000000 j
-4.08276253030
i 6.00000000000
y i 5.99661915093
y
x2H3L {
j x 3H3L
1.04055875870
y i 6.00000000000
-6
1.00000000000
{ k
z j
-3.99999412577
z j
-3.99999706288
2.93712 10
Solucin
d)
x12
Clear@ecuaciones, p, dD;
ecuaciones
9 x1
2 +
2 x2
x2
2 x3 , x1
34
8 x2
10 x3, 7 x3 x2
1=;
Tabla de datos.
2 x3 + x2 2 x22 ,
ecuacionestrans =
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9
10 x3 + x1
x 12
8 ,
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
H
L
7 x2
;
=
= 0
x - 8 x + 10 x3
1
-1
P0 =
ik
x2H0L
0.5
j
j x3H0L
0.1
z
{
= 0.5
z
7 x2 x3
H0L y
i x1
y
z
k
{ k
{
Ecuaciones preparadas para el mtodo del Punto Fijo.
0
y
2
-2 x2Hk-1L + x2Hk-1L
x1
x2
0
k
H1L
i x1
1
k
Hk-1 L
H2L
i x1
k
H3L
i x1
k
x2H3L
0.500000000000
0.100000000000
0.447213595500
0.0714285714286
0.475017736909
0.0722806322324
0.344319650307
x2H4L {
{
y
0.338061701891
k
0.395284707521
k
i x1
k
0.504035254506
y i
j x3H3L
H4L
y i
x2H2L {
j x3H2L
y i
7 x2
H
Pi
0.500000000000 y
x2H1L {
j x3H1L
x2H0L {
j x3H0L
2 !!!!
x1Hk-1L
H0L
i x1
+10 x3Hk-1L
"##########################################
HLHL
x1Hk-1L
j x3H0L
+ 2 x3Hk-1L
i "######################################################################
0.0953510849460
{
y
0.545811118450 y
i
0.388516792952
j x3H4L
0.105405186123
y
i+1
i+1
i 0.447213595500
k
0.0722806322324
0.0953510849460
0.0290175
j 0.388516792952z
0.0441971
0.105405186123
k
{
i 0.545377454967 y
0.338061701891 {
i 0.504035254506
0.104715
i 0.475017736909
k
i 0.545811118450 y
0.395284707521 {
0.0714285714286
0.344319650307 {
P -P
0.057223
j 0.411090263545z
0.0225735
0.109541055488
35
H5L
i x1
5
x2H5L z
j x3H5L
k
H6L
i x1
x2H6L z
j x3H6L
k
H7L
i x1
x2H7L z
j x3H7L
k
H8L
i x1
x2H8L z
j x3H8L
k
H9L
i x1
x2H9L z
j x3H9L
xH11L
1
k
i
12
xH12L
1
k
i
{
y
xH13L
1
{
y
x2H13L z
j x3H13L
{
k
i
14
xH14L
1
x2H14L
j x3H14L
y
z
i 0.540538587853
y
0.417259979400
z
j
k
0.103361578001
i 0.525139366821
y
0.407093009177
z
j
k
0.100034229902
i 0.525082881781
y
0.399392296747
z
j
k
0.0967737271574
i 0.523365395933
y
0.394247591038
z
j
k
xH15L
1
xH16L
i 0.398928319789 y
j 0.101010630244 z
k
xH17L
1
j 0.103361578001
i 0.401631958300 y
j 0.100397390810 z
k
i 0.525139366821
y
0.407093009177
z
j
x2H17L z
j x3H17L
k
{
0.0153992
y
0.399392296747
{
0.00770071
i 0.523365395933
0.394247591038
{
j 0.0986184099426
y
0.00514471
i 0.529737751010
0.396877726303
0.00637236
z
j 0.0992528349793
k 0.529489883747
i 0.398928319789 y
j 0.101010630244 z
k 0.531659638883
i 0.401631958300 y
j 0.100397390810 z
k 0.528970963348
i 0.401035515840 y
j 0.100540509352 z
k
0.529582443642
i 0.400814073727
{
0.529582443642
j 0.0996742073289
k 0.528070681812
j 0.0999599789518
k 0.529322446405
i 0.399759057825
36
0.00268868
{
0.000866302
0.00151176
{
y
z
0.529635085822
j 0.0999478584851
k
0.00270364
i 0.399561823700 y
j 0.100125401176 z
k
i 0.400125207284
j 0.0997014955401
k 0.528722460539
0.528722460539
0.00205059
0.529322446405
i 0.399562203841
0.528070681812
i 0.399561823700 y
j 0.100125401176 z
k
0.00617948
j 0.0967737271574 z
0.528970963348
z i 0.400814073727 y
j 0.0996742073289 z
{ k
y
0.100034229902
i 0.525082881781
0.531659638883
i 0.401035515840 y
j 0.100540509352 z
k
y
z
0.529489883747
y
i
x2H16L z 0.399759057825
j 0.0997014955401 z
j x3H16L
{ k
k
i
0.417259979400
0.529737751010
i 0.399562203841 y
x2H15L z
j 0.0999599789518 z
j x3H15L
{ k
k
i
17
x2H12L z
j x3H12L
16
x2H11L z
j x3H11L
15
j 0.109541055488
i 0.540538587853
0.0986184099426
{
k
xH10L
11
13
0.411090263545
i 0.396877726303 y
x2H10L z
j 0.0992528349793 z
j x3H10L
{ k
k
i
10
i 0.545377454967
0.00125176
{
0.000599986
{
y
0.000912625
xH18L
1
18 k x2H18L {
xH19L
j x3H18L
0.529635085822
z
y
0.528980681354
i
j x3H19L
z
y
20 k x2H20L {
xH21L
j x3H20L
z
y
xH22L
j x3H21L
xH23L
j x3H22L
z
y
j x3H23L
24 k x2H24L {
xH25L
j x3H24L
z
y
j x3H25L
26 k x2H26L {
xH27L
j x3H26L
z
y
xH28L
j x3H27L
28 k x2H28L {
xH29L
j x3H28L
z
y
j x3H29L
0.529090802357
30 k x2H30L {
j x3H30L
z j
0.100039308263
0.000310139
{
y
0.000304074
0.400032654307
k
j
z
0.0999588718364
i 0.529054013269
0.100041012464
y
0.000226349
{
0.529251991690
y
0.000197978
0.400048164850
k
j
z
0.0999743091457
i 0.529074394336
k
0.100026409432
y
0.000177597
{
0.529213387237
y
0.000138993
0.400028719135
k
j
z
0.0999771551346
i 0.529090802357
0.100016679458
0.000122585
{
0.529196099584
y
0.000105297
0.400016229627
k
j
z
0.0999838407686
i 0.529110520812
0.399982330782
0.400016229627
0.0999838407686
0.529280362652
0.399974743043
0.529196099584
i
k
j
z
0.100016679458
z
y
0.000375521
{
0.399974743043
0.400028719135
k
j
z
0.0999771551346
xH30L
i 0.528976288191
0.399976680909
0.529213387237
29 k x2H29L {
0.400048636473
k
j
z
0.100026409432
k
j
z
0.0999225500417
0.529074394336
z
y
0.000527211
{
0.399976680909
0.400048164850
0.100056454546
k
j
z
0.0999743091457
27 k x2H27L {
0.529286427230
0.399957250943
0.529251991690
i
k
j
z
0.100041012464
z
y
0.399957250943
0.529054013269
xH26L
0.400032654307
0.399901491381
k
j
z
0.0999588718364
25 k x2H25L {
i 0.528910906383
0.529280362652
0.000457436
0.400209377668
k
j
z
0.0999362305849
k
j
z
0.100039308263
z
y
0.399901491381
0.400048636473
0.528976288191
xH24L
k
j
z
0.0999225500417
0.100151980654
0.000654404
{
0.529438117100
0.399947969380
0.529286427230
23 k x2H23L {
k
j
z
0.100056454546
0.399947969380
0.400209377668
0.528910906383
z
y
22 k x2H22L {
k
j
z
0.0999362305849
21 k x2H21L {
0.399998735777
0.529438117100
k
j
z
0.100151980654
xH20L
i 0.528980681354
0.399998735777
0.400125207284
k
j
z
0.0999478584851
19 k x2H19L {
0.0000855788
{
0.100013267703
37
i 0.529110520812
31 k x2H31L {
0.399982330782
xH31L
xH32L
j x3H31L
z
y
32 k x2H32L {
xH33L
j x3H32L
z
y
j x3H33L
xH35L
j x3H34L
z
y
xH37L
j x3H36L
z
y
j x3H37L
xH39L
j x3H38L
z
y
z
y
40 k x2H40L {
xH41L
j x3H40L
z
y
j x3H41L
xH43L
j x3H42L
z
y
43 k x2H43L {
j x3H43L
0.100002489023
0.529156698201
0.100001775709
0.0000119318
0.399997751975
0.529154892468
i
k
j
z
0.100001775709
0.399997751975
0.0000140656
{
0.529144766378
i 0.529144766378
0.400002627477
0.400002627477
k
j
z
0.0999978801428
k
j
z
0.0999978801428
0.0000166904
0.399996944625
0.529156698201
i
k
j
z
0.100002489023
0.399996944625
0.0000196019
{
0.529142632645
i 0.529142632645
0.400003742647
0.400003742647
k
j
z
0.0999970856495
k
j
z
0.0999970856495
z
y
42 k x2H42L {
0.529159323060
41 k x2H41L {
xH42L
0.100003510857
0.0000231479
0.399995720826
0.529159323060
i
k
j
z
0.100003510857
0.399995720826
0.0000275303
{
0.529139721136
i 0.529139721136
0.400005016281
0.400005016281
k
j
z
0.0999959271514
k
j
z
0.0999959271514
xH40L
0.529162868991
39 k x2H39L {
j x3H39L
0.100004789772
0.0000321406
0.399993729246
0.529162868991
i
{
k
j
z
0.100004789772
0.399993729246
k
0.0000381611
{
0.529135338713
i 0.529135338713
0.400006870824
0.400006870824
k
j
z
0.0999941646317
k
j
z
0.0999941646317
z
y
38 k x2H38L {
0.529167479320
37 k x2H37L {
xH38L
0.100006613827
0.0000454211
0.399991677243
0.529167479320
i
{
k
j
z
0.100006613827
0.399991677243
0.0000525443
{
0.529129318200
i 0.529129318200
0.400010550729
0.400010550729
k
j
z
0.0999920830196
k
j
z
0.0999920830196
z
y
36 k x2H36L {
0.0000631566
0.399989234533
0.529174739302
0.529174739302
xH36L
0.100009722833
k
j
z
0.100009722833
y
{
0.529122194984
0.399989234533
0.0000748308
0.400014159166
0.400014159166
k
j
z
0.0999893965626
i 0.529122194984
35 k x2H35L {
j x3H35L
k
j
z
0.0999893965626
z
y
34 k x2H34L {
0.529185351567
33 k x2H33L {
xH34L
0.100013267703
0.529185351567
y
0.0000101261
0.400001865757
0.0999984847783
38
Tabla de datos.
Problema8. Dadoelsiguienteproblemanolineal
2
f1Hx21,x2,x32L=10x1-2x2 +x2-2x3-5=0,f2Hx1,x2,x3L=
4x3 +8x2 -9=0.
Calcular
f3Hx1,x2,x3L=8x3x2+4=0.
solucin
aproximada
del sistema
la
empleando
el
mtodo
dePunto
Fijo
H 0L H 0L H 0L T
T
comenzandoenlospuntosP
=Ix 1 ,x 2 ,x 3 M =H1,1,-1L ,eiterandohasta
-40
quePi+1 - Pi 5 10 .
;
2
2
Clear@ecuaciones, p, dD2
9, 8 x2 x3 + 4<;
ecuaciones = 810 x1 2 x2 + x2 2 x3 5, 4 x3 + 8 x2
10,
ecuacionestrans =
8 , 4
4 x32 + 9
8 x2
;
2
2 x x + 2 x +5
2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9I
M
H
L
H
L=
d = 10. ; p = 81., 1., 1.<;
puntoFijo@ecuaciones, ecuacionestrans, p, dD;
Mtodo del Punto Fijo para sistemas de ecuaciones no lineales.
2
i0
f Hx1, x2, x3L i -2 x2 + x2 + 10 x1 - 2 x3 - 5 y
=
2
2
= 8 x2 + 4 x3 - 9
z
y
0
j z
j
8 x2 x3 + 4
0
4
H0L y
i x1
P0 =
x2H0L
ik
= 1.
z
1.
j
j x3H0L
-1.
k
{ k
{
Ecuaciones preparadas para el mtodo del Punto Fijo.
L
H0L
L+ 5
i x1 y i
2
1
2 xHk-1L
10
0L
J H
9-4 x3
k {
Ny
- xHk-1L + 2 xHk-1L
H2
Hk-1L
"##############################
H L
j x3H0L
k
{
2 !!!!
1
j
k
2 xHk-1L
H
39
H0L
i x1
1.00000000000
0
k
x2H1L {
x2H2L {
k
j x3H2L z
H3L
i x1 y
x2H3L {
k
j x3H3L z
H4L
i x1 y
x2H4L {
k
j x3H4L z
H5L
i x1 y
x2H5L {
k
j x3H5L z
H6L
i x1 y
x2H6L {
k
j x3H6L z
H7L
i x1 y
x2H7L {
k
j x3H7L z
H8L
i x1 y
x2H8L {
k
j x3H8L z
H9L
i x1 y
9
k
x2H9L {
j x3H9L
1.00000000000
j
-1.00000000000
P -P
i+1
y i 0.400000000000
i+1
0.6
{
j
-0.500000000000
y i 0.445943058496
y
0.790569415042
k
0.790569415042
{ k
y i 0.400000000000
k
j x3H1L z
H2L
i x1 y
H1L
i x1
1
x2H0L {
j x3H0L
Pi
1.00000000000
{ k
z
0.209431
{
z
j
-0.500000000000 j
-0.632455532034
i 0.445943058496
y i 0.473508893593
y
1.00000000000
k
0.961769203084
{ k
z
0.132456
{
z
-0.632455532034 j
-0.500000000000
j
i 0.473508893593
y i 0.488823079692
y
0.961769203084
k
1.00000000000
{ k
z
0.0382308
{
z
j
-0.500000000000 j
-0.519875244910
i 0.488823079692
y i 0.496024951018
y
1.00000000000
k
0.994919526829
{ k
z
0.0198752
{
z
j
-0.519875244910 j
-0.500000000000
i 0.496024951018
y i 0.498481020290
y
0.994919526829
k
1.00000000000
{ k
z
0.00508047
{
z
-0.500000000000 j
-0.502553208091
j
i 0.498481020290
y i 0.499489358382
y
1.00000000000
k
0.999359863372
{ k
z
0.00255321
{
z
j
-0.502553208091 j
-0.500000000000
i 0.499489358382
y i 0.499808040967
y
0.999359863372
k
1.00000000000
{ k
z
0.000640137
{
z
j
-0.500000000000 j
-0.500320273333
i 0.499808040967
y i 0.499935945333
y
1.00000000000
k
0.999919902815
{ k
z
0.000320273
{
z
j
-0.500320273333 j
-0.500000000000
i 0.499935945333
y i 0.499975972128
y
0.999919902815
k
z j
1.00000000000
{ k
-0.500000000000
z j
40
0.0000800972
{
-0.500040051800
4. Mtodo de Seidel
4.1 Introduccin
ElmtododeSeidelesunaformadeacelerarlaconergenciadelaiteracindel
mtodo
HkL
x1
,x2
HkL
HkL
,...,xi-1
Hk-1L
envezdex1
Hk-1L
,x2
,...,xi-1
Hk-1L
recientes de
HkL
paracalcularxi
,igualqueen
elmtododeGaussSeidelparalossistemaslineales.
4.2 Pseudocdigo
Algoritmo2.MtododeSeidelparasistemasnolineales
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolinealesde
necuacionesconnincognitasmedianteelmtododeSeideles:
Algoritmo de Seidel
Input I8 H ,
L< m , 8
f x1
..., x m
L<
f tran s x1 , ..., xm
m,
H1
H0 H0L
L
x
...
x m0
HLL
, error
2
x H0L ...
H0
L
LL
x m0
p0p
error_inicial 160
i0
8f Hx1, ..., xn L<1
n
F
While error_inicial >= error
do
H* Se evala la funcin transformada en el punto comprobando los ndices*L
For k = 1,...n do
For j = 1,..., i do
i
p
j
k
transjH
transjH
Ly
... H Lz
transj
End
For j = i, ..., n do
41
i
p
j
k
p0
p0
transj
transj H
...H
transj
y
Lz
p0
End
End p1
p
(* Clculo de la norma de la distancia entre los dos puntos *)
error_inicial p1 - p0
p0 p1 i i
+1
End
Return Hx
Hp1L L
Output
4.3 Problemas
Problema9.AplqueseelmtododeSeidelparasistemasnolinealesparaaproximarelsistemade
ecuacionesnolinealessiguiente,iniciandoelmtodoenelpuntoinicial
H 0L H 0L H 0L T
-5
T
P0=Ix 1 ,x 2 ,x 3 M =H0.1,0.1,-0.1L eiterandohastaquePi+1-Pi10 .
f1Hx1,x2,x3L=3x1-cosHx2x3L-12=0,
f2Hx1,x2,x3L=x -x1-81Hx
2-0.1L +senx3+1.06=0,
x
f3Hx1,x2,x3L=e 1 2+20x3+H10p -3L 3=0.
Solucin
Clear@ecuaciones, ecuacionestrans, p, dD;
+ 1 2,
ecuaciones = 93 x1 Cos@x2
x 3D
x1 81 Hx2 0.1L
1 j
5
d = 10.
20
Exp
+ Sin@x3D +
96H
ecuacionestrans =
2 Cos x x
x1
10 3
+1 ,
x2
+y ;
42
10 3 z =
3
=;
i"#######################################y
x2
+ Sin x
@ D
+ 1.06
0.1,
Tabla de datos.
3 x1 +
20 x3
i 0.1 y
H0L
i x1 y
P0 = x2
k
H0L
-x x
+ 1
1 2
2 cos xHk-1L
H0L
i x1
x 1H
IH
k
-
20
+ 1.06 - 0.1
H
- H 1
L Hx2
LM
0.100000000000
j -0.100000000000 z
L+
3 - 10 p
Pi
k-1
x 3H
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ sin
i 0.100000000000
x2H0L z
j x3H0L
xHk-1L
IH 2
1
9
j x3HkL
-0.1
xHkL
-3 + 10 p
{ = 0.1
k
j x3H0L
LM
i 0.499983333472
0.0222297935586
i+1
j -0.523046126191
k
i+1
-P
0.423046
z
{
i 0.499983333472
x2H1L z
0.0222297935586
H1L
i x1
j x3H1L
k
x2H2L
j x3H2L
k
0.0000281536619354
z
{
0.0000281536619354
x2H3L
i 0.499999999964
3.76220182091 10
j -0.523598071793
j -0.523598774658
3.76220182091 10
-8
j x 3 z j -0.523598774658
k
{ k
P4 = j 5.02802799396
-11
10
-0.523598775597
Problema10. Dadoelsiguienteproblemanolineal
f1Hx1,x2L= -x1H1+x1L+2x2=18,
43
0.000028116
5.02802799396 10
j -0.523598775597
k
0.0222016
i 0.500000000000
-8
-11
z
{
3H L
j -0.523598071793
{
y i 0.499999999964
H3L
i x1
y
z
y i 0.499977468262
H2L
i x1
j -0.523046126191
i 0.499977468262
-8
3.75717 10
z
{
CalcularlasolucinaproximadadelsistemaempleandoelmtododeSeidel
comenzandoenlospuntos
H 0L
H 0L
P0=Ix 1 ,x 2 M =H2,11L ,
H 0L H 0L T
T
P0=Ix 1 ,x 2 M =H-1.5,10.5L
-5
eiterandohastaquePi+1-Pi510 ,comprobarsiseaceleralaconvergenciarespectoalmtododelPuntoFijo.
f x1, x2
H
P0
= i x1
j
k
kH
j
H0L
= i -x1 Hx1 + 1L + 2 x2 - 18 y =k 0 {
L
x1 - 1
x2
-6
- 25 z
0z
y = i 2.
Lz
+H
11.
i x1
y i "#######################################
=
j x2HkL
j
k
- 17.75 - 0.5
2 x2Hk-1L
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 -
IH
x1HkL
-1
z
{
+6
Tabla de datos.
i x1
H0L
0
j
k
i
j
k
i
j
k
i
j
k
x 0 Lz j
k
H1L i
x1
y
2H
x 3 Lz j
k
H4L i
x1
y
jx
k
2H
1.54615042038 y
10.9700824659
1.54698923590 y
10.9699902189
H
2
{ k
10.9700824659
10.9699902189
1.54694417065 y
10.9699951785
10.9699949118
0.0000450652
2.42293 10
z
44
0.000838816
i 1.54694659358 y
j
0.0154024
i 1.54694417065 y
4 L z j 10.9699951785 z
10.9683657714
i 1.54698923590 y
0.438447
i 1.54615042038 y
i+1
i 1.56155281281 y
1.56155281281 y
10.9683657714
P -P
i+1
x 2 Lz j
k
H3L i
x1
y
2H
11.0000000000
x 1 Lz j
k
H2L i
x1
y
2H
Pi
i 2.00000000000 y
-6
1.54694659358 y
10.9699949118
ConelmtododelPuntoFijosellegaalasolucinaproximadarealizando8
iteraciones,encambioconelmtododeSeidelseconsigueslocon5iteraciones.
Clear@ecuaciones, ecuacionestrans, p, dD;
ecuaciones = 8x1 H1 + x1L + 2 x2 18, Hx1 1L2 + Hx2 6L2 25<;
!!!!!!!!!!!!!!!!!!!!!!!!!!
"##############################
ecuacionestrans
= 90.5 2 x2 17.75 , 25 Hx1 1L
5
6=; d = 10. ; p = 81.5, 10.5<;
P0 = i
k H
H0L
y=i
x 0 Lz
x1 - 1
-1.5
j
-6
- 25
0z
10.5 z
2H
+ x2
HL
i x1
y
=
j x2HkL
z
{
x2
H
j
- 17.75 - 0.5
Hk-1L
"#######################################
- 12 + 6
25 - x1HkL
$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IH
Tabla de datos.
i
0
i x1
H0L
j H0L z
k x2 {
H1L
i x1 y
j H1L z
k x2 {
H2L
i x1 y
j H2L z
k x2 {
H3L
i x1 y
j H3L z
k x2 {
H4L
i x1 y
j H4L z
k x2 {
Pi
-1.50000000000 y
P -P
i+1
-2.30277563773 y
k 10.5000000000
k 9.75388772965
k 10.1248988840
i+1
k 9.75388772965
k 10.1248988840
k 9.93788999333
0.255264
k 9.93788999333
k 10.0311541233
0.123069
k 10.0311541233
{
z
k 9.98444588416
{
z
0.0626221
z
j
i -2.30277563773 y
z
j
i -1.82581124573 y
z
j
i -2.08107487744 y
z
j
i -1.95800548239 y
z
j
i -1.82581124573 y
z
j
i -2.08107487744 y
z
j
i -1.95800548239 y
z
j
i -2.02062758317 y
45
0.802776
0.476964
H5L
i x1
i 2.02062758317 kj
j
z
k x2H5L {
6
7
H6L
9.98444588416
j
k x2H6L {z
H7L
10.0077830203
j
z
k x2H7L {
H8L
9.99610995200
j
z
k x2H8L {
H9L
10.0019453931
9.99902739529
10.0004863254
k xH11L {
i
9.99975684306
k xH12L {
i
10.0001215799
k xH13L {
i
9.99993921041
k xH14L {
i
10.0000303949
16
k xH15L {
i
9.99998480258
k xH16L {
1
k xH17L {
i
9.99999620064
0.0000607901
10.0000075987
0.000121578
0.000243164
0.000486295
0.000972725
0.00194491
0.0000303948
0.0000151975
z j 9.99999620064
z
- y i -1.99999746709 y
-6
i 2.00000506580 kj
7.59871 10
j x2H16L z
17
0.00389198
z j 10.0000075987
z
- y i -2.00000506580 y
i 1.99998986835 kj
j x2H15L z
z j 9.99998480258
z
- y i -1.99998986835 y
i 2.00002026312 kj
j x2H14L z
15
0.00777535
z j 10.0000303949
z
- y i -2.00002026312 y
i 1.99995947306 kj
j x2H13L z
14
z j 9.99993921041
z
- y i -1.99995947306 y
i 2.00008105108 kj
j x2H12L z
13
0.0155852
z j 10.0001215799
z
- y i -2.00008105108 y
i 1.99983788661 kj
j x2H11L z
12
z j 9.99975684306
z
- y i -1.99983788661 y
i 2.00032418188 kj
j x2H10L z
11
z j 10.0004863254
z
- y i -2.00032418188 y
i 1.99935145665 kj
z
xH10L {
j x2H9L
k
10
z j 9.99902739529
z
- y i -1.99935145665 y
i 2.00129636853 kj
i x1
z j 10.0019453931
z
- y i -2.00129636853 y
i 1.99740438893 kj
i x1
z j 9.99610995200
z
- y i -1.99740438893 y
i 2.00517973698 kj
i x1
0.0310331
y i -1.98959449795 y
z j 10.0077830203
z
- y i -2.00517973698 y
i 1.98959449795 kj
i x1
y
{z
kj x2H17L
z j
10.0000018997
18
-1.99999746709 y
i
k
10.0000018997
ConelmtododelPuntoFijosellegaalasolucinaproximadarealizando33
iteraciones,encambioconelmtododeSeidelseconsigueslocon18iteraciones.
Problema 11. Aproximar las soluciones de los siguientes sistemas no lineales, empleando el
mtododeSeidelconlaaproximaciininicialdada,iterandohastaque
-5
Pi+1-Pi10 .CompararlaconvergenciaconelmtododelPuntoFijo.
a)
46
fx,x
- x 2 = 0,
-x
2 2
1
2H1
0LM T
0L
HL
,x2H
P0=Ix1
b)
=x
= H0.7,0.4L
2
3
f2Hx1,x2L=3x1x2 -x1 -1=0,
H 0L
H 0L
P0=Ix 1 ,x 2 M =H0.4,0.7L
2
c)
f1Hx1,x2,x3L=x
1 +x2-37=0,f2Hx1,x2,
2
x3L=x1-x2 -5=0,
f3Hx1,x2,x3L=x3+x1+x2-3=0
P0=
I
d)
,x
fx,x
1H
f
f
3H
x ,x ,x
2
- x2 - 2 x3 = 0,
12
=x
,x
+ 2 x2
2H 1 2 3L 1x1
x,x
= 5,1, -1
=x
3L
-8x
+ 10 x3 = 0,
- 1 =
7x
3T2
M
P0=
= 0.5,0.5,0.1 T
Solucin
a)
ecuaciones, ecuacionestrans, p, d ;
Clear@
ecuaciones = 8x1
+ x2 x1 , x 1
9!!!!!!!!!!!!!!!!
x1
x22
ecuacionestrans
2
x2
x2 <;
!!!!!!!!!!!!!!!!!!! =
x2 + x12 ;
=i
x 2 - x + x22 y
1
1
2
x 2 - x2
- x2
0
=i y
k
j
P0
= i x1
j
k
H0L
2H
0.7
=i
L z
0.4
{
0z
i
1
"############################## y
H
xHkL
k
j x2HkL z
1H
L L
2H
- x k-1
L L2
"###########################
H
x1HkL
L2 - H
z
{
x2HkL
Tabla de datos.
i
H0L
i x1
i 0.700000000000 y
jx
j
{ k
2H L z
P -P
i+1
i 0.758186601593 y
z
0.400000000000 j
{ k
47
0.395853396857
i+1
0.0581866
HL
H1L
i x1
k
1
H2L
i x1
j
j
3
3L
jx
6L
jx
i 0.850108783922 y
k
j
j 0.320183781089
i 0.878556796643 y
i 0.884694665710 y
k
j
2H
x8
z
y
2H
H9L
i x1
x
2
10 i
k
i
j
xH10L
x 10
xH11L
2H
x 11
2
{
y
x 12
2
13 ki
k
i
j
2H
x 15
2H
k
i
j
x 16
xH17L
2H
x 17
2H
x 18
2
19 ki
j
xH19L
j 0.315898578348
i 0.884694665710 y
j
0.0114993
{
0.00613787
{
0.315384225093 z
0.00224581
k
j
0.316489556832 z
i 0.887038695732 y
0.0013443
j 0.317833861157 z
k 0.886317953082
k 0.885526587708
0.318833504567
j 0.319391371455 z
k 0.884959544969
{
y
k 0.884653101842
k 0.884538377982
k 0.884601456979
{
y
z j 0.319441084854
j 0.884645014784
H20L
y i
j 0.319529452198 z
k 0.884563268283
z
z j 0.319452706939
k 0.884629490427
{
y
z
z j 0.319480717288
k 0.884601456979
0.319643028398
k 0.884563268283
0.319529452198
j 0.319593068015 z
k 0.884529978360
x 19
20 k x1
i
0.320183781089 z
i 0.886940471283 y
18 ki x1H18L {y
0.0169487
0.319613272293
z
z j 0.319593068015
k 0.884529978360
0.0204857
{
0.330235800227 z
z
z j 0.319643028398
k 0.884538377982
16 ki x1H16L {y
0.0212875
{
j 0.319613272293 z
k 0.884653101842
x 14
k
j
z
z j 0.319391371455
k 0.884959544969
z
z j 0.318833504567
k 0.885526587708
0.365129119713 z
j 0.346144074853
i 0.850108783922 y
{
L
0.0216617
i 0.878556796643 y
k 0.886317953082
0.317833861157
0.382915782338
i 0.867057510997 y
15 ki x1H15L {y
j
x 13
2H
{
y
xH14L
i 0.886940471283 y
xH13L
0.315384225093 z
z
z j 0.316489556832
k 0.887038695732
12 ki x1H12L {y
j
0.315898578348 z
k
j
i 0.867057510997 y
k
i 0.829623091179 y
0.330235800227 z
x7
H8L
i x1
17
0.346144074853 z
14
j 0.365129119713
i 0.829623091179 y
i x1
11
i 0.808335559959 y
z
i 0.808335559959 y
{
0.382915782338 z
H7L
0.395853396857
2H
k
j
z
y
H6L
x5 L
i x1
i 0.786673895490 y
i 0.786673895490 y
0.0284873
H5L
i x1
H4L
i x1
z
y
H3L
i 0.758186601593 y
x2 L
i x1
z
y
0.319480717288
j 0.319452706939 z
k 0.884629490427
j 0.319441084854 z
k 0.884645014784
j 0.319439124922
z j 0.884651081736
y i
{
y
{
y
z
{
0.000999643
0.000791365
0.000567043
0.000306443
0.000114724
0.0000636158
0.0000487349
0.0000381887
0.0000280334
0.0000155244
-6
y 6.06695 10
48
P21 = j
k 0.319441328730 {
Solucin
b)
ecuaciones, ecuacionestrans, p, d ;
Clear@
ecuaciones =
83 x1
d = 10.
x2
ecuacionestrans =
x2 , 3 x
9 2 !!!
; p = 80.4, 0.7<;
3 ,
1<;
x1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
H
LH
1 + x13
3 x1
L=
i 3 x12 - x22
k
-x3 + 3 x 2 x1 - 1
0
=i y
k
{
j0z
P0
= i x1
j
H0L
2H
=i
z
0.4
j 0.7 z
k
L
k
!!!!
y=
H2 L
k 3
$%%%%%%%%%%%%%%%%%%%
+1
xH L
H
x2H
k
j
x1
Hk L
!!!!
HL
{
z
Tabla de datos.
H0L
i x1
0
k
j
k
z
0.700000000000 j
{
0.937672940468
i+1
2H
H
2
49
0.237673
0.137221
0.0537118
H3L
i 0.504253132956 y
i x1 y i 0.487653902791 y
z
z
j x 3 Lz j
0.873392046155 j
0.863597549558
{ k
{
k
{ k
H
2
H2L
i 0.487653902791 y
i x1 y i 0.541365724591 y
z
z
j x 2 Lz j
0.844641336143 j
0.873392046155
k
2H
i 0.404145188433 y
H1L
i 0.541365724591 y
i x1 y i 0.404145188433 y
z
z
j x 1 Lz j
0.937672940468 j
0.844641336143
k
0 Lz
P -P
i+1
i 0.400000000000 y
jx
Pi
0.0165992
H5L
j
6
6L
2H
H7L
H8L
j
9
j
k
i 0.500052066604 y
k
j
y
L
2H
xH10L
j
i
x 10
0.866115585789
0.500052066604 y
0.865995347290 z
0.866022064071
0.0000694197
{
0.866035423080 z
i 0.500005784643 y
0.0000231378
0.866022064071
0.499998071815
{
y
0.000208201
{ k
j
0.000625125
i 0.499982646875 y
0.865995347290 z
0.00187071
0.499843865209 y
0.866115585789 z
0.866837719240 z
j 0.866035423080 z
j
{ k
k
0.500005784643
0.865754970393 z
i 0.499982646875 y
{ k
j
j 0.865754970393
i 0.499843865209 y
Lz
0.498598277709 y
i 0.500468990547 y
0.866837719240 z
i
k
x 8L
z
H
H9L
i x1
0.863597549558 z
i 0.500468990547 y
i x1
k
k
j
i x1
i 0.498598277709 y
jx
Lz
H6L
0.00565486
x 5L
z
H
i x1
i 0.504253132956 y
i x1
j
10
Lz
H4L
i x1
0.866026517028
11
i 0.499998071815 y
k
0.866026517028
Solucin
c)
2
@
Clear ecuaciones, ecuacionestrans, p, d ;
ecuaciones = 8 x1 + x2 37, x1
5
ecuacionestrans
d = 10.
x2 5, x3 + x1 + x2 3<;
!!!!!!!!!!!!
= ;
9!!!!!!!!!!!!!!!
37 x2 ,
x1 5 , 3 x1 x2
12
+x
- 37
-1.
50
-6
7.71283 10
j x3HkL
xHkL
37 -
x 2Hk-1L
"##################
Hk
x1H
-5
L
{
{ k
j - x1H L - x2H L
z
+3
Tabla de datos.
i
H0L
i x1
0
k
x2H0L
j x3H0L
y i 6.00000000000
1.00000000000
1.00000000000
z j -1.00000000000
i 6.00000000000
z j
y
3.
{
1.00000000000
{
-4.00000000000
j -4.00000000000
y i 6.00000000000
j x3H1L
1.00000000000
x2H1L {
i+1
i 5.00000000000
{
H1L
i x1 y
P -P
i+1
0.
{
-4.00000000000
Solucin
d)
x 12
ecuaciones
ecuacionestrans =
5
2 x2
9 x1
x2
2 x3, x1
8 x2
7 x3 x2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! x12
H
L
2 x3 + x2 2 x22 ,
10 x3 +x12
8 ,
10 x3,
7 x2
51
1=;
Tabla de datos.
1
7 x2 x3
H0L
i x1
P0 =
ik
0.5
x2H0L
j x3H0L
0.5
j0z
k {
j 0.1 z
k
{
"###################################################################### y
H
i x1 y
x2
H0L
2 !!!!
x1HkL
x2H0L {
i
k
0.500000000000
j x3H0L
i x1
H1L
0.500000000000 y
0
HLH L
z
k
i x1
"##########################################
7 x 2H
j x3HkL
k
1
k
x2H1L {
j x3H1L
0.100000000000
0.447213595500
i
k
0.387298334621
j
0.0737711113563
H2L
i x1
2
x2H2L
j x3H2L
i x1
H3L
3
k
i x1
H4L
i x1
H5L
x2H5L {
k
j x3H5L
0.348667404358
j
i
k
0.0962196369040
0.396888701257
j
0.107251644208
0.544381031358 y
i
x2H4L {
j x3H4L
0.545865148587 y
x2H3L {
i
k
j x3H3L
0.484603505284
0.413652503526
j
0.102346329269
0.112702
0.348667404358 {
0.0386309
0.0962196369040
j 0.396888701257z
0.0612616
0.107251644208
k
{
i 0.544381031358 y
j 0.413652503526z
0.0167638
0.102346329269
k
i 0.525479185809
k
{
y
0.403049573163 {
0.0978711138794
0.0189018
i 0.523348721283
52
i 0.545865148587 y
{
0.0978711138794
0.387298334621 {
0.0737711113563
0.403049573163
P -P
i+1
i 0.484603505284
y
i+1
i 0.447213595500
0.525479185809
i
0.395696383428 {
0.0988831320244
0.00735319
i x1
6
x2H6L {
j x3H6L
H7L
i x1
7
H8L
xH10L
j x3H9L
z
y
10 k x2H10L {
xH11L
j x3H10L
z
y
j x3H12L
j x3H14L
15 k x2H15L {
xH16L
j x3H15L
z
y
j x3H16L
j x3H18L
y
{
j 0.100058394353
i 0.529232711291
i 0.529161695776
z j
0.000132572
{
0.529115038580
y
0.0000346524
0.399964791611
k
j
z
0.0999954888614
i 0.529161695776
y
0.0000466572
{
j 0.100005611105
i 0.529163790303
y
0.0000153032
0.400003397204
0.529145463186
i
k
j
z
0.0999984797779
0.400003397204
0.100002362081
0.0000161622
{
0.529148487085
i
{
0.0999984797779
0.399999443972
0.529148487085
i
0.000104578
{
0.400011004226
0.100002362081
0.400011004226
j 0.100005611105
i 0.529163790303
0.000348773
{
0.100004948396
0.399994841981
z
y
0.399994841981
0.399964791611
0.000470592
{
k
j
z
0.0999811952175
k
j
z
0.0999954888614
0.529100139352
0.399999443972
j 0.100011694612
i 0.529337289125
0.529115038580
z
y
18 k x2H18L {
k
j
z
0.0999811952175
xH18L
i 0.528988516554
0.529100139352
i
0.00101973
0.399720945938
k
j
z
0.0998307869756
0.400104862229
17 k x2H17L {
j x3H17L
0.100004948396
0.400104862229
j 0.100058394353
i 0.529232711291
16 k x2H16L {
xH17L
0.528517924223
0.400049201939
0.00177849
{
0.400049201939
0.399708756534
j 0.100011694612
i 0.529337289125
k
0.400740671227
0.399708756534
z
y
z
y
0.100453941902
0.00286656
{
k
j
z
0.0998883480747
0.399720945938
0.529344184427
i 0.528988516554
z
y
xH15L
k
j
z
0.0998307869756
z
y
14 k x2H14L {
0.400740671227
xH14L
0.528517924223
13 k x2H13L {
j x3H13L
k
j
z
0.0998883480747
12 k x2H12L {
xH13L
0.100453941902
0.0060957
{
j 0.100538516128
i 0.531122669667
0.529344184427
xH12L
11 k x2H11L {
j x3H11L
0.401166494662
x2H9L {
0.401166494662
j 0.100538516128
i 0.531122669667
H9L
i x1
i 0.529444418009
0.398299935979
k
x2H8L {
j x3H8L
i 0.529444418009
0.398299935979
0.395696383428
k
j
z
0.0988831320244
i x1
k
x2H7L {
j x3H7L
0.523348721283
y
-6
0.399996831080
0.0999989783686
6.56612 10
53
Problema12. Dadoelsiguienteproblemanolineal
2
f1Hx1,x
,x L=x1 +x2-37=0,f1Hx1,x2,x3L=
22 3
x1-x2 -5=0.
f1Hx1,x2,x3L=x1+x2+x3-3=0
CalcularlasolucinaproximadadelsistemaempleandoelmtododeSeidel
H 0L
H 0L
comenzandoenelpunto:P
0=Ix 1 ,x 2 ,x3
-5
Pi+1 - Pi 5 10 .
2
@
Clear ecuaciones, ecuacionestrans, p, d ;
5
ecuacionestrans =
d = 10.
M =H0,0,0L ,eiterandohastaque
H0L
5, x1 + x2 + x3 3<;
= ;
9!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!
+ 37 , x1
5 , 3 x1 x2
x2
12
2
f Hx1, x2 , x3L = x + x - 37
{ =k 0 {
-x2 + x1 - 5
j
z
j 0z
x1 + x2 + x3 - 3
H0L
i 0. y
i x1 y
=
H0L
0.
P0 = x2
k
{ k {
k
j 0. z
j x3H0L z
xHkL
i "###########################
y=
xHkL
k
2
j x 3H L
37 -
L
x2Hk-1L
"##################
H
{
z
k H
x1H
L-
j - x1HkL
-5
H
x2HkL
+3
Tabla de datos.
i i x1H0L y
0
x2H0L
j 0z
k {
j x3H0L
Pi
i0y
y
i+1
1.04055875870
-4.12332128899
54
P -P
i+1
i 6.08276253030
z
6.08276
H1L
i x1
1
x2H1L
y i 6.08276253030
1.04055875870
{
k
j x3H1L z
H2L
i x1 y
H3L
i x1 y
x2H3L {
k
j x3H3L z
H4L
i x1 y
4
k
{ k
z
x2H4L {
j x3H4L
0.128394
{
z
j
-4.12332128899 j
-3.99492729521
i 5.99661915093
y i 6.00014098632
y
0.998308144277
1.00007049068
j x 3H2L
0.998308144277
x2H2L {
y i 5.99661915093
{ k
-3.99492729521
i 6.00014098632
0.00528418
{
-4.00021147700
y i 5.99999412577
1.00007049068
0.999997062883
{ k
z
0.000220288
{
z
j
-4.00021147700 j
-3.99999118866
i 5.99999412577
y i 6.00000024476
y
0.999997062883
k
z j
-3.99999118866
-6
1.00000012238
{ k
z j
55
-4.00000036714
9.17848 10
5. Mtodo de Newton
5.1 Introduccin
EnlosmtodosdelPuntoFijoydeSeidelesnecesarioconvertirelproblemaaun
problema de punto fijo convergente, si se resuelven algebraicamente las ecuaciones
iniciales para las variables del problema. Sin embargo, es dificil encontrar una
transformacindelasecuacionesparaqueelproblemaseaconvergente.
Conelmtodode
Newtonsepuedeobtenerlasolucindeunsistemadeecuacionesnolinealesdeunaforma
msgeneral.
ParaconstruirunalgoritmoquelleveaunmtododePuntoFijoapropiadoenel
casounidimensional,seobtieneunafuncinfconlapropiedaddeque
(5)
gHxL=x- fHxLfHxL
daunaconvergenciacuadrticaenelpuntofijopdelafuncin
elmtododeNewtonevolucionaalseccionarfHxL=
g.Apartirdeestacondicin
0.
fHxL,suponiendoquef
Laaplicacindeunprocedimientosemejanteenelcason-dimensionalincluyeuna
matriz
ia11HxL a12HxL
A xL =
H
a21HxL a22HxL
... L
k ...H L
H
j
an1
n2
a1nHxLy
.......
(6)
a2nHxL
...
{
H L
nn
dondetodosloselementosaijHxLsonunafuncinde
modoque
56
en
.EstorequiereobtenerAHxLde
(7)
-1
GHxL=x-AHxL FHxL
delaconvergenciacuadrticaalasolucindeFHxL
enelpuntofijopdeG.
Teorema3.
Suponiendo que p es una solucin de
x j
Nd=8x x - p d<,
2
2
gi x
seacontinuay
gi x
(ii)
xNd
Hx j xk L
Hx j xk L
i=1,2,
gi p
Mparaalgunacontante Mysiempreque
....,n, j=1,2,
...,n, k=1,2,...,n.
= 0,para i = 1,2,..nyk
= 1,2,...,n.
(iii)
xk
entoncesexisteunnmerod dtalquelasucesingeneradapor
verge
x
= G Hx
k-1
L con
acondicin de que
- p d.Incluso
2
n M
xHkL
-p
xHk-1L -
2
,k1.
ParautilizarelteoremaanteriorsesuponeunamatrizAHxLdenndefuncionesde
a
enlaformadelaecuacinmatricial,cuyoselementosespecficosseescogernms
adelante.SuponiendoademsqueAHxLesnosingularcercadeunasolucin pdeFHxL=0,y
57
-1
gi x
HL
- j=1 I
ijH
j=1
xk
L xk
HxL
fj
implicaque senecesita
HxL f jHxLM i = k
xk
bi
(9)
b x
x
I ijH L xk H L
-S
El teorema
fj
(8)
bijHxLfjHxL,
giHxL=xi- j=1
xk
HxL f jHxLM
bij
gp
ik
todai=1,2,..,nytoda
iHL = 0para
xk
k=1,2, ..,n.Estosignificaque,paratodai=k,
n
jH pL
0 = 1-
bi
fj
xi
(10)
H pL,
j=1
asque
n
bijHpL f H pL
=1.
(11)
xi
j=1
Cuandok i,
0 =-
f H pL,
(12)
ijH L xk
j=1
asque
n
bijHpL f H pL
j
=0.
xk
j=1
AldefinirlamatrizJHxLpormediode
(13)
58
HxL
x1
f1
f2 HxL
L
serequiereque
x1
k
j
f2
f1
HxL
x2
...
fn
...
HL
x1
fn
HxL y
xn
f1
J x =
HxL
x2
.......
f2 HxL
...
HL
(14)
xn
fn
HL
xn
x2
(15)
-1
AHpL JHpL = I, lamatriz
identidad,
Demodoque
(16)
AHpL=JHpL
Enconsecuencia,unaeleccinapropiadadeAHxLesAHxL=JHxLdadoqueentonces
secumplelacondicin(iii)delteorema.
Lafuncin Gestdefinidapor
(17)
-1
GHxL=x-JHxL FHxL,
H0L
yelprocedimientodelaiteracinfuncionalpasadeseleccionarx
HkL
= G Ix
Hk-1L
=x
Hk-1L
- J Hx
Hk-1L
-1
L FHx
Hk-1L
agenerarparak1
(18)
LM
AestoselellamamtododeNewtonparasistemasnolinealesygeneralmentese
esperaquedunaconvergenciacuadrtica,siempreycuandoseconozcaunvalorinicial
-1
suficientementeprecisoyexistaJHpL .AlamatrizJHxLselellamamatrizjacobiana.
LadebilidaddelmtododeNewtonsedebealanecesidaddecalculareinvertirla
-1
evitaefectuando
laoperacinendospasos.Primero,encontrandounvectory
quesatisfaga
matrizJHxLencadapaso.Enlaprctica,elclculoexplcitodeJHxL se
59
JHx
k-1
k-1
Ly= -FHx
L.
k
k-1
Unavezhechoesto,seobtienelanuevaaproximacinx agregandoyax
5.2 Pseudocdigo
Algoritmo3.MtododeNewtonparasistemas2 2
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolinealesde
2ecuacionescon2incognitasmedianteelmtododeNewtones:
Algoritmo Newton 2 2
L
H0L
, n, error
H0L T
p Hx1
x2 L
F 8f1Hx1, x2L, f2Hx1, x2L<
f1
x1 ,x2
f1
x1 ,x2
x1
f x x
x2
f x x
2H1, 2L
2H1, 2L
x1
y
{
x2
For k = 1, ..., n
do
k-1
k-1
i f1 H x1 , x2
Ly
k f2
j_valor
H x1
Hk-1L
, x2
k-1
Hk-1L
k-1
- f_valor
j_valor
p+y
End
Return Hx
k-1
k-1
i j11 H x1 , x2
L j12 H x1 , x2 Ly
j
z
Hk-1L
Hk-1L
k j21
H x1
, x2
L j22 H x1Hk-1L, x2Hk-1L L{
L{
HpL L
Output
60
Algoritmo4.MtododeNewtonparasistemasn n
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolineales
medianteelmtododeNewtones:
Input
Algoritmo Newton
I8 H
L<
f x 1, ..., x n
H0
L
x H0L ...
xn 0
, n, error
LL
x H0L ...
xm0
12
F8f Hx1,
..., xn L<1
i
HxL
f1
x 1
x 2
=
L k
HxL
x2
...
L
H
HxL
...
f1 HxL y
f2
x1
xn
f2
J x
HxL
f1
HxL
f2
... ....
x x1,
xn
...
fn
fn
..., xn
LL
{
x z
fn
x
x
x
x
x
p_antp
For k = 1, ..., n do
H* Se evala la funcin F y la matriz jacobiana en el punto *L
i f1 H p k-1 ,
p k-1 ,
H
H
f
2 p
, p2
1
k H. . . . . . . .1 . . . . . . . .H
L
, ..., p k-1
11
, ..., p
p k-1
j_valor
21
H
k
j
k-1 L
k-1
pHk-1L , ..., pn
1
H
...,
n1
Hk1L
,
...
p nk -1
, p
L{
, ...,
n
Ly
L
k-1
k-1
H
n
k-1
f_valor
..., p
L ...
...
L ...
L
...
1 n H p k-1
..., p k-1
2n
pHk-1L ,
1
H
j
...
..., pnk-1
1
,
nn
Hk1L
L Ly
...,
L L{
z
p n k-1
j_valor
p+y
HpL L
61
5.3 Problemas
Problema13. Considreseelsistemanolinealsiguiente,
2
x, y
1H
L=
f2Hx,yL=x
a)
+y
-2 =0
(circunferencia)
- y - 0.5 x + 0.1 = 0
(parbola).
UsarelmtododeNewtoncomenzandoenelpuntoP0=Hp0,q0L=H1.2,0.8Ly
calcularlospuntosP1yP2.
b)
Empleandoelmtodo
deNewton
ycomenzandoenelpunto
P0=Hp0,q0L=H-0.8,1.2L,calcularlospuntosP1yP2.
Solucin
@
D
Clear f1, f2, p, y1, y2, g1, g2, g ;
f1 = x 2 + y 2 2;
f2 = x2 y 0.5 x + 0.1;
y1 !!!!!!!!!!!!
=
2 x2 ;
2
y2 = x 0.5 x + 0.1;
p = 81.2, 0.8<;
newtonRaphsonNoLineal@f1, f2, p, 2, 0.2D;
Print@"Representacin de las funciones",
g1
g2
2 ,
2 ,
2
,
Plot AEvaluateA8y2<, 9x, !!!2 , !!!
=E
PlotStyle > 88Thickness @0.010D, RGBColor @1, 0, 0D<<,
62
x,y = x
1H
+y
P0
H0L
=ix
y=
yH0L
-2
- 0.5 x - y + 0.1
f2Hx,yL = x
i 1.2 y
k
0.8
i x2 + y2 - 2
F x, y =
H L k
j
J x, y =
x2 - 0.5 x - y +
0.1 z
2yy
i2x
j
J x, y =
-1
-1 z
2 x - 0.5
i-
2y
-4 y x-2 x+1. y
Iteracin i = 0.
-4 y x-2 x+1. y
0.5 2
-4 y x-2 x+1. y
-4 y x
-2 x+1. y
H0L
1.20000
P0 = i x y
{
k
{ k
H j yH0L z j 0.800000 z
z
F P0 = F 1.2, 0.8 = i 0.0800000 y
=
=i
2.40000
1.60000
0.140000
J P = J 1.2, 0.8
0
H
1.90000
-1.00000
1.6
k
j
zj
y.i
Dx
{k
y = -i
{
k
j
0.08
z
i Dx y
0.183824
DP =
= -i
1.9
-1
Dy
DP =
Dy
0.14
Dy
0.294118
0.349265
i Dx y
= i -0.0558824 y
k
z j
0.0338235
-0.441176
zj
y.i
0.08 y
{k
0.14
z j
0.8
0.0338235
0.833824
63
Iteracin i = 1.
1.14412 y
i
=
P
H1L
1 =ix
y
j
z
j
z
0.833824
yH1L
k
F HP L = F
1
= i 0.00426687 y
0.00312284
J P1 L = J
H
1.14412, 0.833824L
1.14412, 0.833824
2.28824
1.78824
z
{
1.66765
-1.00000
1.66765
i 2.28824
j
1.78824
Dx
DP = i
-1
y .i
Dx
= -i
z j Dy
i
y = - 0.18974
{k
0.00426687
j
0.00312284
0.00312284
Dy
y
z
j Dy z
j 0.339299
-0.434169
i Dx y i -0.00179772 y
=
DP =
z j
z
j
k
{k
-0.0000919057
1.14412 y + i -0.00179772
j 0.833824
j
k
{ k
-0.0000919057
y=i
z j
1.14232
0.833732
{ k
Tabla de datos.
i
0
i Pi
1.2 y
j
0.8
Pi
i 1.2 y
j 0.8 z
k
-1
Dx
i 1.14412 y i -0.00179772
y
z j
z
j
0.833824
-0.0000919057
k
{ k
{
i 1.14232 y
j
0.833732 z
Dy
{k
y.i
Dx
0.14
64
j0.00312284 z
i 1.14412 y
j
z
0.833824
i 1.14232 y
j
z
0.833732
y = -i0.00426687 y
Pi+1 = Pi + DP
i -0.0558824 y
j 0.0338235 z
zj
z j Dy z
{k
{
-1
DP = i
DP = -F Pi
0.08
Dx y
y.i
y
= -i
1.66765
j Dy z
1.6
j 1.9
i 1.14412 y i 2.28824
z
j
0.833824 j 1.78824
k
{ k
J Pi
2.4
f1Hx,yL = x + y - 2
2
-1 -0.5
0.5
-1
f1Hx,yL
= x2 + y
-2
= x - 0.5 x - y + 0.1
f2Hx,yL
H0L
=ix
k
= i
-0.8 y
k
j
{
z
{
z
yH0L
1.2
2
2
F x, y = i x + y - 2
J x, y =
J x, y =
-1
0.1
i-
J P0
H
=J
-4 y x-2 x+1. y
yH0L
F P =F
0
Iteracin i = 0.
H0L
-1
=i
-4 y x-2 x+1. y
-0.800000
y
{
k
j
-4 y x-2 x+1. y
-4 y x-2 x+1. y
1.20000
-0.8, 1.2
2y
-
0.5 2
-0.8, 1.2
2yy
2 x - 0.5
P0 = i x
x2 - 0.5 x - y +
i2x
=i
k
i-1.60000
2.40000 y
j-2.10000
j -0.0600000 z
=
L
z
0.0800000 y
-1.00000
65
2.4
-1
-2.1
y.i
Dx
z j Dy z
= -i
0.08 y
j
-0.06
i
i
y
-0.150602 -0.361446 y.i 0.08
DP = Dx y = z
z
j
z
j Dy
j 0.316265 -0.240964
-0.06
i
i
DP = Dx y = -0.00963855 y
j Dy z j -0.039759 z
k
{ k
{
{k
{k
-0.809639
=i
1.16024
j
k
y
z
{
Iteracin i = 1.
H1L
P1 = i x y = i -0.809639
j
z
yH1L
j 1.16024
k
F P L=F
1
z
{
-0.809639, 1.16024L
i 0.00167368 y
j
0.0000929017
J P L= J
1
H
-0.809639, 1.16024
i -1.61928
2.32048
j -2.11928
-1.00000
2.32048
i -1.61928
j
k
-1
y.i
Dx
y
z
z j Dy
-2.11928
i -0.152975
Dx
y =DP = i
j Dy z
j 0.324196
i Dx y
DP =
= i 0.000289009
z
j Dy
j -0.000519589 z
k
{ k
{k
= -i
0.00167368
j
0.0000929017
-0.354975
k
-0.247709
y
z
{
y. i
zj
0.00167368
0.0000929017
{k
y
{
0.000289009 y
-0.000519589
=i
j
k
y
z
-0.80935
1.15972
y
z
{
66
0
j
1.2
i -1.6
Pi
-0.8 y
2.4
i -0.809639 y i
j 1.16024
zj
k
{k
2.32048
-1.61928
-2.11928
DP = i
y. i
-1
-2.1
{k
Dx
y = -i
j -0.06 z
z j Dy z
{
y.i Dx y
z j Dy z
{k
{
-1
Dx
=-
j
k
i -0.00963855 y
j -0.039759
z
i -0.809639 y
j
z
1.16024
0.0000929017
y
z
{
Pi+1 = Pi + DP
i -0.8 y
j 1.2 z
i -0.809639 y
i
j 1.16024
z j
k
{ k
0.00167368
Dy z
DP = -F Pi 0.08 y
J Pi
0.000289009 y
z
-0.000519589
i -0.80935 y
j
z
1.15972
i -0.80935 y
j
1.15972
=x2 +y -2
- 0.5 x - y + 0.1
f2Hx, yL = x
Y
2
-1 -0.5
0.5
-1
Sepide:
Representargrficamentelospuntosdecortedembascurvas.
a)
b)
Aproximar cada uno de los puntos de corte de abscisa positiva mediante el mtodo
deNewtonRaphsonparasistemas,comenzandoaiterarenlospuntos
P0=Hx0,y0L=H1.5,1.5L,
67
P0=Hx0,y0L=H2.0,-3.0L,
ycalculandolastresprimerasiteracionesencadacaso(puntosP1,P2,yP3).
Solucin
<< Graphics`ImplicitPlot`;
x, y, f1, f2, p, g1, g2, g, p, l ;
Clear@ 2
f1 = 3 x 2 y
1;
f2 = x2 2 x + y2 + 2 y 8;
68
H
hiprbola
HelipseL
Y
6
4
2
-4
-2
X
4
-2
-4
-6
f2Hx,yL = - 8
P0
H0L
=ix
k
i 1.5 y
y =
{
1.5
La funcin vectorial y la matriz jacobiana son:
yH0L
J x, y =
H
L
k
j
k
j
J P0
H
4y
12 x-8 y+20 x y
yH0L
y=
F P =F
0
H
2+2yz
12 x-8 y+20 x y
=J
12 x-8 y+20 x y
y
1.50000
1.50000
1.5, 1.5
H
12 x-8 y+20 x y
- x
2 2
i
H0L
2 +2 y
=ix
-4 y
-2 + 2 x
Iteracin i = 0.
P0
-8 - 2 x + x2 + 2 y + y2 z
i6x
J -1 x, y =
H
-2y
F x, y = i -1 + 3 x
1.5, 1.5
=i
1.25000
k
j
=i
L
-3.50000
y
{
9.00000
-6.00000 y
1.00000
5.00000
69
ji 9.
-6.
k 1.
Dx
y.i
{k
5.
DP
i
= Dx y
k
Dy
Dy
{
-3.5
0.117647
k -0.0196078
=i
0.289216
y.i 1.25 y
{k
i Dx y
Dy
zj
i 1.25 y
i
= - 0.0980392
DP
y =-
0.176471
zj
-3.5
y
{
0.642157
z j
1.5
Iteracin i = 1.
H1L
0.642157
2.14216
i 1.78922 y
P1 = i x
y
k
{ k
{
j
z j
z
H
L j
z
H1L
2.14216
y
F P1 = F
1.78922, 2.14216 = i -0.573794 y
L
=J
J P1
H
0.496011
y.i
DP =
Dy
Dy
=-i
{
Dy
6.28431
-0.573794
-0.0769305
0.496011
0.1058
-0.0194895
-0.573794 y
y.i
{k
0.132553
= i -0.0079546 y
-8.56863 y
1.57843
i Dx y
Dx y
6.28431 {z kj
1.57843
i
0.0775947
DP = Dx y = - i
k
10.7353
J HP1L DP = -F HP1L:
-8.56863
i 10.7353
=i
L
1.78922, 2.14216
zj
0.496011
2.14216
Iteracin i = 2.
=i
-0.0079546 y
-0.0769305
i 1.78126 y
k
2.06523
1.78126 y
P2 = i xH2L y
k
{ k
{
j
z j
z
z
H
L j
2.06523
yH2L
0.00598158
F P2 = F
1.78126, 2.06523 = i -0.0116468 y
L
J P2 = J
H
1.78126, 2.06523
H
=
L
i 10.6876
-8.26091 y
j 1.56252
6.13045
70
J HP2L DP = -F HP2L:
-8.26091
i 10.6876
j
Dx
y.i
=-i
6.13045 z j Dy z
Dx
0.0781672
y= - i
DP = i
z
j
j
1.56252
{k
i
i
DP = Dx y =
z j
j
{
0.00598158
y
z
-0.0199231 0.136273
zj
-0.0116468 y
z
{k
y. i
0.00598158
0.000280345 y
z
Dy
0.105332
Dy
-0.0116468
-0.00104717
Tabla de datos.
i Pi
i
0
1.5
k
j
{z
k
j
5.
DP = -F Pi 1.25 y
i
Dx y
y.i
={k
zj
i 1.78126 y i 10.6876
k
6.13045
2.14216
1.57843
{ k
2.06523
z j
0
i
k
j
1.5
Dy
k
j
0.642157
2.14216
{z
k
j
-0.0769305
{ k
2.06523
z j
-0.00104717
k
j
2.14216
k
j
2.06523
{z
{z
i 1.78154 y
{
2.06418
P3 = i
k
1.78154
j
y
z
2.06418
f1Hx, yL = - 1 + 3 x - 2 y
f
1H1.78154
2.06418L
f2Hx, yL = - 8 - 2 x + x
-6
= - 1.95735 10
2
+2y+y
10
0.496011
= -i
i 1.78126 y
{
i 1.78126 y i 0.000280345 y
k
k
j
Pi+1 = Pi + DP
i 1.78922 y
1.78922 y i -0.0079546 y
k
j
{k
-6
{z
-0.573794 y
y = -i
z j Dy z
Dx
-3.5
i 0.289216 y
{z
k
j
z j Dy z
i Dx y
DP =
y. i
Dx
{k
y. i
1.56252
Pi
i 1.5 y
Dy
-8.56863
1.
6.28431
-8.26091
{z
i 1.78922 y i 10.7353
J Pi
9. -6.
1.5 y
k
j
-0.0116468
0.00598158
{z
71
p = 82.0, 3.0<;
l = newtonRaphsonNoLineal@f1, f2, p, 3, 0.2D;
Print@"\t f1Hx, yL = ", f1,
StringReplace@"\n\t f1Haa, bbL = ",
8"aa" > ToString@l@@1, 1DD, TraditionalFormD,
"bb" > ToString@l@@2, 1DD, TraditionalFormD<D,
f1 . 8x > l@@1, 1DD, y > l@@2, 1DD<,
"\n\t f2Hx, yL = ", f2,
StringReplace@"\n\t f2Haa, bbL = ",
8"aa" > ToString@l@@1, 1DD, TraditionalFormD,
"bb" > ToString@l@@2, 1DD, TraditionalFormD<D,
f2 . 8x > l@@1, 1DD, y > l@@2, 1DD<D;
Mtodo de Newton-Raphson para sistemas de ecuaciones no lineales.
f
= - + x2 - 2 y2
2+ 2 y + y
1 3
x,y L
1H
f2Hx,yL = - 8 - 2 x + x
P0
H0L
=ix
y=
{
z
yH0L
i 2. y
k
j
-3.
2
2
F x, y = i -1 + 3 x - 2 y
-8 - 2 x + x2 +
J x, y =
H
-1
x, y =
H
L j
Iteracin i = 0.
=ix
H0L
J P0 = J
H
12 x -8 y+20 x y
- x
12 x-8 y+20 x y
x
2 2
12 x -8 y+20 x y
12 x-8 y+20 x y
y
2.00000
2., -3.
j yH0L z j -3.00000 z
F P0 = F 2., -3.
-7.00000
y
=i
H
4y
2 +2 y
-2 + 2 x 2 + 2 y z
P0
-4 y
i6x
k
j
=i
L
-5.00000
12.0000
12.0000 y
2.00000
-4.00000
72
12.
y.i
k
j
Dx y
{k
2.
-4.
zj
Dy
=-
i -7. y
{
-5.
i Dx y
0.0555556
=-i
DP =
Dy
0.0277778
-0.166667
i Dx y
= 1.22222
DP =
Dy
0.166667
{k
zj
-5.
z j
y.i -7. y
-0.638889
-3.
Iteracin i = 1.
-0.638889
H1L y
=ix
k
{
j
z
H
yH1L
F P1 = F
P
y=i
3.22222
-3.63889
y
3.22222
L
j -3.63889 z
j 1.90201 z
3.22222, -3.63889 = i 3.66512 y
=J
J P1
H
3.22222, -3.63889
4.44444
-5.27778
y.i Dx y
{k
zj
Dy
i Dx y
0.0316549
DP =
=-i
k
DP =
Dy
0.0266568
i Dx y
= i -0.282066 y
k
{ k 0.122851
{
z j
j
z
Dy
-5.27778
i
= - 3.66512 y
k
1.90201
0.087301
-0.115957
zj
3.66512 y
y.i
{k
1.90201
-3.63889
14.5556
4.44444
k
j
J HP1L DP = -F HP1L:
14.5556
k
j
i 19.3333
0.122851
-3.51604
73
Iteracin i = 2.
i 2.94016 y
=
P
H2L
2 =ix
y
k
{ k
{
j
z j
z
H
-3.51604
yH2L
F P2 = F 2.94016, -3.51604
L
j 0.0946537 z
i
y
= 0.208500
{
=J
J P2
H
2.94016, -3.51604
H
Dx
k
j
DP = i
Dy
Dx
-5.03208
y =-i
zj
0.0351049
Dy
-5.03208
j Dy z
0.02707
0.00600469
y
{
0.0946537
-0.123067
y = i -0.0166063 y
{
J HP2L DP = -F HP2L:
{k
DP = i
14.0642 y i Dx y = - i 0.2085
.
i 17.6409
3.88031
14.0642
3.88031
i 17.6409
zj
{k
0.0946537
y+i
z j
-3.51604
-0.0166063
{ k
0.00600469
i 2.92355 y
=
{
-3.51003
Tabla de datos.
-3.
0
1
2
i 2.
3.22222
k
j
i 2.94016
j
-3.51604
i
i
i
k
j
y
{z
k
j
2.
{k
3.88031
{z
k
y j
1.22222
-0.638889
-5.03208
Dy
{y
{
0.122851
y i -0.0166063 y
{ k
-3.51604
z j
{z
zj
Dy
0.00600469
-3.51604
{z
{z
2.92355 y
i
{
-3.51003
k
j
k
2.94016 y
k
j
3.66512 y
1.90201
= -i
-3.63889
i
{
i 2.94016
j
Dy
Pi+1 = Pi + DP
i 3.22222
y
k
j
i -0.282066 y
{z k
-3.63889
j
zj
i Dx y
k
14.0642 y.i Dx y
{k
DP =
y.i Dx y = -i
-5.27778
y i 17.6409
z j
{k
4.44444
3.22222
Dy
k
j
-3.
zj
14.5556
i 19.3333
{ k
-4.
-3.63889
z
J Pi DP = -F Pi
-5.
j
i 12. 12. y.i Dx y = -i -7. y
j 2.
j Pi
{z
0.2085
y
{
0.0946537
74
i 2.92355 y
k
-3.51003
f1Hx, yL = - 1 + 3 x - 2 y
f2Hx1,x22,x3L=2x
12+x2-x3+4=0,f3Hx1,x2,
2
x3L=x 1+x 2+x 3-4=0,
sepideaplicarelmtododeNewtonparasistemasnolinealesparacalcularlaaproximacindelsistemaen
losdoscasossiguientes:
L
-5
I
1
2
M
H
a)
IniciandoelmtodoenelpuntoinicialP0
eiterandohastaquePi+1-Pi100
b)
Conelpuntoinicial
P0=
xH
-5
quePi+1-Pi10 .
xH0L
, xH0L, xH0L
= -0.5,
M = -1.0, -1.5,0.5
, xH L
I1
Solucin
a)
Clear@ecuaciones, p, m, dD;
ecuaciones = 82 x1 3 x2 + x3 4, 2 x1 + x2 x3 + 4, x21
+ x22 + x23 4<; p = 80.5, 1.5, 1.5<;
5
m = 12; d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
H0L
i x1
P0 = x2
k
H0L
j x3H0L
{
z
2 x1 + x2
- x3 + 4
i -0.5
y
-1.5
k1.5 {
j
i y
=k 0 {
j
75
-1.5, 1.5
0 T
L, xH
0z
eiterando hasta
-3
-4
1
y
-1
2 x2
2 x3
i2
=j 2
2 x1
k
Iteracin i
{
z
z
{
= 0.
i x1
H0L
x2H0L {
P0 =
-0.500000
-1.50000
k
j
j x3H0L
{
z
1.50000
i 1.00000 y
F HP0L
=j 0
0.750000
k
i 2.00000
J HP0L
= k
2.00000
-1.00000
-3.00000
1.00000
1.00000
-3.00000
-1.00000
3.00000
Dx3
-0.1
76
Iteracin i
= 1.
H1L
i x1
P1 = x2H1L z
j x3H1L
=i
-0.650000
-1.30000
j1.40000
k
-16
F HP1L = i 4.44089 10
{
y
j 2.22045 10-16 z
k
0.0725000
i 2.00000
J HP1L
= j 2.00000
-1.30000
k
-3.00000
1.00000
1.00000
-2.60000
-1.00000
2.80000
z
{
J HP1L DP = -F HP1L: y
-3.00000
1.00000
i 2.00000
D
y i x1
1.00000
-1.00000 . Dx z
j 2.00000
-1.30000
-2.60000
2.80000 z j Dx3
k
{ k
{
D y i -0.0154255 y
i x1
2
DP = j
z = j -0.0308511
z
x2
-0.0617021
x3
P2 = P1 + DP
i -0.65 y
P2
Iteracin i
= j -1.3
1.4
k
z + j -0.0308511z
-0.0617021
i -0.665426 y
= j -1.33085
1.3383
{ k
z
{
= 2.
H2L
i x1
P2 =
x2H2L
j x3H2L z
i -0.665426 y
-1.33085
j1.33830
k
F HP2L = i -4.44089 10
-16
j -4.44089 10-16
z
{
y
z
0.00499689
k
J HP2L
i 2.00000
-3.00000
1.00000
= j 2.00000
-1.33085
k
1.00000
-2.66170
-1.00000
2.67660
77
J HP2L DP = -F HP2L:
-3.00000
1.00000
i 2.00000
D
y i x1
1.00000
-1.00000 . j Dx
z
j 2.00000
-1.33085
-2.66170
2.67660 z Dx3
k
{k
{
D y i -0.00123315 y
i x1
2
D =
Dx
j
k
z
{
x3
-0.0024663
z
-0.00493261
P3 = P2 + DP
i -0.665426 y
P3
Iteracin i
= j -1.33085
1.3383
k
z + j -0.0024663
-0.00493261
i -0.666659 y
= j -1.33332
1.33337
{ k
z
{
= 3.
i x1
P3 =
H3L
x2H3L z
j x3H3L
i -0.666659
-1.33332
j 1.33337
k
-16
F HP3L
i 4.44089 10
y
z
{
y
= j 2.22045 10-16 z
k
0.0000319339
i 2.00000
J HP3L
= j 2.00000
-1.33332
k
-3.00000
1.00000
1.00000
-2.66663
-1.00000
2.66673
z
{
J HP3L DP = -F HP3L:
-3.00000
1.00000
i 2.00000
D
y i x1
1.00000
-1.00000 . j D x2 z
j 2.00000
-1.33332
-2.66663
2.66673 z Dx3
k
{k
{
D y i -7.98281 10-6 y
i x1
DP = j
k
D
D
x2
x3
z = j -0.0000159656
z
-0.0000319312
= j -1.33332
1.33337
k
i -7.98281 10
-6
z + j -0.0000159656
-0.0000319312
i -0.666667 y
=j -1.33333
1.33333
{ k
z
{
78
Iteracin i
= 4.
H4L
i x1
P4 = x2H4L z
j x3H4L
=i
-0.666667
-1.33333
j 1.33333
z
k
{
{
-16
=
F HP4L i 2.22045 10 y
j0
-9
1.33823 10
k
z
{
i 2.00000
-3.00000
1.00000
= j 2.00000
-1.33333
k
1.00000
-2.66667
-1.00000
2.66667
J HP4L
J HP4L DP = -F HP4L: y
-3.00000
1.00000
D
y i x1
D
1.00000
-1.00000 .
x z
j
-2.66667
2.66667 z Dx3
i 2.00000
j 2.00000
-1.33333
k
DP =
iD y
D
x1
x2
j Dx3 z
k
i -3.34558 10
-10
= j -6.69115 10-10
-9
-1.33823 10
k
z
{
i -3.34558 10-10 y
= P4 + DP
i -0.666667 y
i -0.666667
=
=
P
-1.33333
+
-1.33333
-6.69115 10 -10
5
j
z j
z j
-9
1.33333
1.33333
-1.33823 10
k
{ k
{ k
5
y
z
{
Tabla de datos.
D y
i x1
DP = j Dx2 z
Pi
i -0.5 y
0
Pi+1 = Pi + DP
x3
-0.1
1.5 { i
-0.65 y
i -0.0154255 y
j -1.3 z k
j -0.0308511 z
1.4 {
i+1
-P
i -0.65 y
-0.15 y
j 0.2 z
j -1.5 z k
1.4
-1.3 {
0.2
-0.665426 y
k
-0.0617021
-1.33085 {
1.3383
0.0617021
79
3
4
i -0.665426 y
i -0.00123315 y
k -1.33085
{
j 1.3383
z
i -0.666659 y
k
j
-0.0024663
-0.00493261
i -7.98281 10
-6
-0.0000159656
j 1.33337
-0.0000319312
k -1.33333
j 1.33333
{ k -6.69115 10
z j -1.33823 10-9
-10
i -3.34558 10
-10
0.00493261
1.33337
i -0.666667 y
-1.33332 {
k -1.33332
i -0.666667 y
i -0.666659 y
-1.33333 {
{ k
j
1.33333
y i -0.666667 y
{ k
z j
0.0000319312
1.33823 10
-1.33333 {
z
1.33333
-1.33333 {
1.33333
Solucin
b)
Clear@ecuaciones, p, m, dD;
ecuaciones = 82 x1 3 x2 + x3 4, 2 x1 + x2 x3 + 4, x21
+ x22 + x23 4<; p = 81.0, 1.5, 0.5<;
m = 12;
5
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
H0L
i x1 y
P0 = x2
k
H0L
j x3H0L
{
z
2 x1 + x2
2
x1 + x2 + x3 - 4
- x3 + 4
i -1.
y
-1.5
k0.5 {
j
i y
=k 0 {
80
-9
-3
-4
1
y
-1
2 x2
2 x3
i2
=j 2
2 x1
z
{
Iteracin i = 0.
H0L
i x1
P0 = x2
k
H0L
i -1.00000
-1.50000
k
z
j x3H0L
j 0.500000
i -1.00000
F HP0L
=j0
-0.500000
k
y
z
{
i 2.00000
-3.00000
1.00000
= k 2.00000
1.00000
-3.00000
-1.00000
1.00000
J HP0L
-2.00000
J HP0L DP = -F HP0L:y
-3.00000
1.00000
i 2.00000
D
y i x1
D
-1.00000
.
x {
k 2.00000 1.00000
{ k
j
j
1.00000 z Dx3 z
-3.00000
-2.00000
i 0.125 y
D y
i x1
2
D =
D
D
x3
x2
= -0.25
j
0.
81
Iteracin i = 1.
i x1
P1 =
H1L
x2H1L
j x3H1L
k
F HP1L
y
z
{
=i
-0.875000
-1.75000
j 0.500000
k
y
i
=j 0
0.0781250
k
z
{
z
{
i 2.00000
J HP1L
= j 2.00000
-1.75000
k
-3.00000
1.00000
1.00000
-3.50000
-1.00000
1.00000
z
{
J HP1L DP = -F HP1L: y
-3.00000
1.00000
i 2.00000
D
y i x1
1.00000
-1.00000 . Dx z
j 2.00000
-1.75000
-3.50000
1.00000 z j Dx3
k
{ k
{
D y i 0.0164474 y
i x1
2
DP =
z = j 0.0328947
z
x2
Dx3
0.0657895
P2
Iteracin i
i 0.0164474 y
= P1 + DP
i -0.875 y
= j -1.75
0.5
k
z + j 0.0328947z
0.0657895
i -0.858553 y
= j -1.71711
0.565789
{ k
= 2.
H2L
i x1
P2 =
x2H2L
j x3H2L
z
{
=i
-0.858553
-1.71711
j0.565789
k
-16
F HP2L = i -1.11022 10
j 1.11022 10-16
z
{
y
z
0.00568083
k
J HP2L
i 2.00000
-3.00000
1.00000
= j 2.00000
-1.71711
k
1.00000
-3.43421
-1.00000
1.13158
z
{
82
J HP2L DP = -F HP2L:
-3.00000
1.00000
i 2.00000
D
y i x1
1.00000
-1.00000 . j Dx z
j 2.00000
-1.71711
-3.43421
1.13158 z Dx3
k
{k
{
D y i 0.00139949 y
i x1
2
D =
P
Dx
j
k
z
{
x3
0.00279898
0.00559797
P3 = P2 + DP
i -0.858553 y
P3
Iteracin i
= j -1.71711
0.565789
k
z + j 0.00279898z
0.00559797
i -0.857153 y
= j -1.71431
0.571387
{ k
z
{
= 3.
i x1
P3 =
H3L
x2H3L z
j x3H3L
k
F HP3L
i -0.857153 y
-1.71431
j 0.571387
k
i -9.99201 10
-16
z
{
y
= j 1.11022 10-16
k
0.0000411302
i 2.00000
J HP3L
= j 2.00000
-1.71431
k
z
{
-3.00000
1.00000
1.00000
-3.42861
-1.00000
1.14277
z
{
J HP3L DP = -F HP3L:
-3.00000
1.00000
i 2.00000
D
y i x1
1.00000
-1.00000 . j D z
j 2.00000
-1.71431
-3.42861
1.14277 z Dx3
k
{k
{
D y i 0.0000102814 y
i x1
x2
DP = j
k
D
D
x2
x3
z = j 0.0000205629
z
0.0000411257
= j -1.71431
0.571387
k
i 0.0000102814 y
i -0.857143 y
z + j 0.0000205629 z = j -1.71429
0.571429
0.0000411257
{ k
{ k
z
{
83
Iteracin i
= 4.
H4L
i x1
P4 = x2H4L z
j x3H4L
k
F HP4L
=i
-0.857143
-1.71429
j0.571429
k
-15
i 1.44329 10
= j -1.11022 10-16
k
2.21986 10
= j 2.00000
-1.71429
k
1.00000
-1.00000
-3.42857 1.14286
j 2.00000
-1.71429
k
D
i x1
D
DP =
x2
Dx3
z
{
-3.00000 1.00000
i 2.00000
J HP4L
-9
J HP4L DP = -F HP4L:
-3.00000
1.00000
D
y i x1
1.00000
-1.00000 . Dx z
-3.42857
1.14286 z j Dx3
-10 y { k
y
{
2
i 5.54966 10-9
z = j 1.10993 10
-9
2.21986 10
{ k
z
{
10
-9
P5 =
j -1.71429
z + 1.10993 10
z =j -1.71429
z
j
-9
0.571429
0.571429
2.21986 10
k
{ k
{ k
{
Tabla de datos.
Pi
0
i
x3
Pi+1 = Pi + DP
j -0.25 z
0.
k
{
k -1.5 {
0.5
i 0.0164474 y
z
k -1.75 {
j 0.0328947 z
k 0.0657895 {
i+1
-P
i -0.875 y
i 0.125 y
-0.875 y
j
x1
DP = j Dx2 z k
i -1.
0.5
0.5
k -1.75
0.25
-0.858553 y
k -1.71711
0.565789
0.0657895
84
i -0.858553 y
i 0.00139949 y
i -0.857153 y
k -1.71711
{
j 0.565789
z
i -0.857153 y
k 0.00279898 {
k -1.71431
{
j 0.571387
z
i -0.857143 y
k -1.71431
j 0.571387
i -0.857143
k
0.00559797
i 0.0000102814 y
0.0000205629 { k -1.71429
{ k
0.0000411257
-1.71429
1.10993 10
{ k
j 0.571429
z j
-9
{ 0.0000411257
0.571429
i -0.857143
y i 5.54966 10-10 y
{
-1.71429
y 2.21986 10-9
{
2.21986
0.00559797
10-9 z 0.571429
-1.71429 {
0.571429
Problema16.AplicandoelmtododeNewtonparasistemasnolinealescalcularlaaproximacin
delsistemadeecuacionesnolinealessiguiente,iniciandoelmtodoenel
T
puntoinicialP0=
= 0.5, 0.1,-0.1 T
eiterandohastaque
xH0L, xH0L, xH0L
-5
Pi+1 - Pi 10 .
I1
x ,x
= 3 x - cos x
f1Hx1,x2,x3L
f
2 1
2H 1 2,x3L
f3Hx1,x2,x3L=e
- 81
x1
-x1
x2
L
x
x H
H 2
-1
23L
+ 0.1
2=0,
+ 1.06 = 0,
+ sen x
+ 20 x3 + H10 p - 3L 3 = 0.
Solucin
Clear@ecuaciones, p, m, dD; ecuaciones
= 83 x1 Cos@x2 x3D 1 2,
x21 81 Hx2 + 0.1L2 + Sin@x3D + 1.06,
<;
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
85
P0 = x2
k
0z
{ = 0.1
H0L
k
z
j x3H0L
-0.1
3 x1 -
2
2
F Hx1, x2, x3L = x1 - 81 Hx2 + 0.1L + sinHx3L + 1.06 {
k
-x1 x2
20 x3 +
x x
1
x2
10
sinHx2 x3L x3
sinHx2 x3L x2 y
cosHx3L z 20
--
x x
1
x1
Iteracin i = 0.
H0L
i x1
0.500000 y
H0L
P0 = x 2
k
= 0.100000
{
j x3H0L z
-0.100000
i
0.0000499996
y
F HP0L
= j -2.02983
8.42320
=k
-0.000999983 y
0.000999983
i 3.00000
J HP0L
1.00000
-0.0951229
-32.4000
-0.475615
0.995004
20.0000
-32.4000
-0.475615
-0.0951229
D y
D
DP =
x1
x2
Dx3
i -0.000132437 y
{ =k
z
0.995004
20.0000
-0.0756424 {
-0.42296
yi
{
z
x1 y
. Dx
zj 2 z
D
{ k x3 {
86
P1 = P0 + DP
i 0.5 y
P1
Iteracin i
= j 0.1
z
+j -0.0756424
-0.42296
-0.1
k
{ k
i 0.499868
z = j 0.0243576 z
-0.52296
{ k
{
= 1.
H1L
i x1
P1 =
i 0.499868
0.0243576
x2H1L
j -0.522960
{ k
i -0.000316183 y
j x3H1L z
k
F HP1L
= j -0.442229
0.000679587
k
{
z
{
-0.000310261 y
0.00666131
i 3.00000
J HP1L
y
z
= j 0.999735
-0.0240629
k
-20.1459
-0.493818
0.866345
20.0000
z
{
y
Se resuelve el sistema lineal J HP1L DP = -F HP1L:
0.00666131
i 3.00000
-0.000310261 y i D 1
x
j
k
0.999735
-20.1459
-0.0240629 -0.493818
D y i 0.000154114
i x1
DP = j
k
D
D
x2
z =j
0.866345
20.0000
y
-0.0219684
-0.000576215
x3
. D z
z j Dx3
{k
{
x2
i 0.000154114
= j 0.0243576 z + j
-0.52296
k
{ k
-0.0219684
-0.000576215
i 0.500022
= j 0.00238921 z
-0.523536
{ k
{
87
Iteracin i
= 2.
i x1
H2L
P2 = x2H2L z
=i
0.500022
0.00238921
z
j -0.523536
k
{ k
F HP2L i 0.0000658141 y
j x3H2L
= j -0.0390915
z
k
0.0000631242
= j 1.00004
k
-6
-2.98851 10 y
0.000654858
i 3.00000
J HP2L
-0.00238636
-16.5871
0.866057
-0.499425
20.0000
z
{
y
Se resuelve el sistema lineal J HP2L DP = -F HP2L:
-6
0.000654858
i 3.00000
-2.98851 10 y i Dx1
. Dx2 z
z j Dx 3
{ k
{
-16.5871
0.866057
j 1.00004
-0.00238636
-0.499425
20.0000
k
D y i -0.0000214227 y
i x1
D
DP =
z = j -0.00236128
z
x2
Dx3
-0.0000621228
Iteracin i
i -0.0000214227 y
= j 0.00238921 z + j
-0.523536
k
{ k
-0.00236128
-0.0000621228
i 0.5
= j 0.000027929
-0.523598
{ k
= 3.
H3L
i x1
P3 =
x2H3L
j x3H3L z
k
F HP3L
i 0.500000
0.0000279290
j-0.523598
k
z
{
-7
i 7.63928 10 y
= j -0.000451626
6.45934 10
k
-7
z
{
J HP3L = i 3.00000
j 1.00000
7.65687 10
-16.2045
-0.0000279286 -0.499993
-6
-10
-4.08422 10
0.866026
y
z
20.0000
88
7.65687 10
-6
-10
-4.08422 10
-16.2045
j 1.00000
-0.0000279286 -0.499993
k
D y i -2.54571 10-7 y
i x1
D
J HP3L DP = -F HP3L:
y i Dx1
. j Dx2 z
z Dx3
{k
{
0.866026
20.0000
= j Dx z = -0.0000279251
2
j -7.30415 10-7 z
D
x3
Iteracin i
i -2.54571 10
-7
i 0.5
-9
=j 0.000027929 z + j -0.0000279251
= j 3.90671 10
-7 z
-0.523598
-0.523599
-7.30415 10
k
{ k
{ k
= 4.
i 0.500000
z
{
H4L
i x1
-9 z
P4 = j x2H4L z =j 3.90671 10
x 4L
-0.523599
k
k
{
y {
H
3
-10
F HP4L
i 1.06894 10
= j -6.31645 10-8
k
9.03668 10
-11
i 3.00000
J HP4L
1.07105 10
= j 1.00000
-9
-3.90671 10
k
Se resuelve el sistema lineal
-18
-7.99135 10
-9
-16.2000
-0.500000
0.866025
20.0000
J HP4L DP = -F HP4L:
1.07105 10
j 1.00000
-9
-3.90671 10
-16.2000
0.866025
-0.500000
20.0000
DP =
i -3.56313 10
iD y
D
x1
x2
j Dx 3 z
k
= j -3.90671 10
z
{
i 3.00000
-11
-18
-7.99135 10
y i Dx 1
. D z
z j Dx3
x
{k
-9
-10
-1.02186 10
-9
z
{
y
-11
j -0.523599
i 0.5
+ -3.56313 10
=
-9
-3.90671 10
8.71767 10
z j
j -0.523599
-10 z
-1.02186 10
3.90671 10
-9
-17
y
z
{
89
Tabla de datos.
i
DP = j
i 0.499868
Dx3
j 0.1
j -0.0756424
-0.42296
-0.000132437 y
j 0.0243576 z
-0.52296
j -0.0219684
-0.000576215
0.000154114 y
z
i 0.500022
i -0.0000214227 y
j 0.00238921
-0.523536
i 0.5
i -2.54571 10
-7
j 0.00238921
-0.523536
z
{
i 0.5
-9
0.000027929 z
j -0.0000279251 z j 3.90671 10
-7
-0.523598
-0.523599
-7.30415 10
-11 {
k
k
{
k
y i
i 0.5
y i 0.5
-3.56313 10-9
-9
3.90671 10
-3.90671 10
8.71767 10
j
z j
j -0.523599
-10 z
-0.523599
-1.02186 10
j
0.0219684
j 0.000027929 z
-0.523598
-0.00236128
z
-P
0.42296
i 0.500022
i 0.5
-0.0000621228
i+1
j 0.0243576 z
-0.52296
Pi+1 = Pi + DP
x2
-0.1
x1
i 0.5
i 0.499868
1
{ k
0.00236128
y
z
0.0000279251
{
-17
3.90671 10
-9
z
{
-17
j 8.71767 10
-0.523599
k
z
{
Problema 17. Mediante el mtodo de Newton para sistemas no lineales calcular las
aproximacionesP1yP2,partiendodelpuntoinicialP0paralossistemasnolinealessiguientes:
2
2
a)
fx,x2
P0=Ix1
b)
0
1
HL
,x2
T
2x1x
HL
f2
x1
0L
,x2
M=H0,0L .
HH
2x
=
L 0,
22x1 1
LH
4p -1
LL H
4p
= H0,0LT .
-e
+ 4 ex2 - 2 ex1 = 0,
21
f2
H
3H
x1,x2,x3
fx,x2
L L0
xH L ,x
P0=
fx,x
1H
2 23L
- 625 x2 + 2 x2 - 1 = 0,
-x1 x2
=e
32
HL
,x
= 4 x1
,x 3
I1
d)
+ 8 = 0,
+ 2 x1 - 5 x2
c)
,x
HL
+ 20 x3 + 10 p - 3
= 0,0,0
= x + x2 - 37 = 0,
3L
f2Hx1,x2,x3L=x1-x2-5=0,
90
T.
3=0,
f3Hx1,x2,x3L=x1+x2+x3-3=0,
H 0L
H 0L
H 0L
P0=Ix 1 ,x 2 ,x 3 M =H0,0,0L
Solucin
a)
Clear@ecuaciones, p, m, dD;
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
H0L
P0 = i x1
j
2H
j
y
Lz
2 x1 x2
=i
0.
5 x2
+
+ z{
2 x1
8
j 0. z
F Hx1, x2L
=j
x2
4 x1 - 20 x1 +
2 -
2 x1 x2
i8x
J x1, x2
H
x
j
- 20
x2
y
8
x x-5
+2
z
5 x2 + 2 x1 + 8
z
{
Iteracin i = 0.
P0 = i
j x
H
L
F P
0
H0L
1
2
0L z
i
= 8.00000 y
8.00000
-20.0000
J P0 = i
H
y=i
2.00000
-5.00000
91
k
j
j 2.00000
k
-5.00000
.j
z
{
Dx2
{ k
Dx
DP = i
J HP0L DP = -F HP0L:
Dx
yi 1 y
Dx2
0.4
y=i
1.76
0.4 y
=i
j 1.76 z
1.76 z
Iteracin i = 1.
x H1L y = i 0.400000 y
P1 = i
jx 1 z
k
F HP L
1
1.41440 y
j
0.619520
J P1
z
{
-16.8000
=
j 3.54880
k
=i
1.76000
0.880000 y
z
-4.29600
DP = i
j
-4.29600
1
Dx2
{ k
z
{
Dx y i 0.0958936 y
1
=
D
x2
0.223423 z
z
{
Tabla de datos.
DP = i
j 0. z
k
i 0.4
j
1.76
x2
k y{
0.4
1.76
i 0.4
y i 0.0958936 y
0.223423
i+1
- Pi
i
k
i+1
0.
P = P + DP P
Dx y
1.76
1.76
z
{
i 0.495894 y
z
1.98342 z
0.223423
92
i 0.495894 y
k
1.98342
Solucin
b)
Clear@ecuaciones, p, m, dD;
ecuaciones = 8 Sin@4 Pi x1 x2D 2 x2 x1,
HH4 Pi 1L H4 PiLL HExp@2 x1D EL + 4 E Hx2L2 2
E x1<; p = 80.0, 0.0<;
m = 2;
6
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
fi x1, x2
2
2
H0L
P0 = i x 1
j
k
=i
0.
-1 + 4 p
{
y
x1 + HLHL
=i
Lz
k0 {
4p
2x
-+
4x -2
j 0. z
F x1, x2
4x -2
-+
2x
= i
2p
2x
- 1+4 p
-2 + 8 x
2
H
Iteracin i = 0.
H0L
P0 = i x 1
j x
k
0
=i y
0L z
{
F P =i0
0
H
-1 + 4 p y
x1 + HLHL
J x1, x2
J P
0
4p
H L
2H
k
j
-1.58155
y
{
=i
j
-1.00000 -2.00000 y
-3.59572
93
y
{
-3.59572
Dx
DP = i
z j Dx2
{ k
y = i -0.439841 y
Dx2
z
{
0.219921
=i
-0.439841
0.219921
j
k
y
z
{
Iteracin i = 1.
x H1L y = i -0.439841 y
P1 = i
F P L
1
=i
j
0.219921
-0.937560
y
z
0.797033
-3.92250 y
-0.0387518
=
j -4.67277
k
J P1
jx 1 z
4.78245 z
{
j -4.67277
{ k
Dx y i -0.0733204 y
DP = i 1 =
j
x2
-0.238297 z
P2 = P1 + DP
+ i -0.0733204 y = i -0.513162
P2 i -0.439841 y
=
j
0.219921
-0.238297
{ k
-0.0183762 z
Tabla de datos.
i
i
j
i
j
0.
Dx y
DP = i
y
0.
-0.439841 y i
0.219921
z j
{ k
Dx2
z
{
i -0.439841 y
-0.439841 y
0.219921
z
{
-0.0733204 y i
-0.238297
Pi+1 = Pi + DP
z j
{ k
0.219921
i+1
-P
0.439841
z
{
-0.513162 y
-0.0183762
0.238297
94
-0.513162 y
i
k
-0.0183762
Solucin
c)
Clear@ecuaciones, p, m, dD;
ecuaciones = 83 x1 Cos@x2 x3D 1 2, 4 Hx1 L2 625 Hx2L2 +
2 x2 1, Exp@x1 x2D + 20 x3 + H10 Pi 3L 3<;
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
H0L
i x1 y
P0 = x2
k
H0L
-x x
20 x3
0.
i
y
1 2
+ 1
-3 + 10 p z
{ = 0.
k
j x3H0L
{
0.
-x1 x2
20 x3 +
, x3L = i 3
J Hx1
, x2
+3
L{
+
p z
10
k 8 x1
j -
1 H
2 - 1250 x2
-x x
1
x2 -
95
-x x
1 2
x1
0
20
{
z
Iteracin i
= 0.
H0L
i x1
=i
P0 = x2H0L z
0
0
y
z
j0
k
{ k {
i
-1.50000
y
F HP0L
j x3H0L
= j -1.00000
10.4720
J HP0L
i 3.00000
2.00000
0
=j 0
0
k
i 3.00000
j 0
2.00000
0
D y
J HP0L DP = -F HP0L:
0
D y
y i x1
0
. jDx2 z
z
20.0000
i 0.5
Dx3
{k
x1
DP =
20.0000
z = j 0.5
x2
Dx3
-0.523599
P1
= P0 + DP
i 0. y i 0.5
= j 0. + j 0.5
z
0.
Iteracin i
-0.523599
{ k
= 1.
P1 =
x2H1L
j x3H1L
k
F HP1L
=j
=i
0.500000
= j 0.5
-0.523599
0.500000
z
j -0.523599
{ k
i 0.0340742 y
-155.250
-0.221199
J HP1L
i 0.5
H1L
i x1
z
{
i 3.00000
0.135517
= j 4.00000
-0.389400
k
-623.000
-0.389400
-0.129410 y
0
20.0000
z
{
96
y
J HP1L DP = -F HP1L:
0.135517
-0.129410 y D
i x1
-623.000
0
. Dx z
-0.389400
20.0000
z j Dx3
i 0.000166687 y
{ k {
i 3.00000
j 4.00000
-0.389400
k
D y
i x1
D = j D x z = j -0.249196
P
0.00621135
k
{ k
2
D
x3
P2 = P1 + DP
i 0.5
P2
= j 0.5
-0.523599
+ j -0.249196
0.00621135
{ k
i 0.500167 y
z =j
0.250804
-0.517387
Tabla de datos.
0.
j 0. z
j 0.5
0.
i 0.5
1
-0.523599
Pi+1 = Pi + DP Pi+1 - Pi
x1
DP = Dx2 z
i 0.5 j Dx3
{
k
Pi
i 0.5
y
z
y i 0.000166687 y
j 0.5
-0.523599
j -0.249196
0.00621135
{ k
-0.523599
k
z j
{
=j 0.250804
z
-0.517387
Solucin
d)
97
0.523599
0.250804
-0.517387
i 0.500167 y
j 0.5
i 0.500167
P2
y
z
0.249196
Clear@ecuaciones, p, m, dD;
ecuaciones = 8x21 + x2 37, x1 x22 5, x1 +
x2 + x3 3<; p = 80.0, 0.0, 0.0<;
m = 2;
6
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
12
H0L
i x1 y
P0 = x2
k
H0L
- 37
{ =k 0 {
z j z
+ x3 - 3
0
x1 + x2
i 0.
0.
j x3H0L
-x2 + x1 - 5
+x
{
0.
, x3L = i x1 + x2 - 37
k -x22 + x1 - 5
, x2
=
J Hx1
Iteracin i
F Hx1
, x2
, x3L
x1 + x2 + x3 - 3
i 2 x1 1
1
j1
k
-2 x
1
0
0
2
= 0.
H0L
i x1
P0 = x2H0L z
i0
0
j0 z
k
{ k {
i
-37.0000
y
F HP0L
j x3H0L
= j -5.00000
z
-3.00000
J HP0L = i 0
k 1.00000
1.00000
1.00000
0
1.00000
1.00000 {
98
J HP0L DP = -F HP0L:
0
D y
y i x1
D
0
. j x2 z
1.00000
i0
1.00000 0
D
1.00000 1.00000 1.00000 z
x3
k
y
i
5.
y
{
k
{
D
i x1
j
D =
Dx
j
k
z
{
x3
37.
-39.
y i 5.
P1 = P0 + DP
0.
i 5.
i y
P1 = j 0. + j 37.
= 37.
z
z j
0.
-39.
k
Iteracin i
= 1.
y
H1L
i x1
P1 =
-39.
x2H1L z
i 5.00000
37.0000
j -39.0000 z
{ k
{
y
i 25.0000
j x3H1L
k
F HP1L
= j -1369.00
0
k
i 10.0000
J HP1L
= j 1.00000
1.00000
1.00000
-74.0000 0
1.00000
1.00000
J HP1L DP = -F HP1L:
0
i 10.0000 1.00000
D y
y i x1
D
0
. x
j 1.00000 -74.0000
z
z j
1.00000 1.00000
1.00000
Dx3
k
{ k
{
D y i -0.649123 y
i x1
2
DP = j Dx2 z = j -18.5088
D
19.1579
x3
= j 37. + j -18.5088
z
19.1579
-39.
k
{ k
Tabla de datos.
i 4.35088 y
z = j 18.4912 z
-19.8421
99
i
i
i
0.
i 5.
k 37. {
j
-39.
Pi+1 = Pi + DP Pi+1 - Pi
x1
x3
x2
y{
i 5.
k 37.
k 37.
y
j 0. z
i 5.
k 0. {
DP =
Pi
D y
-39.
i -0.649123 y
k -18.5088
18.4912 {
19.1579
i 4.35088
{
39.
-39.
-19.8421
19.1579
k 18.4912
-19.8421
Problema18. Dadoelsiguienteproblemanolineal
f1Hx1,x2L=x1H1-x1L+4x2=12,
2
a)
b)
Representargrficamentelascurvasf1yf2.
CalcularlasolucinaproximadadelsistemaempleandoelmtododeNewton
comenzandoenlospuntos
H 0L
H 0L
Solucin
a)
<< Graphics`ImplicitPlot`;
Clear@ecuaciones, p, m, d, f, g, g1, g2, gD;
f =x H1 x L + 4 y 12;
2
g = Hx 2L
+ H2 y 3L
25;
100
f2Hx, yL = Hx - 2L + H2 y - 3L - 25
Y
12
10
8
6
4
2
-2
X
6
Solucin
b)
Clear@ecuaciones, p, m, dD;
ecuaciones = 8x1 H1 x1L + 4 x2 12, Hx1 2L2 + H2 x2
3L2 25<; p = 82.0, 3.0<;
m = 10;
d = 5 10. 2;
newtonSistemasNoLineal@ecuaciones, p, m,
dD; p = 82.0, 2.0<;
m = 10;
2
d = 5 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
x , x L =k
H1
H
P0 =
H0L
i x1 y
j
2H
{ =k 0 {
- x1L x1 + 4 x2 - 12
L
L
+H
- 25
x1 - 2
=i
Lz
2.
2 x2 - 3
y
{
j 3. z
101
0z
kH
j
Iteracin i = 0.
H
+
j 2 x1 -
L2
2 x2 -
- 25
4H
y
- 3
4 2 x2
L{
Lz
i 2.00000 y
H0L
P0 = i x1 y =
0
x
j
H
F P L i -2.00000
0
k
-16.0000
3.00000
y
{
i -3.00000 4.00000 y
J P0 =
H
x1 - 2
i 1 - 2 x1
=
J x1, x2
H1 - x1L x1 + 4 x2 - 12
=i
j0
k
z
{
12.0000
DP =
Dx y
i 1
k
j
12.0000
=i
{
z
Dx2
1.11111
x2
zj
1.33333
y
{
z
z j
3.
Iteracin i = 1.
1.33333
=i
4.33333
3.11111
y
P1 = i x1H1L y
j 2H L z k
{
j
z
H L x1
4.33333
F P
i -1.23457 y
k
8.34568
i -5.22222
4.00000 y
J P1 =
H L
j 2.22222
k
z
{
22.6667
2.22222
DP =
Dx y
i 1
k
j
Dx2
{
z
22.6667
zj
x2
= i -0.482214 y
k
{
j
-0.320916
102
P2 = i
2.62890
H2L
y=i
y
j
z
jx 2Lz
4.01242
F HP L
2
0.644479
J P2
i -0.232531 y
z
{
-4.25779 4.00000 y
20.0993 z
j 1.25779
20.0993 z j Dx2
j 1.25779
Dx
DP = i
{k
= i -0.0800312 y
Dx2
-0.0270564 z
= 3.
P3 = i
x H3L
1
jx 3 z
k
F HP L
3
2H
-0.0270564
2.54887
3.98536
j
k
2.54887
3.98536
0.00933319
i -4.09773
4.00000 y
19.8829 z
j 1.09773
J HP3L DP = -F HP3L:
D
4.00000 y i x y
i -4.09773
j 1.09773
DP = i
=i
= i -0.00640500 y
j
J P
3
=i
+ i -0.0800312 y
Dx
j
Dx2
19.8829
y
1
{k
x2
= i -0.00191791 y
-0.000363521
103
y
z
{
Pi
DP = i
j
2.
4.33333
-0.320916
4.01242
i -0.482214 y
2.6289 y
i 2.6289
-0.0270564
3.98536
-0.000363521
{ k
3.98536
0.482214
z
{
0.0800312
z
{
0.00191791
i 2.54695 y
j 3.985
i 2.54887 y
i 2.54887 y i -0.00191791
4.01242
i+1
-P
1.33333
4.33333
-0.0800312 y
i 3.11111 y
1.33333
z
{
1.11111 y
3.11111 y
Pi+1 = Pi + DP P
Dx2
3.
Dx y
i 2.54695 y
P4 =
3.98500 z
x , x =i H1 - x L x + 4 x - 12
1
1
2
H
P0 = i
k H
H0L
j x
k
y=i
0 Lz
x1 -
-2.
+ 2 x2
H
-3
- 25
y
z
2.
y =i 0 y
J x1 , x 2 L
H
=i
j
x1 - 2
k H
=i
j
H1 - x1L x1 + 4 x2 - 12
1-2x
2 x1 - 2
-3
+ 2 x2
- 25
4 2 x2 - 3
104
L{
Iteracin i = 0.
H0L
P0 = i x1
j x
0 Lz
F P L
0
y = i -2.00000 y
j
z
2.00000
k
i -10.0000 y
-8.00000 z
J P0 L = i 5.00000
j -8.00000
k
k
4.00000 y
z
4.00000
4.00000
j Dx2
{k
DP =
Dx y
i 1
j
Dx2
=i
j
0.153846
y
z
2.30769
P1 = i
x H1L
=i
jx 1 z
2
F HP L
1
-1.84615
y
z
4.30769
z
{
= i -0.0236686 y
j
21.3254
J P1 L = i 4.69231
H
j -7.69231
k
k
4.00000 y
z
22.4615
J HP1L DP = -F HP1L:
D
4.00000 y i x y
i 4.69231
22.4615 z j
j -7.69231
DP = i
Dx y
1
Dx2
{k
=i
0.63036
-0.733544
x2
y{
= P1 + DP
i
+
-1.84615
y
i
P2 =
2
4.30769
0.63036
-0.733544 z
{ k
=i
j
-1.21579
3.57415
y
z
105
Iteracin i = 2.
H2L
P2 = i x1
j x
2L z
F P L
2
y = i -1.21579 y
j
z
3.57415
k
i -0.397354 y
j 2.54970
J P2 L = i 3.43159
j -6.43159
k
k
4.00000 y
z
16.5932
16.5932 z j Dx2
j -6.43159
Dx
DP = i
Dx2
{k
i 0.203129
j -0.0749256
P3 = P2 + DP
i
+
-1.21579
y
i
P3 =
j
3.57415
-0.0749256 z
{ k
=i
-1.01266
3.49922
y
z
Iteracin i = 3.
H3L
P3 = i x1
j x
3 Lz
F P L i
3
=
H
y = i -1.01266 y
j
3.49922 z
k
-0.0412615 y
0.0637169
J P3 L = i 3.02533
j -6.02533
k
k
z
{
4.00000 y
z
15.9938
15.9938
j Dx2
{k
DP = i
j
Dx y
1
D
x2
=i
0.01262
0.000770471
= P3 + DP
i
+
0.01262
-1.01266
y
i
P4 =
4
k
Tabla de datos.
3.49922
0.000770471 z
{ k
=i
j
-1.00004
3.49999
y
z
106
Pi
i -2. y
0
1
i
k
j
i
k
j
j Dx2 z
iD
DP = x1 y
i
k
k
j
2.
Pi+1 = Pi + DPPi+1 - Pi
i -1.84615 y
2.30769
i 0.153846 y
{
z
k
j
{
z
2.30769
-1.84615 y
4.30769
{
z
3.57415
{
z
k
j
3.57415
{
z
i -1.21579 y
k
j
{
z
-0.733544
-0.0749256
i -1.01266 y
k
j
-1.01266 y i 0.01262
3.49922
4.30769
i 0.63036
-1.21579 y i 0.203129
0.000770471
3.49922
0.733544
0.203129
{
z
i -1.00004 y
3.49999
0.01262
{
i -1.00004 y
j
3.49999
Problema 19. Aproximar las soluciones de los siguientes sistemas no lineales, empleando el
mtododeNewtonconlaaproximaciininicialdada,iterandohastaque
-6
Pi+1-Pi10 .
a)
H 0L
f1HHx0L1, xT2L = 3 x 1T - x 2 = 0,
f2Hx1H, 0L
x2LT= 3 x1 x 2T- x 1 - 1 = 0, P0 = Ix 1 ,
H 0L
x 2 M =H1,1L yP0=Ix 1 ,x 2 M =H1,-1L .
2
b)
H 0L
H 0L
x1
P0=Ix 1 ,x 2 M =H2,2L .
3
2
c)
f3Hx1,x2,x3L=x 2-2x1x3=4,
H 0L H 0L H 0L T
T
P0=Ix 1 ,x 2 ,x 3 M =H-1,-2,1L .
f1Hx1,x2,x3L=6x1-2cosHx2x3L-1=0,
2
f2Hx1,x2,x3L=9x2+ x 1+senHx3L+1.06+0.9=0,
-x1 x2
f3Hx1,x2,x3L=60x3+3e +10p -3=0
d)
H 0L
H 0L
H 0L
P0=Ix 1 ,x 2 ,x 3 M =H0,0,0L
Solucin
a)
<< Graphics`ImplicitPlot`;
107
d = 10. 6;
newtonSistemasNoLineal@ecuaciones, p, m,
dD; p = 81.0, 1.0<;
m = 10;
6
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
Y
4
-2 -1
-2
-4
108
f x , x2 L
i 1
H
=i
j
3 x1 - x2
3
y=i
z j
-x
+ 3 x x1 - 1
2
P0 = i
H0L
j x
k
0L
2H
y=i
z
{
1.
j 1. z
y
0
z
{
y
{
-x3
J x1 , x2
i 3 x12 - x22
+ 3 x2 x - 1
2
i 6 x1
=
j
-2 x2
3 x2
6 x1 x2
- 3 x1
Iteracin i = 0.
P0 = i
x H0L y = i 1.00000 y
1
F P0
0L
j x
1.00000
i 2.00000 y
j 1.00000 z
J P L i 6.00000 -2.00000 y
0
=
H
j 0
6.00000
J HP0L DP = -F HP0L:
6.00000
DP = i
Dx
j
-2.00000 y.i
z j
{k
x1
x2
z
{
y = i -0.388889 y
Dx2
-0.166667
=i
j
k
0.611111
0.833333
Iteracin i = 1.
P1 = i
x H1L y = i 0.611111 y
1
jx1 z
k
F HP L
1
=i
J P1
H
0.0449246
i 3.66667
j 0.962963
0.425926
0.833333
-1.66667 y
3.05556
y
z
109
J HP1L DP = -F HP1L:
D
-1.66667 y i x1 y
i 3.66667
3.05556 z j Dx2 z
j 0.962963
k
Dx y
1
DP = i
=i
x2
-0.107452
0.0191611
+i
P2 = i 0.611111 y
j 0.833333 z
-0.107452
0.0191611 z
{ k
=i
0.503659
0.852494 z
Iteracin i = 2.
H2L
P2 = i x1
y = i 0.503659 y
j
z
jx 2Lz
0.852494
2
F HP L
2
i 0.0342707
j -0.0296667 z
k
J P2
i 3.02195
-1.70499 y
j 1.41922
2.57620
3.02195
j
k
1.41922
DP = i
j
J HP2L DP = -F HP2L:
D
-1.70499 y i x1 y
2.57620 z j Dx
{ k
z
{
Dx y i -0.00369496 y
1
=
D
x2
0.0135512
P3 = i x1
y = i 0.499964 y
j
z
jx3Lz
0.866046
k
F HP L
3
= i -0.000142677
-1.25763 10-6
J P3
H
=i
y
{
2.99978
j 1.50021
-1.73209 y
2.59795
=i
j
k
0.499964
0.866046
y
z
{
110
2.99978
j
k
1.50021
DP = i
J HP3L DP = -F HP3L:
D
-1.73209 y i x1 y
2.59795 z j Dx
{ k
Dx y
1
D
x2
z
{
=i
0.0000358789 y
-0.0000202346
P4 = i x1
y = i 0.500000 y
j
z
jx4 Lz
0.866025
{y
k i { k
F HP4 L = 3.45246 10-9
j -5.08917 10-9 z
2
J P4
i 3.00000 -1.73205 y
j
1.50000
2.59808
3.00000
1.50000
J HP4L DP = -F HP4L:
D
-1.73205 y i x1 y
2.59808 z j Dx
{ k
DP = i Dx y = i -1.49197 10-11 y
1
j
j D x2 z
k
1.96744 10
-9
-11
-1.49197 10
1.96744 10
{ k
-9
i
0.5
0.866025
z
{
Tabla de datos.
jD
i
j P
1.
0
1
DP =
i 1. y
i
0.833333
x1
y
{
-0.388889 y
-0.166667
{z
i -0.107452 y
0.611111 y
k
j
iD
z
x2
0.0191611
Pi+1 = Pi + DP
i
k
j
0.611111 y
0.833333
0.388889
{z
i 0.503659 y
k
0.852494
Pi+1 - Pi
0.107452
111
2 i 0.503659 y
k
j
0.852494
i -0.00369496 y
{z
k
j
z
j
0.866046
4 i 0.5
y
i -1.49197 10
-0.0000202346
0.866046
i 0.5
{z
k
j
0.0135512
{z
y 0.0000358789
0.866025
y i 0.5
-11
k
j
i 0.0000358789
{
z
0.0135512
3 i 0.499964 y
k
i 0.499964 y
{z
y 1.96744 10-9
{
z j
0.866025
0.500000 y
=i
0.866025 z
f x , x2 L i 3 x12 - x22
i 1
=
H
-x
+ 3 x x1 - 1
2
P0 = i
x H0L
j x
k
0L
2
z
{
1.
y=i
0
=i y
-1.
z
{
y
z
-x3
J x1 , x2
i 3 x12 - x22
=i
2 1
6 x1
3 x2
-2 x2
+ 3 x2 x - 1
2
- 3 x1
6 x1 x 2
k
Iteracin i = 0.
P0 = i
F P0
x H0L
y = i 1.00000
j x
0L
2
=i
-1.00000
z
{
2.00000 y
j 1.00000 z
y
J P0 L = i 6.00000 2.00000
z
H
j0
-6.00000
k
{
Se resuelve el sistema lineal
J HP0L DP = -F HP0L:
2.00000 y i Dx y
. D 1
zj
i 6.00000
j 0
-6.00000
DP = i
Dx
j
Dx2
{k
x2
y = i -0.388889 y
j
0.166667
{
z
112
=i
z
{
= 1.
P1 = i
-0.833333
k i { k
F HP L = 0.425926
1
2
j 0.0449246 z
k
y
{
1.66667
-3.05556
i 3.66667
1.66667
j 0.962963
-3.05556
J HP1L DP = -F HP1L:
D
y i x1 y
j Dx2 z
Dx y i
1
=
D
y
z
{
DP = i
i
J P1 = 3.66667
H
j 0.962963
-0.833333
x H1L y = i 0.611111
jx 1L z
j
k
0.611111 y
x2
-0.107452 y
-0.0191611 z
j -0.833333 z
+ i -0.107452 y = i
-0.0191611 z
0.503659
Iteracin i = 2.
H2L
P2 = i x1
jx 2Lz
k
2H
y = i 0.503659 y
j
z
-0.852494
F HP L i 0.0342707
2
=
j -0.0296667 z
i
J P2 L = 3.02195
k
j 1.41922
k
3.02195 1.70499
-2.57620 z
1.41922
y
{
1.70499
-2.57620
{
J HP2L DP = -F HP2L:
D
yi x y
j Dx2
{ k
Dx y i -0.00369496 y
DP = i 1 =
j
x2
y
z
-0.0135512 z
-0.852494 z
113
P3 = i
-0.866046
H3L
j x
y=
3 Lz
2
i 0.499964
j -0.866046 z
F P L
3
= i -0.000142677
-1.25763 10-6
z
{
2.99978
=i
j 1.50021
J P3 L
1.73209 y
z
-2.59795
0.499964 y
1.50021
DP = i
-2.59795
Dx y
1
D
x2
J HP3L DP = -F HP3L:
y.i
D y
x1
j Dx
{ k
z
{
= i 0.0000358789 y
0.0000202346
P4 = i x1
j x
H4L
4L z
y = i 0.500000
j
-0.866025
F P L = i 3.45246 10-9
y
4
H
j -5.08917 10-9 z
J HP4 L = i 3.00000
1.73205 y
z
j 1.50000
-2.59808
k
{
2H
i
j
1.50000
-2.59808
J HP4L DP = -F HP4L:
D
y i x1 y
j Dx
{ k
DP = i Dx y = i -1.49197 10-11 y
1
j D x2 z
k
j
k
-1.96744 10-9
z
{
114
Tabla de datos.
i
Pi
DP = i
Dx y
j
i 1.
i 0.611111
j
k
j
k
-0.833333
-0.852494
-0.866046
Dx2
z
{
-0.388889 y
0.166667
i -0.00369496 y
i 0.5
i 0.0000358789 y
0.0000202346
y i -1.49197 10-11 y
j -0.866025 z
k
j
k
-1.96744 10
-9
-0.866025
z j
{ k
0.388889
0.107452
0.0135512
z
{
0.0000358789
z
{
y
-0.866025
i 0.5
-P
-0.866046
i+1
-0.852494
i 0.499964
-0.0135512
-0.833333
i 0.503659
-0.0191611
i 0.611111
i -0.107452
i 0.5
i
k
i 0.499964
j
i 0.503659
k
-1.
Pi+1 = Pi + DP
1.96744 10
-9
0.500000 y
-0.866025
Solucin
b)
Clear@ecuaciones, p, d, m, dD;
ecuaciones = 8 Log@x2 + x2D Sin@x1 x2D HLog @2D + Log @PiDL,
1
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
115
x -x
logHx1 + x2 L
fi x1, x2 = k
- sinHx1 x2L - logHpL - logH2L { = k 0 {
L
H
j
cos x1 x2
H0L
P0 = i x 1 y
=i
2.
2
z
L z
+1
j 2. z
x0
= i logHx1
k
j
2L
L
2
x1 +x2
=i
H1
2.00000
2.00000
x0
i 0.998367 y
F P
0
2
L
x2
L H 1 2L
x1 +x2
H
-sin x1 x2
i 1.80729
k 2.51360
j
0.513605
2.51360
DP = i
Dx
0.513605
Dx2
.{ k
Dx2
2.
Iteracin i = 1.
Lz
H
H1L
P1 = i x1 y
k
L x1
=i
k
1.96868
i 1.96868 y
k
y
z
{
1.47891
0.658308
J P1
=i
H L k
-0.521094
F P1 = i -0.263765 y
j
y = i -0.0313174 y
{ k
{
z j -0.521094
z
k
j
zj
J HP0L DP = -F HP0L:
Dx
yi 1 y
1.80729
i 1.80729
1.80729
2.08935
2.40465
y
{
1.29466
-2.08095
116
22 -
0.346356 z
2L
cos x x
2 x2
J P0 =
H0L
P0 = i x 1
H
-x2
j x1 -x2 - sin x1 x2
Iteracin i = 0.
j
L + x 1
2 x1
22 - cos x
Jx,x =
1
cos x1 x2
i
H
1.47891
x1
y
1
{
x -x2 z
-1
J HP1L DP = -F HP1L:
D
y i x1 y
2.08935 2.40465
i
j
k
1.29466
DP = i
-2.08095
Dx y
1
D
x2
=i
j Dx
{ k
z
{
-0.138603 y
0.230118 z
+i
-0.138603
j 0.230118
k
=i
z
{
1.83008
j
1.70902
y
z
{
Iteracin i = 2.
P2 = i
x H2L y = i 1.83008 y
1
jx 2L z
2
F HP L
2
1.70902
i -0.0160496 y
j 0.128786
J P2 L = i 2.29262
H
j 1.10486
k
k
2.37505
-1.15420
i 2.29262
2.37505
j
k
-1.15420
1.10486
Dx
j
J HP2L DP = -F HP2L:
D
y i x1 y
j
{k
y
1
Dx2
x2
= i -0.0545226 y
j
y
z
{
DP = i
0.0593879
z
{
+ i -0.0545226 y
=i
j 0.0593879
k
j
k
z
{
Iteracin i = 3.
P3 = i
x H3L y = i 1.77556 y
1
jx3L z
k
F HP
1.76841
i -0.00220154 y
j 0.00717276
J P3 L = i 2.33388
H
j 1.00421
k
k
z
{
2.33875
-1.01015
y
z
{
1.77556
1.76841
y
z
{
117
J HP3L DP = -F HP3L:
2.33875 y i Dx y
1
i 2.33388
j
k
1.00421
Dx
DP = i
-1.01015
{k
y
1
Dx2
.z j D
z
{
x2
= i -0.003092
j
0.00402689
=i
j
k
1.77247
1.77244
y
z
{
Iteracin i = 4.
P4 = i
1.77247
H4L
y=i
y
j
z
jx4Lz
1.77244
1
2.33663 2.33665
j
k
1.00002
DP = i
j
-1.00004
J HP4L DP = -F HP4L:
D
yi x y
j Dx
{ k
z
{
Dx y i -0.0000116223 y
1
=
D
x2
0.0000152522 z
P5 = i
1.77245
H5L
y=i
y
j
z
jx 5Lz
1.77245
1
F HP L = i -1.20840 10-10 y
5
j 3.81824 10-10
z
2.33664 y
J P5 L = i 2.33664
z
H
j 1.00000
-1.00000
k
{
k
2H
=i
j
k
1.77245
1.77245
y
z
{
118
J HP5L DP = -F HP5L:
D
y i x1 y
2.33664 2.33664
i
j
1.00000
-1.00000
{ k
DP = i Dx y
1
-10
= i -1.65054 10 y
j D x2 z
k
j Dx
2.16769 10
-10
z
{
P6 = P5 + DP
i
1.77245 +
P6 = i
y
j 1.77245 z j
k
-1.65054 10
2.16769 10
-10
{ k
=i
1.77245
1.77245
z
{
Tabla de datos.
i
DP = i
i
j
k
1.70902
1.76841
z
{
1.77244
i 1.77245 y
j
k
1.77245
j
k
i
z
j
{ k
-0.0545226 y
1.70902
i 1.77247 y
0.00402689
-0.0000116223 y
0.0000152522
-1.65054 10
-10
1.77245 z
i 1.77245 y
z
{
j
k
Solucin
c)
Clear@ecuaciones, p, m, dD; ecuaciones
= 8 x31 + x21 x2 x1 x3 + 6,
1.77245
1.77245
0.00402689
z
{
i 1.77245 y
i 1.77245 y
j
1.77244
z
{
-10
1.76841
0.0593879
z
{
0.230118
i -0.003092
2.16769 10
-P
i 1.77556 y
1.47891
j 0.0593879
i+1
0.521094
i 1.83008 y
z
0.230118
i 1.96868 y
i -0.138603 y
i 1.77247 y i
j
1.47891
z
{
Dx2
-0.0313174 y
j -0.521094
i 1.77556 y
k
i 1.83008 y
j
2.
Pi+1 = Pi + DP
i 1.96868 y
j
2.
Dx y
0.0000152522
z
{
2.16769 10
z
-10
119
m = 10;
6
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
j x3H0L
j 1.
i x1 + x2 x1 - x3 x1 + 6 y
F Hx1, x2, x3L = -x3 +
k
j
x1
+ 2
-4
x22 - 2 x1 x3
i 3 x1 + 2 x2 x1 - x3
J Hx1, x2, x3L = x1
-x1
-1
x1
-2 x3
2 x2 -2 x1
Iteracin i = 0.
i x1
H0L
H0L
P 0 = j x2
-2.00000 z k
1.00000 {
i 4.00000
y
H0L
F HP0L
i -1.00000 y j
z=
k x3
= j -0.496785
2.00000
k
J HP0L
z
{
i 6.00000
1.00000
= k
0.367879 0.135335
-4.00000
j
-2.00000
1.00000
-1.00000
2.00000
J HP0L DP = -F HP0L: y
1.00000
1.00000
i 6.00000
D
y i x1
D
-1.00000
.
x {
k 0.367879 0.135335
{ k
j
2.00000 z j Dx3 z
-4.00000
-2.00000
D y i -0.636738 y
i x1
D = D
= 0.485723
P k x2 { k
{
2
Dx3
-0.665293
120
Iteracin i
i -1.63674 y
= j -2. z + j 0.485723
=
z j
1.
-0.665293
k
{ k
{ k
-1.51428
0.334707
= 1.
i x1
P1 =
H1L
x2H1L z
i -1.63674
y
-1.51428
j 0.334707 z
{ k
{
y
i -1.89347
j x3H1L
k
F HP1L
=j
0.0798737
-0.611308
2.67891
i 12.6590
J HP1L
= j
0.194614 0.219967
-0.669414 -3.02855
1.63674
-1.00000
3.27348
D
j
Dx3
x2
J HP1L DP = -F HP1L: y
2.67891
1.63674
D
y i x1
0.219967
-1.00000 .j D z
-3.02855
3.27348 z Dx3
i 0.171881 y
{k
{
x2
z = j -0.153955
z
0.0794592
= j -1.51428
z
i 0.171881 y
+ j -0.153955
0.334707
0.0794592
{ k
i -1.46486 y
= j -1.66823
0.414166
121
Iteracin i = 2.
i x1
P2 =
H2L
x2H2L
y
z
=i
-1.46486
-1.66823
j 0.414166
{ k
i -0.116306
j x3H2L
k
F HP2L
y {
= j 0.00552485
-0.00361305
k
i 10.9107
2.14581
1.46486
= j 0.231111
-0.828333
k
0.188580
-3.33646
-1.00000
2.92971
J HP2L
J HP2L DP = -F HP2L: y
2.14581
1.46486
i 10.9107
D
y i x1
0.188580
-1.00000 . j Dx z
j 0.231111
-0.828333 -3.33646
2.92971 z Dx3
k
{k
{
D y i 0.00874949 y
i x1
2
DP =
x2
Dx3
z = j 0.00404093
z
0.00830899
= P2 + DP
i -1.46486 y
P3
= j -1.66823
z
i 0.00874949 y
+ j 0.00404093
z
0.414166
i -1.45611 y
= j -1.66419
0.00830899
0.422475
Iteracin i = 3.
i x1
P3 =
H3L
x2H3L
y
z
=i
-1.45611
-1.66419
k
F HP3L
j 0.422475
{ k
i -0.000639433 y
j x3H3L
= j 0.0000104138
-0.000129070
k
J HP3L
z
{
i 10.7848
2.12025
1.45611
= j 0.233142
-0.844951
k
0.189344
-3.32838
-1.00000
2.91221
z
{
122
{ k
D y i 0.0000646082
i x1
D = j Dx z = j -0.0000394195
P
0.0000180128
k
{ k
2
y
z
x3
P4 = P3 + DP
i -1.45611 y
P4
= j -1.66419
z
+ j -0.0000394195
0.0000180128
{ k
0.422475
k
Iteracin i
i -1.45604 y
z = j -1.66423
0.422493
= 4.
i x1
P4 =
H4L
x2H4L z
j x3H4L
k
F HP4L
i -1.45604
-1.66423
j 0.422493 z
k
i -1.89278 10
=j
{
y
-8
-10
6.33712 10
-7.73657 10
k
-10
z
{
i 10.7841
2.12006
1.45604
= j 0.233157
-0.844987
k
0.189336
-3.32846
-1.00000
2.91209
J HP4L
D
x2
D
x3
J HP4L DP = -F HP4L: y
2.12006
1.45604
D
y i x1
0.189336
-1.00000 . Dx2 z
-3.32846
2.91209 z j Dx3
-9
i 1.55555
{k
{
10-10 y
j 2.92941 10
z
-9
1.05186 10
-9
i 1.55555 10
2.92941 10
j 0.422493 z
k
{
j
k
1.05186 10
-9
y
=
-10
z
{
i-1.45604
-1.66423
j0.422493 z
k
{
123
Tabla de datos.
0
i
1
DP = j
z
{
i -1.63674 y
j -2. z
1.
j 0.485723 z
-0.636738 y
0.00404093
z
j -1.66419 z
0.422493
z j
{
2.92941 10
-9
1.05186 10
0.00874949
0.422475
j -1.66419 z j -0.0000394195 z
0.0000180128
0.422475
-9 {
k
{ k
i -1.45604 y
i 1.55555 10-10 y
j
i -1.45611 y
-1.45611 y i 0.0000646082
-1.66423
0.171881
0.414166
0.00830899
i 0.00874949 y
j
0.665293
j -1.66823 z
j -1.66823 z
-P
i -1.46486 y
0.0794592
-1.46486 y
-0.153955
z
i+1
0.334707
i 0.171881
j -1.51428 z
j -1.51428 z
-0.665293
0.414166
Dx3
Pi+1 = Pi + DP
0.334707
x2
x1
i -1. y
-1.63674 y
D y
i -1.45604 y
j -1.66423 z
0.0000646082
0.422493
k
{
i -1.45604 y
-1.66423
0.422493
1.55555 10
z
{
Solucin
d)
Clear@f, g, g1, g2, ecuaciones, p, m, dD;
"#######################################
60 x3 + 3 Exp@x1 x2D + 10
Pi 3=; p = 80., 0., 0.<;
m = 10;
6
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
124
-9
H
f
, x2 , x3
i x1
H0L
i x1
H0L
x2
P0 =
{
j 0. z
-1
i -2 cosHx2 x3L + 6 x1
L
H
, x2
"##########################################
=
, x3
9x
x2 + sin x
-x1 x2
j 60 x3 + 3
i6
+ 10 p - 3
+sin x
-x x
-3
H0L
P0
i0
x2H0L
cos x
"#########################################
H3L
+1.06
-x x
x2
-3
z = 0
j 0z
k {
j x3H0L
F P
H 0L
= 1.92956
j
zk
i -3.00000 y
31.4159 {
i 6.00000 0
k0
k 0
9.00000
0
i
D =
P
D y
x1
k
j
x3
0.485643 {
yi
0.485643
60.0000
-0.186142
{
-0.523599
D y
x1
{
z
J HP0L DP = -F HP0L:
i 0.5
=
x2
60.0000
j0
9.00000
0
J HP0L = j 0
= 0.
i x1
+ 0.9
+ 1.06
"#########################################
1
J x1 , x2 , x3
Iteracin i
j x3H0L z
F x1
H
L
= k 9 x2 +
+ 1.06 + 0.9 { = k 0 {
x + sin x
j 60 x3 + 3 -x1 x2 + 10 p - 3
z j0z
i 0.
0.
{
"##########################################
2
1
x2
k
j
Dx3
{
z
x1
60
2
x +sin x 3
+1.06
125
0.
-0.523599
{ k
-0.523599
Iteracin i = 1.
i x1
P1 =
H1L
x2H1L z
i 0.500000
-0.186142
j -0.523599 z
{ k
i 0.00949169 y
j x3H1L
k
F HP1L
= j 0.124719
0.292620
k
z
{
-0.0362269 y
-0.101902
i 6.00000
J HP1L
= j 0.555556 9.00000
0.612896 -1.64631
0.481125
60.0000
y
J HP1L DP = -F HP1L:
-0.101902
i 6.00000
-0.0362269 y D
i x1
0.481125
.D z
j 0.555556 9.00000
0.612896 -1.64631
60.0000
z j Dx3
k
{k
{
D y i -0.00184219 y
i x1
x2
DP =
x2
Dx3
z=j
-0.0134645
z
-0.00522762
= j -0.186142
z
y i -0.00184219 y
+ j -0.0134645
-0.523599
-0.00522762
{ k
i 0.498158 y
= j -0.199607
z
-0.528826
126
Iteracin i
= 2.
H2L
i x1
P2 = x2H2L z
=i
j -0.528826
k
F HP2L =
-0.199607
j x3H2L
0.498158
i 0.0000788744
-1.26903 10
-6
j -0.0000148414 z
k
i 6.00000
-0.111436
= j 0.555694
0.661426
k
9.00000
-1.65072
J HP2L
-0.0420617 y
0.481561
60.0000
{
y
-0.111436
i 6.00000
0.0420617y
0.481561
0.555694 9.00000
i x1
. D z
x2
0.661426 -1.65072
60.0000
iD y
DP =
x1
x2
jD
x3
Dx3
i -0.0000131256 y
= j 9.2908 10-7
4.1761 10-7
z
P3 = P2 + DP
i 0.498158
=
y
P
-0.199607 +
3
j -0.528826 z
k
Iteracin i
9.2908 10
4.1761 10
{ k
-7
i 0.498145
-7
-0.199606
-0.528826
H3L
P3 =
x2H3L
j x3H3L z
k
{
F HP3L
i 0.498145
j -0.528826
k
-13
i 4.09894 10
= j 6.80560 10-11
5.61542 10
k
J HP3L
y
z
-0.199606
z
{
i 6.00000
=j
-11
-0.111435
0.555684 9.00000
0.661421 -1.65067
-0.0420613 y
0.481565
60.0000
z
{
= 3.
i x1
z
{
127
y
J HP3L DP = -F HP3L:
-0.111435
-0.0420613 y
D
i x1
9.00000
0.481565
. Dx z
j
-1.65067
60.0000
z Dx3
i 6.00000
j 0.555684
0.661421
k
DP =
{k
-13
i -2.15366 10 y
i D y
x1
D
x2
j Dx3 z
k
= j -7.48751 10-12
-1.13952 10
-12
Tabla de datos.
0.
j 0. z
0.
i 0.5
1
j -0.186142
k
i -0.00184219 y
-0.199607
-0.528826
k
i 0.498145
j
{ k
yi
-0.199606
-0.528826
z j
zj
0.523599
i0.498158
j -0.199607z
0.0134645
-0.528826
i0.498145
y
0.0000131256
-7
-7
4.1761 10
-0.199606
-0.528826
k
{
0.498145 y
i
-2.15366 10-12 y
-7.48751 10
-0.199606
z
-12 z j
-13
-1.13952 10
{k
i 0.498145 y
P4 =j -0.199606
-0.528826
{ k
-0.523599
-0.0134645
z
-0.528826
j -0.186142z
-0.00522762
9.2908 10
-P
0.5
y i -0.0000131256
i 0.498158
j
i+1
Pi+1 = Pi + DP
-0.523599
-0.523599
x1
DP = Dx2 z
i 0.5 j Dx3
k
{y
j -0.186142
z
Pi
D y
-12
7.48751 10
128
Problema20. Elsistemadeecuacionesnolineal:
f1Hx1,x2,x3,x4L=4x1-x2+x3=x1x4,
f2Hx1,x2,x3,x4L= -x1+3x2-2x3=x2x4,
f3Hx1,x2,x3,x4L=x1-2x2+3x3=x3x4,
2
2
2
f4Hx1,x2,x3,x4L=x 1+x 2+x 3=1
tienevaiassoluciones.AplqueseelmtododeNewtonparaaproximarlastomandocomopuntosinicialelpuntoP
0,yaplicandoelmtodohasta
-5
quePi+1-Pi10 .
H 0L
a)
b)
c)
H 0L
H 0L
H 0L
P0=Ix 1 ,x 2 ,x 3 ,x 4 M =H0,1,1,1L ,
H 0L H 0L H 0L H 0L T
T
P0=Ix 1 ,x 2 ,x 3 ,x 4 M =H1,-1,1,1L .
H 0L H 0L H 0L H 0L T
T
P0=Ix 1 ,x 2 ,x 3 ,x 4 M =H1,0,0,1L .
Solucin
a)
Clear@ecuaciones, p, m, dD;
ecuaciones = 8 4 x1 x2 + x3 x1 x4, x1 + 3 x2 2 x3 x2 x4,
x1 2 x2 + 3 x3 x3 x4, x21 + x22 + x23 1 <;
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
4L
k
j
H0L
x1
-x1 + 3 x2 - 2 x3 - x2 x4
x1 - 2 x2 + 3 x3 - x3 x4
2
2
+ x2 + x3 - 1
x12
i 0.
= 1. y
x2H0L
P =
0
x3H0L
j x4H0L
k 1. {
1.
129
y
0
{ =k0 {
z
H L -x1 + 3 x2 - 2 x3 - x2 x4
- 2 x2 + 3 x3 - x3 x4
2
j x1
-1
-x
-1
k1
3 - x4
-2
-2
-x2
j 2 x1
2 x2
2 x3
Iteracin i
k x1 + x2 + x3 - 1
1y
-x3 z
3 - x4
= 0.
H0L
i x1
=
0
i0
x2H0L
x3H0L
j x4H0L
1.00000
z
{
1.00000
1.00000
F HP0L = i 0
0
j0
k
1.00000
J HP0L = i 3.00000
-1.00000
j 1.00000
0
-1.00000
1.00000
2.00000
-2.00000
-2.00000
2.00000
-1.00000
-1.00000
2.00000
2.00000
-1.00000 1.00000
i 3.00000
-1.00000
1.00000
j0
k
D y
i x1
D
DP =
2.00000
-2.00000
-2.00000 2.00000
2.00000
2.00000
i 0.
y
=
x2
j Dx z
3
D
x4
J HP0L DP = -F HP0L:
-0.25
j -0.25 z
0.
k
{
yi
x1
-1.00000
0
D y
-1.00000
zj
{k
x2
D
x3
D
x4
z
{
130
k
Iteracin i
-0.25
0.75
0.
1.
= 1.
i x1
H1L
x2H1L
x3H1L
i0
0.750000
{
F HP1L = i 0
j x4H1L
0.750000
1.00000
{
y
0
j0
k
0.125000
z
{
J HP1L = i 3.00000
-1.00000
j 1.00000
0
-1.00000
1.00000
2.00000
-2.00000
-2.00000
2.00000
-0.750000
-0.750000
1.50000
1.50000
i 3.00000
-1.00000
2.00000
1.00000
-2.00000
j0
1.50000
k
D y i 0.
i x1
D
DP =
x2
j D z
x3
x4
J HP1L DP = -F HP1L:
yi
1.00000
-2.00000
2.00000
1.50000
-0.750000
P2 = j 0.75 z +j -0.0416667
0.75
-0.0416667
1.
0.
k
{ k
i 0.
z
{k
z = j 0.708333 z
0.708333
1.
{ k
{
x1
-0.750000
-0.0416667
j -0.0416667
0.
D y
x2
D
j
x3
D x4
z
{
131
Iteracin i
= 2.
i x1
H2L
= 0.708333 y
= x2H2L
x3H2L
j x4H2L
i0
0.708333
1.00000
z
{
F HP2L = 0
i
-16
-1.11022 10
j -1.11022 10-16
z
0.00347222
k
{
-1.00000
i
3.00000
J HP2L =
-1.00000
j 1.00000
0
1.00000
2.00000
-2.00000
-2.00000
2.00000
-0.708333
-0.708333
1.41667
1.41667
J HP2L DP = -F HP2L:
-1.00000
i 3.00000
-1.00000
2.00000
1.00000
-2.00000
j0
1.41667
k
D y i 0.
i x1
D
DP =
j
D
D
x2
x3
1.00000
-2.00000
2.00000
1.41667
-0.708333
-1.56737 10
-16
D y
x1
-0.708333
z
{k
-0.00122549
j -0.00122549
x4
yi
x2
D
j
x3
D x4
z
{
y
0.
i 0.
+ -0.00122549
P3 =
0.708333
j 0.708333 z j -0.00122549
1.
-1.56737 10
=
-16
z
{
j 0.707108
z
0.707108
1.
132
Iteracin i
= 3.
H3L
i x1
P
= x2H3L
3
i0
x3H3L
j x4H3L z
0.707108
0.707108
1.0000
F HP3L = 0
i
-16
2.22045 10
j 2.22045 10-16
y
z
-6
3.00365 10
k
J HP3L = i 3.00000
-1.00000
j 1.00000
0
{
-1.00000
1.00000
2.00000
-2.00000
-2.00000
2.00000
-0.707108
-0.707108
1.41422
1.41422
J HP3L DP = -F HP3L:
-1.00000
i 3.00000
-1.00000
2.00000
1.00000
-2.00000
j0
1.41422
k
y
i 0.
D
i x1
1.00000
yi
D y
x1
D
-2.00000 -0.707108
x
.
2.00000
-0.707108 D
1.41422 0
z jD z
y
{k
{
2
x4
-6
DP =
-1.06195 10
x2
=
j Dx3 z j -1.06195 10-6
3.14018 10
x4
-16
0.707108
k 0.707108 {
z
j
1.
Tabla de datos.
0.
+ -1.06195 10-6
-6
k -1.06195 10
i 0.
-16
3.14018 10
=
0.707107
{
z
k 0.707107 {
1.
133
i
i
DP =
Pi
1.
j 1.
1.
x2
j Dx3 z
i 0.
x4
y{
i 0.
-0.25
j -0.25 z
0.
0.75
j 0.75 z
1.
y
z
0.25
{ y
i k
0.
0.708333
j 0.708333 z
1.
y i 0.
y
k
0.707108
j 0.707108 z
-1.06195 10
j -1.06195 10-6
{ k
Solucin
b)
Clear@ecuaciones, p, m, dD;
ecuaciones = 8 4 x1 x2 + x3 x1 x4, x1 + 3 x2 2 x3 x2 x4,
x1 2 x2 + 3 x3 x3 x4, x21 + x22 + x23 1 <;
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
134
-6
1.06195 10
1.
3.14018 10
0.00122549
0.707107
z j 0.707107 z
-16
1.
0.0416667
-0.00122549
0.708333
0.707108
j 0.708333 z j -0.00122549
z j 0.707108 z
-16
1.
1.
-1.56737 10
i 0.
y k
i
0.
y
{
i 0.
-6 y
k
{y
{
ik
i k
0.
0.
0.75
-0.0416667
j 0.75 z
j -0.0416667
1.
0.
i 0.
y i 0.
k
Pi+1 = Pi + DPPi+1 - Pi
x1
i 0. y
0
D y
4L
-x1 + 3 x2 - 2 x3 - x2 x4
- 2 x2 + 3 x3 - x3 x4
x1
k
j
H0L
x1
y
0
{ =k0 {
+ x2 + x3 - 1
x12
i 1.
= -1. y
x2H0L
P =
0
k 1.
1.
x3H0L
j x4H0L
H L -x1 + 3 x2 - 2 x3 - x2 x4
- 2 x2 + 3 x3 - x3 x4
2
j x1
k x1 + x2 + x3 - 1
-1
-x
-1
k1
3 - x4
-2
-2
-x2
j 2 x1
2 x2
2 x3
3 - x4
1y
-x3 z
0
{
Iteracin i
= 0.
H0L
i x1
P
= -1.00000
x2H0L
x3H0L
i 1.00000
1.00000
j x4H0L z
1.00000
F HP0L = i 5.00000 y
-5.00000
k 5.00000
2.00000
-1.00000
1.00000
-1.00000
k 1.00000
2.00000
-2.00000
-2.00000
2.00000
1.00000
-1.00000
-2.00000
2.00000
J HP0L = i 3.00000
2.00000
-1.00000 y
135
i 3.00000
-1.00000
1.00000
-1.00000 y i Dx1
-2.00000 1.00000
.
2.00000
-1.00000 D
zj
-2.00000
2.00000
0
y i -0.333333 y
{k
x2
jD z
x3
1.00000
2.00000
-2.00000
j 2.00000
k
D
i x1
DP =
J HP0L DP = -F HP0L:
x4
0.333333
-0.333333
j
3.33333
x2
x3
x4
z
{
z = j -0.666667
0.666667
4.33333
{ k
= 1.
i x1
i 0.666667
H1L
= -0.666667 y
= x2H1L
x3H1L
j x4H1L
i 0.666667
0.666667
4.33333
{ k
F HP1L = i 1.11111 y
-1.11111
j 1.11111
k
0.333333
z
{
z
{
-1.00000
1.00000
-1.00000
j 1.00000
-1.33333
-2.00000
-2.00000
-1.33333
0.666667
-0.666667
1.33333
-1.33333
1.33333
J HP1L = i -0.333333
-0.666667 y
z
{
136
-1.00000
1.00000
-1.00000
1.00000
-1.33333
-2.00000
-2.00000
-1.33333
j 1.33333
k
D y
i x1
D
DP =
x2
jD z
x3
x4
-1.33333
1.33333
= 0.0833333
j -0.0833333
1.45833
-0.666667 y i Dx1
D
0.666667
-0.666667
zj
{k
i -0.0833333 y
x2
D
x3
x4
z
{
J HP1L DP = -F HP1L:
i -0.0833333 y
P2 =j -0.666667 z +j 0.0833333
0.666667
-0.0833333
4.33333
1.45833
k
{ k
Iteracin i
z = j -0.583333
0.583333
5.79167
{ k
= 2.
i x1
i 0.583333
H2L
= x2H2L
x3H2L
j x4H2L
i 0.583333
y
=
z
-0.583333
0.583333
5.79167
{ k
F HP2L = i 0.121528
-0.121528
j 0.121528
k
0.0208333
z
{
z
{
J HP2L = i -1.79167
-1.00000
1.00000
-1.00000
j 1.00000
-2.79167
-2.00000
-2.00000
-2.79167
0.583333
-0.583333
1.16667
-1.16667
1.16667
-0.583333 y
z
{
137
i -1.79167
-1.00000
1.00000
-2.79167 -2.00000
-2.00000 -2.79167
-1.16667 1.16667
1.16667
D y
x1
0.583333
-0.583333
x2
. D
{ k
x3
z j Dx4 z
i -0.00595238 y
0.00595238
x2
= -0.00595238
DP = D
k x3 { k
j
-0.583333 y i Dx1
Dx4 z
{
z
0.206207
i 0.577381
y
z = j -0.577381
0.577381
5.99787
{ k
Iteracin i = 3.
i x1
P
H3L
= -0.577381
x2H3L
x3H3L
i 0.577381
0.577381
j x4H3L
5.99787
i
0.00122743
y
F HP3L =
-0.00122743
k 0.00122743
0.000106293
J HP3L = i -1.99787
-1.00000 1.00000
-0.577381 y
-1.00000
k 1.00000
-2.99787 -2.00000
-2.00000 -2.99787
0.577381
-0.577381
j 1.15476
-1.15476 1.15476
138
-1.00000 1.00000
i -1.99787
-1.00000
1.00000
DP =
x2
jD z
x3
-0.577381 y i Dx1
-2.99787 -2.00000
-2.00000 -2.99787
j 1.15476
k
D y
i x1
x4
J HP3L DP = -F HP3L:
D
0.577381
-0.577381
x2
D
x3
-1.15476 1.15476
i -0.0000306824 y
= 0.0000306824
j -0.0000306824
0.00212574
k
z j Dx4 z
{k
{
z
{
i -0.0000306824 y
P4 =j -0.577381 z +j 0.0000306824
0.577381
-0.0000306824
5.99787
0.00212574
k
{ k
Iteracin i
i 0.57735
z = j -0.57735
0.57735
6.
{ k
= 4.
i x1
H4L
= -0.577350 y
= x2H4L
x3H4L
j x4H4L
i 0.577350
z
{
0.577350
6.00000
z
{
-8
i 6.52227 10
-8
F HP4L = -6.52227 10
j 6.52227 10-8
-9
2.82422 10
k
J HP4L = i -2.00000
{
-1.00000
1.00000
-1.00000
j 1.00000
-3.00000
-2.00000
-2.00000
-3.00000
0.577350
-0.577350
1.15470
-1.15470
1.15470
-0.577350 y
z
{
139
i -2.00000
-1.00000
1.00000
-0.577350 y i Dx1
-3.00000 -2.00000
-2.00000 -3.00000
0.577350
-0.577350
1.15470
iD
-1.15470 1.15470
y
-10
-8.15283 10
-10
8.15283 10
Dx
=
DP = D
j x3 z j -8.15283 10-10
x1
. D
j
{k
x2
x3
Dx4
1.12969 10
x4
-7
-10
-8.15283 10
y + 8.15283 10-10
-0.57735
j 0.57735 z j -8.15283 10-10
-7
6.
1.12969 10
k
{ k
Tabla de datos.
y
i 0.57735
=
z
{
-0.57735
j 0.57735
z
6.
k
{
140
i
i
DP =
Pi
D y
x1
i+1
-P
Pi+1 = Pi + DP
x2
j Dx3 z
D
i 1.
0
-1.
j 1. z
1.
i 0.666667
k
-0.666667
j 0.666667
4.33333
i 0.583333
k
-0.583333
j 0.583333
5.79167
i 0.577381
k
-0.577381
j 0.577381
5.99787
i 0.57735
k
-0.583333
j 0.583333
5.79167
i 0.577381
0.00595238
j -0.00595238 z
0.206207
i -0.0000306824 y
-0.577381
j 0.577381
5.99787
i 0.57735
0.0000306824
j -0.0000306824 z
0.00212574
i -8.15283 10-10 y
-0.57735
j 0.57735
6.
i 0.57735
i 0.666667
0.0833333
j -0.0833333 z
1.45833
i -0.00595238 y
-0.333333 y
-0.666667
j 0.666667
4.33333
i 0.583333
x4
0.333333
j -0.333333 z
3.33333
i -0.0833333 y
y 8.15283 10
-0.57735
j 0.57735 z j -8.15283 10-10
-7
6.
1.12969 10
k
{ k
z
{
1.45833
z
{
y
0.206207
z
{
y
0.00212574
-10
3.33333
-0.57735
j 0.57735
z
6.
k
{
Solucin
c)
Clear@ecuaciones, p, m, dD;
ecuaciones = 8 4 x1 x2 + x3 x1 x4, x1 + 3 x2 2 x3 x2 x4,
x1 2 x2 + 3 x3 x3 x4, x21 + x22 + x23 1 <;
d = 10. ;
newtonSistemasNoLineal@ecuaciones, p, m, dD;
141
-7
1.12969 10
4L
k
j
H0L
x1
-x1 + 3 x2 - 2 x3 - x2 x4
x1 - 2 x2 + 3 x3 - x3 x4
2
2
+ x2 + x3 - 1
x12
i 1.
y
0
{ =k0 {
z
= 0. y
x2H0L
P =
0
k 0. {
x3H0L
j x4H0L
1.
H L -x1 + 3 x2 - 2 x3 - x2 x4
- 2 x2 + 3 x3 - x3 x4
2
j x1
k x1 + x2 + x3 - 1
-1
-x
-1
k1
3 - x4
-2
-2
-x2
j 2 x1
2 x2
2 x3
3 - x4
1y
-x3 z
0
{
Iteracin i
= 0.
H0L
i x1
P
0
x3H0L
j x4H0L z
1.00000
F HP0L = i 3.00000 y
-1.00000
j 1.00000
k
= 0
x2H0L
i 1.00000
z
{
-1.00000
1.00000
-1.00000 y
-1.00000
k 1.00000
2.00000
-2.00000
-2.00000
2.00000
0
0
J HP0L = i 3.00000
2.00000
142
i 3.00000
1.00000
-1.00000 y i Dx1
-1.00000
2.00000
-2.00000
1.00000
-2.00000
2.00000
j 2.00000
0
0
-17
k
y
D
i -5.9848 10 y
i x1
D
DP =
x2
j Dx 3 z
D
J HP0L DP = -F HP0L:
0.25
j -0.25
0
0
0
. D
zj
{k
x2
x3
D
x4
z
{
2.5
x4
P1 = P0 + DP
P
Iteracin i
1.
i -5.9848 10
i y
= 0. + 0.25
j 0. j -0.25
z
2.5
1.
k
{ k
-17
y
= 0.25
j -0.25 z
3.5
{ k
{
= 1.
i x1
H1L
j x4H1L
F HP1L =
i 1.0000
-0.250000
3.50000
i -4.44089 10
-0.625000
j 0.625000
k
= 0.250000
x2H1L
x3H1L
0.125000
-16
y
z
{
-1.00000
1.00000
-1.00000
j 1.00000
-0.500000
-2.00000
-2.00000
-0.500000
-0.250000
0.250000
2.00000
0.500000
-0.500000
J HP1L = i 0.500000
-1.0000 y
z
{
143
yi
i 0.500000
-1.00000
1.00000
-1.0000
-1.00000
1.00000
-0.500000
-2.00000
-2.00000
-0.500000
-0.250000
0.250000
0.500000
2.00000
D y
x2
x3 {
Dx4 z
Iteracin i
x3
z j Dx4 z
-0.518293
3.5
. D
{ k
0.25 + 0.216463
k -0.25 { k -0.216463
x2
-0.216463
0.216463
DP = D
x1
i -0.170732 y
x1
-0.500000
D y
-0.518293
i 0.829268
= 0.466463
{ k -0.466463
2.98171
{
z
= 2.
i x1
H2L
y i 0.829268
= x2H2L
= 0.466463
x3H2L
{ k -0.466463
z j
j x4H2L
2.98171
i
-0.0884890
y
F HP2L
= 0.112191
k -0.112191
0.122862
{
z
-1.00000
1.00000
-1.00000
k 1.00000
0.0182927
-2.00000
-2.00000
0.0182927
-0.466463
0.466463
0.932927
-0.932927
J HP2L = i 1.01829
1.65854
-0.829268 y
144
-1.00000
1.00000
-0.829268 y i Dx1
0.0182927
-2.00000
-2.00000
0.0182927
-0.466463
0.466463
j 1.65854
0.932927
-0.932927
k
D y i -0.0103077 y
i x1
DP =
x2
j Dx3 z
J HP2L DP = -F HP2L:
-0.0566853
j 0.0566853
. D
zj
{k
x2
x3
x4
z
{
0.0173469
x4
i -0.0103077 y
P3 =j 0.466463 z +j -0.0566853
-0.466463
0.0566853
2.98171
0.0173469
k
{ k
Iteracin i
z = j 0.409778
-0.409778
2.99905
{ k
= 3.
i x1
i 0.818961
H3L
= x2H3L
x3H3L
j x4H3L
i 0.818961
= 0.409778
z
-0.409778
2.99905
{ k
F HP3L = i 0.000178807
0.000983313
j -0.000983313
k
0.00653269
J HP3L = i 1.00095
-1.00000
j 1.00000
1.63792
k
{
y
z
{
-1.00000
1.00000
0.000945783
-2.00000
-2.00000
0.000945783
-0.409778
0.409778
0.819556
-0.819556
-0.818961 y
z
{
145
i 1.00095
-1.00000
1.00000
D
0.000945783 -2.00000
-0.409778
x
.
-2.00000
0.000945783 0.409778
D
x3
z
j
D z
0.819556
-0.819556
0
x
y i -0.00245967 y
{k
{
4
D
D
1.00000
2
j 1.63792
k
D
i x1
DP =
-0.818961 y i Dx1 y
J HP3L DP = -F HP3L:
-0.00152762
j 0.00152762
x2
x3
0.000942714 z
x4
i -0.00245967 y
P4 =j 0.409778
z +j -0.00152762
-0.409778
Iteracin i
= j 0.408251
0.00152762
z
0.000942714
2.99905
k
i 0.816501
-0.408251
3.
k
= 4.
i x1
H4L
= x2H4L
x3H4L
j x4H4L
i 0.816501
= 0.408251
z
{
-0.408251
3.00000
z
{
-6
F HP4L = i 2.31877 10
-6
1.44011 10
j -1.44011 10-6 z
0.0000107172
k
{
-1.00000
i
1.00000
J HP4L =
-1.00000
j 1.00000
1.63300
k
3.06909 10
-2.00000
0.816501
-6
1.00000
-2.00000
-6
3.06909 10
-0.816501
-0.816501 y
-0.408251
0.408251
0
{
146
-1.00000
-1.00000
3.06909 10
k 1.00000
-2.00000
0.816501
1.63300
iD y
x2
x3
x4
-2.00000
-0.408251
-0.816501
-6
{
z
2.25001 10
-6
3.06908 10
Tabla de datos.
-0.408251
3.
-2.25001
+
{
z
2.25001
3.06908
y
-6
10-6
10
i 0.816497
0.408248
= -0.408248
{ k
-6
10 z j
3.
-6
10
.
k
D1
x2
x3
D
z j x4 z
-6
yi D y
-2.25001 10
0.408251
0.408251
-6
-6
D
k
-0.816501
3.06909 10
i -4.31288 10
x1
DP =
-6
1.00000
{
z
147
i
i
DP =
Pi
x1
i+1
-P
Pi+1 = Pi + DP
x2
j Dx3 z
D
0.
j 0.
0.25
j -0.25
2.5
k i -0.170732 y
i k { y
1.
0.25
j -0.25 z
3.5
k
i 0.829268
2
-17
-5.9848 10
0.466463
j -0.466463
2.98171
i 0.818961
0.216463
-0.216463
-0.518293
z
{
z
{
-0.0103077 y
2.5
{ y
i k
0.829268
0.466463
j -0.466463 z
2.98171
k
i 0.818961
-0.0566853
j 0.0566853
z
0.0173469
i -0.00245967 y
0.409778
j -0.409778
2.99905
i 0.816501
0.408251
j -0.408251
3.
i 0.816497
-0.00152762
j 0.00152762
z
0.000942714
i 0.816501
y i
0.408251
j -0.408251
z j 2.25001 10-6
3.
0.25
j -0.25 z
3.5
0.409778
j -0.409778
2.99905
i 1.
1.
x4
i 1. y
-6 y
-4.31288 10-6
-2.25001 10
3.06908 10
-6
{ k
i 0.816497 y
z
0.0566853
y
0.00245967
-6
3.
{
P5 = j 0.408248
-0.408248
3.00000
k
0.408248
z j -0.408248
0.518293
4.31288 10
148
puntodbilimportantedelmtododeNewton
pararesolversistemasde
ecuacionesnolinealesestenelhechodeque,encadaiteracin,esnecesariocalcularuna
matrizjacobianayresolverunsistemadenecuacionesconnincgnitascondichamatriz.
Paraejemplificarlaimportanciadeestadebilidad,seconsideranlacantidaddeclculos
necesariosparallevaracabounasolaiteracindelmtododeNewton.Lamatrizjacobiana
asociadaaunsistemadenecuacionesnolinealesescritasdelaformaFHxL=0,requiere
2
quesedeterminenyevaluenlasn derivadasparcialesdelascomponentesdeF.Enla
mayoradelassituacioneslaevaluacinexactadelasderivadasparcialesresultacomplicada
y,enmuchasaplicaciones,imposible.
Cuando no es prctico
aproximacionesdediferenciafinitaalasderivadasparciales.Porejemplo,
H
H
i L f H
fj
+ ek h - f j xHiL
HiL
LL ,
j x
xH L
(19)
xk
dondehesunnmeropequeoenvalorabsolutoyekeselvectorcuyanicacoordenadano
nulaeslak-simaquevale1.Sinembargo,estaaproximacinrequiereefectuaralmenos
2
n evaluacionesdefuncionesescalaresparaaproximarlamatrizjacobianaynodisminuyeel
3
nmerodeoperacionesquehayquerealizar,casisiempreesnecesarioO(n )pararesolverel
sistemalinealquecontieneestamatrizjacobianaaproximada.Elesfuerzocomputacional
totalpararealizarsolamenteunaiteracindelmtododeNewtonconlleva,enconsecuencia,
149
paraevaluarlafuncin F),juntoconunnmerodeoperacionesaritmticasdeordenO(n )
pararesolverelsistemalineal.Estacantidaddeclculosesmuygrande,exceptoenelcaso
delosvaloresrelativamentepequeosdenydefuncionesescalaresquesepuedenevaluar
fcilmente.
ElmtododecuasiNewtonode Broydenesunageneralizacindelmtododela
nolineales.Elmtodorequierenicamenten
secanteparalossistemasdeecuaciones
operacionesaritmticasaO(n ).Estemtodoperteneceaunaclasedetcnicasdenominadas
actualizacionesdesecanteconcambiomnimo,enlosquesesustituyelamatrizjacobiana
delmtododeNewtonporunamatrizdeaproximacionesqueseactualizaencadaiteracin.
Ladesventajadeestemtodoesquesepierdelaconvergenciacuadrticadelmtodode
Newton,quesereemplazaporunaconvergenciadenominadasuperlineal,lacualimplicaque
-p
=
xi+1
i
lm
xHi L
- p
0.
dondepdenotalasolucindeF(x)=0y
(20)
p
HiL
Hi+1L
+p
sonaproximacionesconsecutivasdep.
Enlamayoriadelasaplicaciones,eldescensoenelnmerodeclculosesuna
compensacinmsqueaceptableporlareduccinaconvergenciasuperlineal.
Unadesventajaaadidadelosmtodosactualizacindesecanteconcambiomnimo
esque,adiferenciadelmtododeNewton,nosecorriguenasimismos.Enelmtodode
Newton,porejemplo,generalmenteloserroresderedondeosevancorrigiendoenlas
sucesivasiteraciones,loquenoocurreconestemtodosalvoqueseincorporenmedidas
150
especialesdecorrecin.
0
alasolucin pde
Suponiendoquesesedisponedeunaaproximacininicialp
1
F(x)=0.Lasiguienteaproximacin p
secalculacomoenelmtododeNewtono,sies
dificildedeterminarexactamenteJ(p ),seutilizarnlasecuacionesdediferenciasdadas
2
por(19)paraaproximarlasderivadasparciales.Sinembargo,paracalcularp
seprocede
demaneradiferentealmtododeNewtonexaminandoelmtododelaSecanteparaunasola
ecuacin.EnelmtododelaSecanteseutilizalaaproximacin
f H p L
-f
1
fp1
p0
(21)
p1 - p0
comosustitutodelaf Hp1LdelmtododeNewton.
H1L
H0L
Enelcasodelossistemasnolineales,p
-p
esunvector,asqueelcociente
correspondientenoestdefinido.Anas,elmtodprocededemanerasemejanteal
mtododeNewton,enelsentidodeque,envezdelamatrizjacobianaJ(p
H1L
)delmtodode
NewtonseempleaunamatrizA1talque
H1L
A1Hp
H0L
-p
H1L
L=FHp
Todovectordistintodecerode
p
H1L
H0L
-p
(22)
H0L
L-FHp
L.
puedeescribirsecomolasumadeunmltiplode
ydeunmltiplodeunvectordelsubespacioortogonaldep
H1L
H0L
-p
.Portanto,
paradefinirlamatrizA1deformanica,sedebeespecificarcmoactaestamatrizsobreel
H1L
subespacioortogonaldep
-p
H0L
.Dadoquenosetieneinformacinsobrelavariacinde
Fenlasdireccionesortogonalesap
H1L
-p
H0L
,serequiere,simplemente,
variacin,osea,que
H0L
A1z=JHp
Lz
H1L
siemprequeHp
151
H0L t
-p
L z=0.
quenohaya
(23)
Estacondicinespecificaqueningnvectorortogonalap -p
seveafectado
p ,porla
Estascondiciones(22y23)definendemaneranicaaA1como
H
LH
LD H
H0
L-J H
@F H L - F
Jp
A
+
pH1L
pH0L
pH0L pH1L - pH0L
pH1L - pH0L
1
L
=p
H1L
(24)
HL
-p
H1L
H2L
EstamatrizeslaqueseusaenlugardeJHp
con
-A1
-1
FH p
H1L
H2L
Lparadeterminarp
como:
(25)
L.
H2L
Unavezquesehadeterminadop
A0JHp
utilizandoA1enlugarde
H3L
,serepiteelprocedimientoparadeterminarp
H0L
Lycon
H2L
yp
H1L
enlugardep
H1L
H0L
yp
HiL
respectivamente.Engeneral,unavezquesehadeterminadop
,lasiguienteaproximacin
Hi+1L
secalculamediante
y
i- i-1 i
A=
i-1
si22
(26)
HiL
(27)
y
-1
Hi+1L
=p
dondelanotacin
HiL
- Ai FH p
L,
eyi=FHp
si = pHiL - pHi-1L
HiL
L-FHp
Hi-1L
seintroduceenlas
ecuacionesanterioresparasimplificarlas.
Sielmtodoseaplicacomosehadescritoanteriormente,elnmerodeevaluaciones
2
HiL
defuncionesescalaresdisminuyeden +nan(lasnecesariasparacalcularF(p
3
)),pero
siguerequiriendodelordendeO(n )pararesolverelsistemalinealasociadodenecuaciones
connincgnitas
152
(28)
Aiyi= -FHp L.
-1
SiAesunamatrizinvertibleysixeysonvectorestalesquey =A x -1,
t
entoncesA+xy esinvertibley
+
t -1
xy A
-1
-1
A-1
xy L
HA
1+y
A-1 x
Ai
directamenteapartir
-1
de
A-1
,conloque
se
en cadaiteracin.Al utilizarA=A
-1,
i-1
y -A
i
i-1 i
x=,e
si2
Morrisonimplicanque
j
y-
Ai
-1
-1
z
-1 i
= i Ai-1 + ii
sit
=
A
-1
y A s
i- i-1 i
-1
A
si
1+s
yi - Ai-1 si
-1
A
ii-1I
-1
-
i-1
-1
Ai - 1
i-1
(29)
t -1
si Ai - 1
- si
-1
si2 + si Ai - 1 yi - si2
-1
A
si
-1
A
iMi-1
i-1
i-1I
-1 y
1 i
- Ai -
si
-1
Ai -
-1
si Ai - 1yi
Enesteclculointervienenexclusivamentelamultiplicacindematricesyvectores
2
encadapaso;portanto,sloserequierenO(n )clculosaritmticos.ElclculodeAise
omite,yseprescindedelaresolucindelsistemalineal(28).
153
6.2 Pseudocdigo
Algoritmo5.MtododeCuasiNewtonparasistemanolineales
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolinealesde
necuacionesconnincognitasmedianteelmtododeCuasiNewtones:
Algoritmo Cuasi - Newton
Input
L<
H
I8 H
LL
px H0L
x H0L ...
xm0
1 2
F8f Hx1,
..., xn L<1
0
i
f
f_valor
p1
1H L
HxL
f1
x 1
x1
...
xn
fn
x1
HxL
f2
x2
...
HxL y
f1
L{
HxL
f1
HxL
f2
x 2
, ...,
p
J x =
HL k
................
0
0
p2 , ..., pn L
L
0 , ...,
0 L
p
,
2
n
f1 H p1 ,
... ....
HxL
f2
xn
fn
fn
x2
x x1,
...
xn
L{
..., xn
x z
A y J (x
L-1
s y A . f_valor
p_sigp - s
p y p_sig
error p_sig - p
For k = 2, ..., n do
H* Se evala la funcin F *L
w y f_valor
i
f1
H
H
f
f_valor
1
k-1
L
p1
k-1
2
k-1
Ln
, p2
k-1
k. . . . . . . . . . . . . . . .
2
H
L
H
1
j
y y f_valor - w s
y -A. w
k-1
Ly
LL
n
H
..., p
..., p
k-1
L{
, ...,
k-1
Lz
n
LL
154
A_sig
A+I
*
t
s Ay
HH s
A yL Hs ALL M
Return Hx
HpL L
Output
6.3 Problemas
Problema21. Seaelsistemanolinealdeecuacionessiguiente:
f1Hx1,x2,x3L=3x1-cosHx2x3L-12=0,
2
2
f2Hx1,x-x2,xx3L=x 1-81Hx2+0.1L +senx3+1.06=0,f3Hx1,x2,
x3L=e 1 2+20x3+H10p -3L 3=0.
comenzandoenelpuntoinicial
H 0L
H 0L
H 0L
MedianteelmtododeCuasiNewtoncalcleselaaproximacindelasolucin,
P0=Ix 1 ,x 2 ,x 3 M =H0.1,0.1,
-5
-0.1L eiterandohastaquePi+1-Pi10 .
T
Solucin
Clear@ecuaciones, p, m, dD; ecuaciones
= 83 x1 Cos@x2 x3D 1 2,
x21 81 Hx2 + 0.1L2 + Sin@x3D + 1.06,
<;
d = 10. ; cuasinewtonSistemasNoLineal@ecuaciones,
p, m, dD;
155
P0 = x2
k
H0L
0z
{ = 0.1
k
j x3H0L
{
-0.1
x2
-x x
1
sinHx2 x3L x3
sinHx2 x3L x2 y
cosHx3L z 20
-x x
1
x1
Iteracin i = 0
i -1.1999500 y F HP0L =
j -2.2698334 z k
A
-1
0
8.4620253 {
0.0000102385
i 0.333333
k
0.00210861
j 0.00166052
0.000016157
-0.0308688
0.00153584
-0.000152758
0.0500077
-1
Clculo de P1.
P1 = P0 - A0 * F HP0L
= i0.10000000
y -i -0.39986967 y
P1
P1
k 0.10000000
{
z
j
-0.10000000
= i0.49986967
y
k 0.019466849 {
z
j
-0.52152047
k
j
0.080533151 {
0.42152047
y
{
156
Iteracin i= 1. i -0.00033944646 y
F HP1L
= j -0.34438793
0.031882378
F HP1L
=
i 1.1996106 y
F HP0L
-
= j 1.9254455
z
y1
-8.4301430
s1 = P1 - P0 = j -0.080533151
-0.42152047
k
i 0.33337810
A1 = j -0.0020207098
0.0010238994
k
Clculo de P2.
P2
i 0.39986967
z
{
0.000011104966
8.9673439 10
-0.030948482
-0.00016503843
0.0021968158
0.050109587
-6
y
z
{
P2 = P1 - A1* F HP1L
i 0.49986967
y i -0.00011670253 y
=j
0.019466849 - j 0.010729009
z
0.0016541025
-0.52152047
k
{
k
y
i 0.49998638
z
{
P2 = j 0.0087378393 z
-0.52317457
k
{
Iteracin i= 2. i -0.000030424728 y
F HP2L
= j -0.14738354
0.0041247527
k
F HP2L
y2 =
z
i 0.00030902173 y
F HP1L
-
= j0.19700438
-0.027757625
i 0.00011670253 y
s2 = P2 - P1 = j -0.010729009
k
i 0.33338820
A2 = j -0.0059534545
0.00082514415
k
-0.0016541025
z
{
-6
0.000068121639
-9.2972649 10 y
-0.053140268
-0.0012865794
0.0093056886
0.050468859
157
z
{
Clculo de P3.
P3 = P2 - A2* F HP2L
i 0.49998638
y i
-0.000020221603 y
P3 = j 0.0087378393 z - j 0.0078705657
-0.52317457
0.00039776709
k
{
k
y
i 0.50000660
P3 = j 0.00086727356
-0.52357234
k
z
{
z
{
Iteracin i= 3. i 0.000019894274 y
F HP3L
=j
-0.014081267
0.000095133748
F HP3L
y3 =
i 0.000050319003 y
F HP2L
-
= j0.13330228
-0.0040296189
k
z
{
i 0.000020221603 y
s3 = P3 - P2
=j
k
-0.0078705657
-0.00039776709
i 0.33338283
A3 = j -0.0066634584
0.00080340526
k
0.000025855527
1.2133979 10
-0.058721580
-0.0014574679
0.010549431
0.050506940
-0.52357234
i 0.50000033
P4 = j 0.000039528275
-0.52359769
k
y
z
{
Clculo de P4.
P4 = P3 - A3* F HP3L
-6
i 0.50000660
y
i 6.2683424 10 y
P4 = j 0.00086727356
-7
z - j
{
z
{
158
0.00082774528
0.000025343892
z
{
F HP4L
=
i -0.000018907908 y
F HP3L
= j 0.013442055
y4
-0.000093093314
i -6.2683424 10
s4 = P4 - P3
-6
= j -0.00082774528
-0.000025343892
z
{
i 0.33338120
2.6524561 10
A4 = j -0.0068587733
0.00079801933
k
-0.061511385
-0.0015343986
P5
Clculo de P5.
4.8972458 10
-6
-6
0.011123659
0.050522775
z
{
P5 = P4 - A4* F HP4L
i 0.50000033
y i 3.2715067 10-7 y
= j 0.000039528275
-0.52359769
z -
i 0.50000000
-7
P5 = j 1.9354398 10
0.000039334731
1.0846811 10
-6
y
z
-0.52359877
F HP5L
= j -3.1290522 10-6
-8
1.3994331 10
= F HP L - F HP L = i -9.8166618 10-7 y
5
4
j 0.00063608269
y5
-2.0264396 10
-6
i -3.2715067 10
s
= P5 - P4
-7
= j -0.000039334731
k
y
-6
-1.0846811 10
z
{
i 0.33338104
2.0305293 10
A5 = j -0.0068787533
0.00079744751
k
-0.061814004
-0.0015430594
-7
5.3953303 10
0.011185196
0.050524536
-6
y
z
{
159
Clculo de P6.
P6 = P5 - A5* F HP5L
i 0.50000000
-9
i 1.5665441 10-7 y
P6 =
k 1.9354398 10 { - 1.9354344 10
k
j
z j 5.5391192 10-9 z
-0.52359877
-13 y
P6 = i 0.50000000
-7
k 5.3466189 10
{
z
-0.52359878
Tabla de datos.
Pi
0.10000000
F Pi
i -1.1999500 y
k 0.10000000
-0.10000000
i -0.000339446 y
k 0.019466849
-0.52152047
y
z
-0.52317457
0.031882378
{
z
k -0.14738354
j 0.0041247527
i 0.000019894274 y
0.000039528275 {
z
-0.52359769
i 1.9354398 10
-7
k
j
k -0.34438793
0.50000000
5
k 0.00086727356
-0.52357234
-0.52359877
-13
i 0.50000000
0.42152
i -0.000030424728 y
k
j
-0.344388
0.0318824
i 0.50000033
4
i -0.00033944646 y
0.0087378393 {
i 0.50000660
k -0.014081267
j
0.000095133748
-7
i 9.8636682 10
k -0.00063921175
j
2.0404339 10
-6
y i 4.7006390 10
5.3466189
-0.52359878
10
{
z
k -3.1290522 10
-8
1.3994331 10
0.010729
0.00787057
0.000827745
{
y
-9
0.0000393347
{
z
-6
i-1
-2.2698334{
8.4620253
i 0.49998638
j
i 0.49986967
j
P -P
y 1.93543
{
z
-0.52359878
-13
y
{
z
Problema22. Seaelsistemadeecuacionesnolinealessiguiente.
2 =
x+1 4x2
+ 8 = 0,
2
f1Hx1,x2L
4x1
20 2 1
f2Hx1,x2L = 1
2 x1 x2 + 2 x1 - 5 x2 + 8 = 0.
160
-7
10
AplqueseelmtododeCuasiNewtoniniciandoelmtodoenelpuntoinicialP
0=
H 0L H 0L T
T
-5
Ix 1 ,x 2 M =H0,0L eiterandohastaquePi+1-Pi10 .
Solucin
Clear@ecuaciones, p, m, dD;
ecuaciones = 84 x21 20 x1 + 1 4 x22 + 8, 1 2 x1 x22 +
2 x1 5 x2 + 8<; p = 80., 0.<;
m = 12;
5
d = 10. ; cuasinewtonSistemasNoLineal@ecuaciones,
p, m, dD;
1
2
P0 = i
x H0L
j x
k
0L z
2
0.
y=i
x x
y
j 0. z
=i
J x1, x2
8x
x2
- 20
2
2
+2
x-5
z
k
Iteracin i
=0
8.0000000
=i
F P0 L
j 8.0000000 z
A0
-1
-0.05
=i
0.
j -0.02
k
Clculo de P1. 0
P1 = i
y -
P1
0z
-0.2
1.7600000
= 1.
=
L
-1
P1 = P0 - A0 * F HP0L
-0.40000000 y
-1.7600000
0.40000000 y
=i
F P1
Iteracin i
i 1.4144000 y
k
0.61952000
161
y1
s1
= F P1 - F P0
H L
= P1 - P0
=
L
i -6.5856000 y
k
-7.3804800
A1
-0.21808962
P2 = P1 - A1* F HP1L
= 0.40000000 y - i
j 1.7600000
k
P2
-0.022836782
Clculo de P2.
P2
1.7600000
-0.0084058166 y
= i -0.051318185
i 0.40000000 y
-0.077792012 y
-0.16741123 z
{
i 0.47779201 y
j 1.9274112
Iteracin i= 2.
F P2 L
= i 0.28602909 y
j
0.20600602 z
y2 = F P2
- F P1
s2 = P2
- P1 = i
-1.1283709 y
-0.41351398 z
0.077792012
0.16741123
z
{
-0.033621257 y
-0.29716148
z
{
A2 = i -0.056620702
j
-0.039464683
Clculo de P3.
P3 = P2 - A2* F HP2L
i
-0.023121349 y
P3 = 0.47779201 y - i
z
j 1.9274112 z j
-0.072505101
k
P3
i 0.50091336 y
j 1.9999163
Iteracin i= 3.
F P3 L
= i -0.014694116 y
j
0.0039879863 z
y3 = F P3
H
s3 = P3
A
- F P2
H
- P2 = i
0.023121349
i -0.056115716
-0.039902570
-0.20201803 z
=i
-0.30072321 y
3=
0.072505101 z
-0.030918285 y
-0.29950530
z
{
162
y
P4 = P3 - A3* F HP3L
i
i
0.00070126913
P4 = 0.50091336 y k 1.9999163 { k
{
z
j
z j
-0.00060809004
Clculo de P4.
P4
i 0.50021209 y
2.0005244 z
j
Iteracin i = 4.
F P4
= i -0.0028688097 y
k
j
-0.0012490081
y4 = F P4
s4 = P4
- F P3
L
=
L
i 0.011825306
k
-0.0052369944
-0.00070126913
- P3 = i
k
P5
y
{
0.00060809004
0.00052001246 y
Clculo de P5.
P
= i -0.059072114
-0.22255529
-0.047138803
P5 = P4 - A4* F HP4L
0.00016881715 y
k 2.0005244
{
k
{
j
z j 0.00041320562 z
= i 0.50021209 y - i
i 0.50004328 y
j 2.0001112
k
Iteracin i = 5.
F P5
H
= i -0.00058117897 y
k
j
-0.00027173274
y5 = F P5
H
s5 = P5
- F P4
L
=
L
i 0.0022876307
k
0.00097727535
-0.00016881715
- P4 = i
k
y
{
-0.00041320562
-0.019467391 y
A5 = i -0.065479166
k
-0.063605474 -0.27392462
Clculo de P6.
P6 = P5 - A5* F HP5L
i
0.000043345042 y
P6 = 0.50004328 y - i
k 2.0001112
{
k
{
j
z j 0.00011140045 z
P6
=i
0.49999993 y
j 1.9999998
k
Iteracin i = 6.
F P6 = i 9.3066080 10-7 y
H
{
L k
j
z
4.7618543 10
-7
163
y6
= F P6 - F P5
H L
H L
= P6 - P5 = i
s6
i 0.00058210963 y
0.00027220893
-0.000043345042
P7 = P6
-0.27350915
P7
=i
10 y
-7.0090428
-1.8931383
-8
- A6* F HP6L
P7 = i 0.49999993 y - i
j 1.9999998 z j
k
{
z
-0.063473992
Clculo de P7.
-0.00011140045
-0.019313566 y
= i -0.065430487
A6
10-7 z
{
0.50000000 y
2.0000000
Tabla de datos.
i
0
i Pi
j 0z
i 0.40000000 y
j 1.7600000 z
k
j 1.9999163
0.167411
z
{
0.0725051
0.20600602
z
{
0.0039879863
0.000701269
z
{
0.000413206
i -0.0028688097 y
z
-0.0012490081
z
{
0.0001114
i 0.49999993 y i -0.00058117897 y
j 1.9999998 z j -0.00027173274 z
i 0.50000000 y i 9.3066080 10-7 y
k
0.61952000
i 0.50004328 y
j 2.0001112
i -0.014694116 y
i 0.50021209 y
k
1.76
i 0.28602909 y
z
j 2.0000000
k
z j
{ k
4.7618543 10-7
2.0000000
-7
1.89314 10
{
i 0.50000000 y
k
i-1
1.4144000 y
j 2.0005244
i 0.50091336 y
k
i 0.47779201 y
j 1.9274112
P -P
F Pi
i 8.0000000 y
j 8.0000000 z
i 1.4144 y
j 0.61952 z
164
Problema23. Seaelsistemadeecuacionesnolinealessiguiente.
3
= x1 + x2 - x3
f2Hx1,x2,x3L
= 0.
f3Hx1,x2,x3L=x2
- 2 x1 x3 - 4 = 0
AplqueseelmtododeCuasiNewtoniniciandoelmtodoenelpuntoinicial
T
T
=I
P0
= -1, -2,1
eiterandohastaque Pi+1-Pi
xH0L , xH0L, xH0L
M
1
2
L
3
H
Solucin
Clear@ecuaciones, p, m, dD;
ecuaciones =
8x13 + x12 x2 x1 x3 + 6, Exp@x1D + Exp@x2D x3, x22 2 x1 x3
4 <; p = 81., 2., 1<;
m = 11;
6
d = 10. ; cuasinewtonSistemasNoLineal@ecuaciones,
p, m, dD;
-x1
2
x1
i3
+ 2 x2 x1 - x3
, x3L = 1
j
Iteracin i
-2 x3
= 0 i 4.0000000
x1
-1
2 x2 -2 x1
F HP0L
= j -0.49678528
2.0000000
k
A
-1
0
0.16714
= -0.0566605
k
0.0538193
z
{
0.268907
-0.627449
-0.985991
165
0.0508832
-0.285394
-0.019905
-6
10 .
Clculo de P1.
i
P1 = j -2.0000000
1.0000000
k
i
P1
-1
z - j -0.48572277
0.66529279
P1 = P0 - A0 * F HP0L
-1.0000000 y i 0.63673833
-1.6367383 y
= j -1.5142772
0.33470721
Iteracin i= 1. i -1.8934664
F HP1L
=j
0.079873675
-0.61130823
z
{
F HP1L
=
i -5.8934664 y
F HP0L
-
= j 0.57665895
z
y1
-2.6113082
i -0.63673833 y
s1 = P1 - P0
= j 0.48572277
k
A1 =
0.30761641
0.016948919 y
j -0.030727708
0.034955507
k
-0.65494452
-0.96598994
-0.26129036
= j -1.5142772
z
{
-1.4036024 y
= j -1.6798752
0.45516509
-0.037438346
P2 = P1 - A1* F HP1L
-1.6367383 y i -0.23313592 y
0.33470721
i 0.13063097
Clculo de P2.
i
P2
-0.66529279
- j 0.16559801
z
-0.12045788
166
Iteracin i = 2. i 0.56411230
F HP2L
=j -0.023057640
0.099722438
F HP2L
y2 =
i 2.4575787
F HP1L
-
=j -0.10293131
0.71103067
k
y
i 0.23313592
s2 = P2 - P1 = j -0.16559801
0.12045788
k
A2 =j -0.021471687
0.022437366
k
P3
z
{
z
{
-0.64008677
-0.98608403
-0.25134587
-0.050887600
z
{
P3 = P2 - A2* F HP2L
i -1.4036024 y
i 0.054116669
= j -1.6798752
z
- j -0.022418375
0.030319329
0.45516509
-0.0070565193 y
0.27175067
i 0.10828747
Clculo de P3.
z
{
i -1.4577191 y
P3
= j -1.6574569
z
0.42484576
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
167
Iteracin i= 6.
F HP6L
i -0.000033783397
4.3150610 10
j
y6
-7
-9.9292832 10
-6
= F HP6L - F HP5L =
i -0.0010724581
6.0574834 10
j
-0.00043231324
=P -P
6
= 0.00015704500
-6.5087361 10
A6 =
z
{
i -0.00012944703
s
y
-6
-6
z
{
i 0.10571545
0.49488871
0.044110192
j -0.013434126
0.025056559
k
-1.0563685
-1.0384105
-0.34474168
-0.061653279
y
z
Clculo de P7.
P7 = P6 - A6* F HP6L
-6
-1.4560465
i
i -3.7958620 10 y
=
y
j 3.4210587 10-6
P7
-1.6642271 -7 z
j 0.42249274 z
-6.8240327 10
k
i -1.4560427 y
P7
= j -1.6642305
z
0.42249343
F HP7L
=j -1.3598257 10-8
-7
y7
2.3733420 10
= F HP7L - F HP6L =
i 0.000034675647
-7
-4.4510435 10
j0.000010166617
k
-6
y
z
{
i 3.7958620 10
s7 = P7 - P6 = j -3.4210587 10-6
-7
6.8240327 10
i 0.10404363
0.47766499
= j -0.012079802
0.024684143
k
-1.0424157
-1.0422473
0.039412566
-0.34093616
-0.062699729
y
z
168
Clculo de P8.
P8 = P7 - A7* F HP7L
i-1.4560427 y
P8
= j -1.6642305
0.42249343
9.5691449 10
- j -7.7518975 10
-8
2.1316378 10
-8
-8
z
{
i-1.4560428 y
P8
= j -1.6642305
z
0.42249340
Tabla de datos.
Pi
i -1.0000000
j -2.0000000 k
1.0000000 i
-1.6367383
k 0.0798737 {
iz
-0.61130823
0.665293
y
k 0.079873675
i -1.8934664
iz
iz
-0.611308
k -0.023057640 {
0.099722438
i -0.00027155345 y
k -0.0014560223
j -0.014225217
i -0.0093840223
k -0.00010193191
-5.6259773 10
0.42249274
i -1.4560427 z 0.00042238396
y i -0.000033783397
j -1.6642305 k
j -1.6642305 k
4.3150610 10
0.00246883
z
-6
kj
0.00445848
-0.0058993987
iz
y i 0.0010386747
0.0541167
j -1.6642271 k {
0.233136
i 0.56411230
j
i-1
yz
2.0000000
P -P
i
i -1.89347
j -1.6643842 k {
0.42249925
-1.4560465
F Pi
j -1.6619153 k {
0.42271835
-1.4559170
j -1.6574569 k {
0.42484576
-1.4573983
4.0000000
k -0.49678528 {
j -1.6798752 k {
0.45516509
-1.4577191
j -1.5142772 k z
0.33470721
-1.4036024
0.000157045
{
z
-7
3.79586 10
-6
{ k
{z
0.42249343
-9.9292832 10-6
i -1.4560428 z j
y i 8.9224981 10-7
y 9.56914 10-8
0.42249340
k
{
z j
-8
-1.3598257 10
-7
2.3733420 10
{
z
169
Problema24. Seaelsistemanolinealdeecuacionessiguiente:
- 1 2=0,
f H x,x ,x L = 3x1 - cos x2 x3
1H
f2
3L
x1 ,x2,x3
H2
= 4 x1 - 625 x2
+ 2 x2 - 1 = 0,
-x1 x2
+ 20 x3 + H10 p - 3L 3 = 0.
f3Hx1,x2,x3L=e
Aplquese
P0=
el
2
mtodo
T=
de
Cuasi
Newton
conla
aproximacin
0,0,0 Tyaplicandoelmtodohastaque
i+1
- Pi
Solucin
Clear@ecuaciones, p, m, dD; ecuaciones
= 8 3 x1 Cos@x2 x3D 1 2,
H0L
i x1 y
P0 = x2
k
H0L
j x3H0L
-x x
20 x3
i 0. y
1 2
+ 1
-3 + 10 p z
{ = 0.
k
z
{
0.
sinHx2 x3L x3
2 - 1250 x2
-x x
1
x2
170
-x x
1
x1
sinHx2 x3L x2 y
0
20
inicial
-5
10 .
Iteracin i = 0
i -1.5000000 y
F HP0L
= j -1.0000000
10.471976
k
-1
z
{
i 0.333333
0.
0.
j 0.
k
0.5
0.
0.
0.05
P1
{
P1 = P0 - A0 * F HP0L
i -0.50000000 y
- j -0.50000000
0.52359878
k
{
k
y
i 0.50000000
0
-1
Clculo de P1. 0
y
i
P1 = j 0
0.
= j 0.50000000
-0.52359878
Iteracin i = 1. i 0.034074174 y
F HP1L
= j -155.25000
-0.22119922
F HP1L
y
i 1.5340742
F HP0L
-
= j -154.25000
z
-10.693175
i 0.50000000
s1 = P1 - P0
i 0.33338311
= j 0.50000000
-0.52359878
A1 =
{
0.000074671256
-0.010329875
j -0.34021992
-0.000048474318 -0.000072711477
k
-6
-7.8195557 10 y
0.053441620
0.050007614
Clculo de P2.
P2 = P1 - A1* F HP1L
i 0.50000000
y i -0.00023122871 y
P2
= j 0.50000000
-0.52359878
k
P2
z
{
i 0.50023123
= j -1.0802991
-0.52382394
- j 1.5802991
0.00022516001
k
z
{
171
Iteracin i = 2.
i 0.15658007 y
F HP2L
=j
-731.56349
z
0.71218906
k
F HP2L
=
i 0.12250590 y
F HP1L
-
= j-576.31349
y2
0.93338828
i 0.00023122871 y
s2 = P2 - P1
=j
-1.5802991
-0.00022516001
A2 = j 0.090248461
0.0050200777
k
P3
0.000013977716 y
0.0027383079
0.000081159901
-0.014175515
0.049211456
z
{
P3 = P2 - A2* F HP2L
i 0.50023123
y i 0.00064447181 y
= j -1.0802991
-0.52382394
k
P3
0.000070458556
i 0.33324435
Clculo de P3.
z
{
i 0.49958676
= j 0.91891155
-0.50028422
- j -1.9992106
-0.023539715
k
z
{
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
172
Iteracin i = 10.
i 0.0011160823
F HP10L
=j
-5.3749283
0.00099511573
F HP10L
y
i -0.0016566050 y
F HP9L
-
=j 8.4151117
-0.0015409534
10
i 0.000059694684 y
s =P
10
- P9 = j -0.055798137
10
10
0.000022024267 y
=j -0.65297008
-0.0067540471
0.028417241
-0.013201957
-0.00015843129
0.050289560
P =P
Clculo de P11.
11
i 0.49996902
P
=j
11
=j
i -0.000018589872 y
0.058746270
-0.52213209
Iteracin i = 11.
- A10* F HP10L
0.094348299 - j 0.035602029
z
0.00088686628
-0.52124522
i 0.49998761
11
10
0.000073447929
i 0.33704107
-0.0013888404
{
i 0.00043321741 y
F HP11L
=j
-2.0395097
0.00038851313
F HP11L
y
F HP10L
-
i -0.00068286487 y
=j 3.3354186
-0.00060660260
11
i 0.000018589872 y
s
11
=P
11
- P10 = j -0.035602029
k
i 0.33715269
11
=j -1.0520154
k
-0.023159275
-0.00088686628
z
{
0.000074602296
0.000016956222 y
-0.010880849
0.046535249
-0.00026140674
0.050741656
z
{
173
P =P
Clculo de P12.
12
i0.49998761
P
= j 0.058746270
12
12
-0.52213209
= j 0.036992346
-0.52267491
i -6.0850991 10
-6
- j 0.021753924
0.00054282238
i0.49999369
- A11* F HP11L
11
Tabla de datos.
i
i
0
Pi
-0.221199
i 0.034074174 y
j -155.25000 z
1.5803
-0.22119922
ki 0.15658007 y
k -731.56349
{
j
0.71218906
i 0.10258215
j -525.91285 z
k -0.36857038 i {
y
0.47746396
j 0.79729393 k z{
-0.50602980 i
0.48230959
j 0.70355047 k
-0.50830770 i
0.49882332
j 0.37483057 k
-0.51428842 i
0.49964924
j 0.24762963 k
5.05246
0.098158298
1.6183251
ki
k -22273.816
j 2.1482287
i 0.012681619 y
k -395.79203
j
0.034776583
{
5.17408
{
z
0.0937435
0.32872
0.127201
0.0974832
i 0.010196232 y
k -308.02695
j
0.018069454
i 0.014992813 y
k -87.066262
{
y
i 0.0071433695 y
j 0.15014644 k
k -37.831414
1.99921
-0.51737005 i
0.49990932
-0.51985638
0.523599
j 0.91891155 k {
j 5.9713714
0.0340742 y
-155.25
{
j -1.0802991 k {
-0.50028422 i
0.50970676
4
ki
k
-0.52382394 i
0.49958676
i-1
j 0.50000000 k {
-0.52359878 i
0.50023123
j -1.0000000
10.471976
j0z
0
k
-1.5000000 y
i 0.50000000
P -P
F Pi
0.015672164
0.0081946310
174
i 0.49996902
y i 0.0027726873 y
10 k 0.094348299
j
-0.52124522
i 0.49998761
0.0025360692
12 k 0.036992346
-0.52267491
0.0557981
-5.3749283
{ k
-0.52213209
i 0.49999369
y i 0.0011160823
11 k 0.058746270
j
-13.790040
{ k
y i
0.00043321741 y
{ k
-2.0395097
z j
0.00038851313
0.035602
0.00099511573
0.0217539
Problema25. Dadoelsiguienteproblemanolineal
2
f1Hx1,x
,x L=x1 +x2-37=0,f1Hx1,x2,x3L=
22 3
x1-x2 -5=0.
f1Hx1,x2,x3L=x1+x2+x3-3=0
CalcularlasolucinaproximadadelsistemaempleandoelmtododeCuasiNewton
comenzandoenelpunto:
H 0L H 0L
H0L T
P0=Ix 1 ,x 2 ,x3 M =H0,0,
T
-5
0L ,eiterandohastaquePi+1-Pi510 .
Solucin
Clear@ecuaciones, ecuacionestrans, p, dD;
ecuaciones = 8x12 + x2 37, x1 x22 5, x1 + x2
+ x3 3<; d = 10. 5;
p = 80.0, 0.0, 0.0<;
m = 12;
cuasinewtonSistemasNoLineal@ecuaciones, p, m, dD;
12
j
H0L
i x1 y
P0 = x2
k
H0L
j x3H0L
=i
x1 + x2
0.
0.
- 37
y
{
0.
{ =k 0 {
z j
+ x3 - 3
0z
-x2 + x1 - 5
k
z
+x
175
Iteracin i = 0
i 2 x1
1
j1
k
-2 x
1
0y
z
1
i -37.000000 y
F HP0L
= j -5.0000000
-3.0000000
k
0.
= i 1.
-1
0
1.
0.
0.
0.
j -1. -1.
1.
P1
y
z
{
-1
Clculo de P1.
P
P1 = P0 - A0 * F HP0L
i -5.0000000 y
i y
=j 0
- j -37.000000
z
39.000000
0
k
{
k
y
i 5.0000000
z
{
= j 37.000000
z
-39.000000
Iteracin i = 1. i 25.000000
F HP1L
= j -1369.0000
0
k
F HP1L
y1 =
F HP0L
-
i 62.000000
= j -1364.0000
3.0000000
k
i 5.0000000 y
y
z
{
s1 = P1 - P0 = j 37.000000
k
-39.000000
i -1.8773389
A1 = j 1.0342830
0.84305588
k
-0.086880424 0.96337129
0.019848072
0.067032352
-0.017592609
0.054221324
176
Clculo de P2.
P2 = P1 - A1* F HP1L
i 5.0000000
y i 72.005828
P2
= j 37.000000
-39.000000
-67.005828 y
P2 = j 38.314935
31.690893
k
- j -1.3149348
-70.690893
k
z
{
z
{
Iteracin i= 2.
y
i 4491.0959
F HP2L
=j
-1540.0401
-1.7053026 10
-13
i 4466.0959
y2 = F HP2L - F HP1L =
k
-171.04005
j -1.7053026 10-13 z
{
i -72.005828 y
s2 = P2 - P1 = j 1.3149348
70.690893
k
A2 =
i -0.015443498
0.017736688
0.34103124 y
j -0.0011736178
0.016617116
k
-0.038332685
0.020595997
0.32850961
z
Clculo de P3.
i
i 29.667613
= j -15.448105
-11.219508
0.33045915
P3 = P2 - A2* F HP2L
-67.005828 y i -96.673441 y
P3 = j 38.314935
31.690893
P3
z - j 53.763040
42.910401
{
z
{
y
z
......
.....
Nota: Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
177
Iteracin i = 10.
y
i 75.340243
F HP10L
=j
-85.146029
-3.5527137 10
-15
i -110.35308
y =F P
H
10
10L
-F P =
H
9L
-94.943726
j 7.1054274 10-15 z
k
i -4.7944161 y
j 9.8729439
s10 = P10 - P9 =
-5.0785278
i -0.023503588
A
10
= j 0.16673706
-0.14323347
k
i 10.140922
11
= j 9.5019446
k
11
0.35197622 y
-0.29778579
0.21997012
0.23573419
z
0.41228959
y i -8.3964610 y
-16.642867
0.077815667
P = P - A * F HP L
10
10
10
11
Clculo de P11.
P
= j -28.415343
12.877960
37.917288
z
-29.520827
i 18.537383
-j
Iteracin i = 11.
y
i 278.21922
F HP11L
=j
-793.89436
-2.1316282 10
-14
i 202.87898
y =F P
11
11L
-F P
H
10L
-708.74833
-1.7763568 10
k
i 8.3964610
j-37.917288
29.520827
i 0.024649010
A
11
= j -0.032593066
0.0079440555
k
-14
z
{
-0.0047911153 0.32425254 y
0.044169191
-0.039378075
0.35049776
z
0.32524970
178
P = P - A * F HP L y
11
11
11
12
Clculo de P12.
i18.537383
P
= k -28.415343
12
{ - k -44.133689
j
z
33.472221
y
12.877960
j
i7.8759151
P
= j 15.718345
12
i 10.661468
-20.594260
{
z
Tabla de datos.
Pi
i
j -5.0000000
j0z
0
-3.0000000
k i 25.
i 5.0000000 y
k 37.000000
{
j
-39.000000
k 38.314935
j 31.690893
i 29.667613
i 49.640098
4
-12.101120 z k
j-3.7330147
{
i 13.615493
-24.159488 z
jk -22.480610
{
i 18.834135
-15.448105 z
jk -11.219508
{
-12.445404 z
jk 1.8299106
{
i -8.9418766 y
i 16.237302
4491.0959
j -1540.0401
-13
-1.7053026 10
i 827.71915
k
j -213.97634
-12
-1.1652901 10
i 2402.9798
k
j -539.04078
-14
-1.4210855 10
305.62352
ki
j -132.60298
-14
1.5987212 10
i 135.93625
-5.9507478 z
jk -7.2865541
{
i 14.935338
72.0058
{ y
z
{
z
{
-14
5.56293
41.3227
50.4392
y
z
-3.1974423 10
k
30.806
y{
k -11.564339 {
19.9725
j -988.05163
-14
5.6843419 10
i 220.69922
j -0.37099930 z j -24.174097
96.6734
j -146.27258
-14
1.0658141 10
i 11.746425
k
i-1
-31.210731 z
jk 43.152608
{
39.
{
i k
25.000000
j -1369.0000
0
{
y
P -P
j -1369. z
0.
i -67.005828 y
2
F Pi
-37.000000 y
5.57975
179
i 10.140922
y i 185.69332
10 k 9.5019446
{ k 9.7976976
-14
z
j
-16.642867
j -1.0658141 10
i 18.537383
y i 75.340243
11 k -28.415343
j 12.877960
i 7.8759151
{ k -85.146029
-15
z j -3.5527137 10
y i 278.21922
12 k 15.718345
{ k -793.89436
z j
-20.594260
-14
-2.1316282 10
9.87294
z
y
37.9173
z
y
44.1337
P = 15.718345
12 j
zk
-20.594260 {
Problema26. Dadoelsiguienteproblemanolineal
2
CalcularlasolucinaproximadadelsistemaempleandoelmtododeCuasiNewton
comenzandoenelpunto:
H 0L
H 0L
P0=Ix 1 ,x 2 M =H1,1L ,
-6
eiterandohastaquePi+1-Pi510 .
Solucin
Clear@ecuaciones, m, p, dD;
ecuaciones = 83 x12 x22, 3 x1 x22
P0 = i
j
k
H0L
2
x0
-x3
1.
j
0
=i y
+ 3 x 2 x1 - 1
y=i
Lz
i 3 x1 - x2
fi x1, x2
=
j 1
H
L
0z
y
{
1.
k 6 x1
=i
j 3 x2
-2 x2
-
3 x1
{
y
6 x1 x2
180
Iteracin i = 0
F P0
=i
A0
2.0000000
j
1.0000000 z
i
= 0.166667
k
-1
0.0555556 y
0.166667 z
{
j0.
k
-1
Clculo de P1.
P
P1 = P0 - A0 * F HP0L
i
= 1.0000000 y - i
k
P1
0.38888889 y
j 0.16666667 z
j 1.0000000 z
i 0.61111111 y
j 0.83333333 z
Iteracin i= 1.
F P1 L
= i 0.42592593
j
0.044924554 z
kL
y1 = F P1
s1 = P1
- F P0
- P0 =
{
i -1.5740741
-0.95507545 z
j
k
i -0.38888889 y
j -0.16666667 z
k
0.079879390 y
0.16914509
z
{
A1 = i 0.19859170
j
0.0032529266
Clculo de P2.
P2 = P1 - A1* F HP1L
i
i
0.088173899 y
P2 = 0.61111111 y z
z
j 0.83333333
j
0.0089842734
k
i 0.52293721 y
j 0.82434906 z
Iteracin i= 2.
F P2 L
= i 0.14083861
j
-0.076916050
y2 = F P2
- F P1
H
s2 = P2
- P1 =
-0.28508732 y
-0.12184060 z
i -0.088173899 y
j -0.0089842734 z
k
A2 = i 0.26193264
j
-0.033174631
0.11080236 y
z
0.15136120
181
Clculo de P3.
P3
0.52293721 y -
P3
P3 = P2 - A2* F HP2L
0.82434906
i 0.49456946 y
k
0.028367749
-0.016314374
z
{
0.84066343
Iteracin i = 3.
F P3
H
H j
-0.072412185
L
y3 = F P3
i -0.11375676
- F P2
s3 = P3 - P2
= i 0.027081850
=
0.0045038649
= i -0.028367749 y
k
j
0.016314374
0.11010910 y
= i 0.25373143
k
-0.13777191
0.14251952
Clculo de P4.
P
P4
P4 = P3 - A3* F HP3L
-0.0011017241 y
= i 0.49456946 y - i
k
{ k -0.014051268
{
z
j
0.84066343
j
z
i 0.49567119 y
k
z
{
0.85471470
Iteracin i = 4.
F P4
H
= i 0.0065325540 y
H j
-0.035462661
L
y4 = F P4
- F P3
s4 = P4 - P3
i
= -0.020549296 y
j
0.036949524
= i 0.0011017241 y
k
j
0.014051268
0.15253000 y
A4 = i 0.22064925
k
-0.22542377
0.25491446
Clculo de P5.
P5 = P4 - A4* F HP4L
i
i
-0.0039677166 y
P5 = 0.49567119 y k
{ k -0.010512538
{
z
j
0.85471470
j
z
P5
=i
0.49963890 y
z
{
0.86522724
Iteracin i = 5.
F P5
H
= i 0.00029892374 y
-0.0026130772
182
y5 = F P5
s5 = P5
H L
- F P4
- P4 =
0.032849584
i -0.0062336302 y
k
i 0.0039677166 y
k
j
0.010512538
0.16185083 y
A5 = i 0.21640932
k
-0.23477381
0.27546909
Clculo de P6.
P6 = P5 - A5* F HP5L
i
-0.00035823882 y
P6 = 0.49963890 y - i
k
j 0.86522724 z
P6
-0.00079000147
i 0.49999714 y
j 0.86601724 z
k
Iteracin i= 6.
y
-6
F P6 = i 5.5633653 10
H
L H kj
z
-0.000025491707
L
y6 = F P6
s6 = P6
j 0.0025875855
- F P5
- P5 =
i -0.00029336038 y
i 0.00035823882 y
k
j
0.00079000147
0.16293201 y
A6 = i 0.21598585
k
-0.23598083
0.27855081
Clculo de P7.
P7 = P6 - A6* F HP6L
i
-6
P7 = 0.49999714 y - i
-2.9518069 10 y
k
P7
j 0.86601724 z
i 0.50000009 y
j 0.86602566 z
k
j -8.4135833
10-6 z
Iteracin i= 7.
F P7 = i -1.5392563 10-7 y
H
{
L k
j
7.9492530 10-7
z
i -5.7172909 10-6 y
y7 = F P7 - F P6
=
H
s7 = P7 - P6 =
H L
0.000026286632
2.9518069 10
-6
-6
kj
8.4135833 10 {
0.15961396 y
A7 = i 0.21756925
k
-0.23174163
0.26966745
183
Clculo de P8.
P8 = P7
-8
- A7* F HP7L 10 y
P8 = i 0.50000009 y - i 9.3391695
j 0.86602566 z j 2.5003645
k
P8
=i
10-7 z
{
0.50000000 y
0.86602541 z
Tabla de datos.
1.0000000 y
z
j
1.0000000
F Pi
2.0000000 y
j 1.0000000 z
i
j
k
0.84066343
i
j
0.85471470
j
k
0.86602541
-0.072412185
-0.035462661
-0.0026130772
0.0140513
0.0105125
z
{
0.000790001
-6
i 5.5633653 10
z j
z
-0.000025491707
k
j
{ k
8.41358 10-6
i -1.5392563 10-7 y
7.9492530 10
i 0.50000000 y
j
-7
i 0.00029892374 y
0.0283677
i 0.027081850
i 0.50000000 y
j
k
0.86602566
0.0881739
i 0.0065325540 y
k 0.50000009 {
7
-0.076916050
0.49999714 y
0.86601724
0.14083861
0.49963890 y
0.86522724
0.044924554
0.49567119 y
i-1
0.388889
0.0449246
i 0.42592593
0.49456946 y
i
k
0.82434906
i 0.425926
0.83333333
0.52293721 y
0.61111111 y
i
k
P -P
0.86602541 z
2.50036 10
z
{
-7
184
sistemas
deecuacionesnolinealesessurapidezdeconvergenciacuandosedisponedeunasolucin
aproximadasuficentementeprecisa.Lanecesidaddedisponerdedichaaproximacininicial
losuficientemeneprecisaparaasegurarlaconvergenciaes,portanto,unadebilidaddeestos
mtodos.ElmtododelaMximaPendienteconvergealasolucingeneralmenteslode
maneralineal,peroesdenaturalezaglobal,estoes,apartirdecasicadavalorinicialse
produceconvergencia,aunqueestosvaloresinicialesseandeficientes.Enconsecuencia,con
lselogranaproximacionesinicialessuficientementeexactasparalastcnicasquetienen
comobaseelmtododeNewton,delmismomodoqueelmtododelabiseccin
seutiliza
enunasolaecuacin.
ElmtododelaMximaPendientedeterminaunmnimolocalparaunafuncinde
varias variables de
la
forma
g:
El
mtodo
es
de
gran utiilidad
independientementedesuaplicacincomoprimermtodopararesolverlossistemasno
lineales.
Laconexinentreelproblemademinimizarunafuncinde
en
ylaresolucin
deunsistemadeecuacionesnolinealesresideenelhechodequeunsistemalinealdela
forma
f1Hx1,x2,...,xnL=0,
f2Hx1,x2,...,xnL=0;
185
..
..
..
fnHx1,x2,...,xnL=0,
tieneunasolucinen
gdefinidapor
p=(p1,p2,....,pn)justocuandolafuncin
n
gHx1,x2, ...,xnL
(31)
i=1
alcanzasuvalormnimoceroenp.
EnelmtododelaMximaPendienteparaencontrarunmnimolocaldeuna
funcincualquieragde
en
puededescribirsedemaneraintuitivacomosigue:
2
HL
I 1
Evaluarlafuncingenunaaproximacininicialp
H0L
pH0L
,p
,..., pn
0
t.
Determinarunadireccinque,desdepH0L,seorigineunadisminucindelvalorde
g.
Desplazarunacantidadapropiadahaciaestadireccinyllamaralnuevovector
pH1L.
H0L
Repetirlostrespasosanterioressustituyendop
H1L
porp
Antesdedescribircmoseleccionarladireccincorrectayladistanciaapropiada
que se recorre en dicha direccin, es preciso repasar algunos resultados del clculo
infinitesimal.
Teorema4. TeoremadelosValoresExtremos
Esteteoremaestablecequeunafuncindiferenciabledeunasolavariablepuede
tenerunmnimorelativoslocuandosuderivadaseacero.
186
Paraextenderesteresultadoalasfuncionesdevariasvariablessenecesitala
siguientedefinicin.
n
Definicin5. Sig:
,sedefineelgradientedegenx=(x1,x2,...,xnL ,
quesedenotacongHxLysedefinepormediode:
gHxL
I
=
HxL,
g
x1
HxL,....,
x2
g
xn
HxLM
Elgradientedeunafuncindevariasvariableseselanlogoaladerivadadeuna
funcindevariasvariablesenelsentidodequeunafuncindevariasvariablesdiferenciable
puedetenerunmnimolocalenunpuntoxslocuandosugradienteenxeselvectorcero.
Elgradientetieneotrapropiedadmuyimportanteenrelacinconlaminimizacinde
t
;esdecir,
v 2
(32)
= vi = 1
i=1
Definicin6.Laderivadadireccionaldegenxenladireccin
de
DvgHxL = limh0
vestdefinidapor
h @ gH x
Laderivadadireccionaldegenxenladireccinde
vmidelavariacinde
valoresdelafuncingconrespectoaloscambiosdesuvariableenladireccindev.
187
los
Cuandogesunafuncindedosvariables
Figura2
Unresultadoestndardelclculoinfinitesimaldelasfuncionesdevariasvariables
establecequesilafuncin gesdiferenciable,ladireccinenlaqueseobtieneladerivada
direccionaldemayortamaoseobtienecuandovesparaleloalgradientegHxL,siemprey
cuandogHxL0.Enconsecuencia,ladireccindelamximadisminucindelosvalores
degdesdexesladireccindadaporgHxL.
Puesto que el objetivo es reducir gHxL a
cero, dada
la
su
valor
mnimo
de
aproximacininicial p ,setoma
1
p =p - az
paraalgunaconstantea >0,dondez
0
gH
esdecir,z
HL
p H0L
H0L
eselvectorunitarioenladireccindelgradiente,
(33)
HL
0
pHL
Elproblema,entonces,sereduceaescogerunvalordeademaneraquegHp
188
H1L
Lsea
significativamentemenorquegHp L.Sisequieredeterminarunaeleccinapropiadadel
valordea,considerenselafuncindeunasolavariable
0
(34)
hHaL=gHp - az L.
Elvalordeaqueminimizaheselvalorqueserequiereenlaecuacin(33).
Paraobtenerdirectamenteunvalormnimodehserequierederivarh,yluego
resolverunproblemadeclculoderacesparadeterminarlospuntoscrticosdeh.Este
procedimientoesgeneralmentedemasiadocostosoentrminosdeclculosnecesarios.Por
elloseseleccionantrespuntosa1
a3 que,seespera,estncercadedonde h HaL
a2
alcanzasuvalormnimo.Acontinuacin,seconstruyeelpolinomiodesegundogradoPHxL
`
queinterpolahena1,a2ya3.Tomamosunvaloraen
@ a1 , a 3 D
`
talquePHaLseael
mnimodeha.
H L @ D H L H L mnimodePxena1,a3yusandoPacomoaproximacindelvalor
`
eselvalorqueseutilizaparadeterminarlanuevaiteracinenla
Entoncesa
bsquedadelvalormnimodeg:
(35)
`
pH1L = pH0L - a zH0L.
H0L
ComoyasedisponedegHp
L,parareducirelesfuerzocomputacionalenloposible
elprimerpuntoqueseescogeesa1=0.Acontinuacin,setomaunpunto
a3 talque
hHa3L hHa1L.(Dadoquea1noeselmnimodeh,dichonmeroa3siexiste).Finalmente
sedecidequea2seaiguala 3.
a
2
`
ElpuntoadondesealcanzaelvalormnimodePHxLen@a1,a3Deselnicopunto
crtico
PHa3L
dePoelpuntoextremoderechodelintervaloa3porque,porsuposicin,
puntocrticosepuededeterminarfcilmente.
189
7.2 Pseudocdigo
Algoritmo6.MtododelaMximaPendienteparastemassinolineales
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolinealesde
necuacionesconnincognitasmedianteelmtododelaMximaPendiendees:
Algoritmo Mxima Pendiente
Input
1
I8
H
L<
H
LL
H0L
px
H0L
...
0 L
L
xm
..., x
F8f Hx1,
n
n L<1
For k = 1, ..., n
do
F2
g1 H p k-1 ,
i=1
p k-1
k-1
g H
2
g0
k
, ..., p k-1
, ..., H
k-1
p1
, p2
H
2
g1
x1
HxL
HxL
gradiente
x2
...
zy
gradiente
j
x1
gradiente1
Hk-1L
..., pn
k-1
, ...,
pn
z0
a1
g1
p3
g0
p - a3. z
k-1
z
Hk1L
,
gradiente
i =1 z
If Hz0 = 0L do
Break
End
xn
I1
z0
... L
H
p k-1 ,
p1
x x1,
gn
x2
................
... L
HxL
g2
... ....
gn
j gn
i
HxL
x1
a3
x n
g2
HxL y
g1
g2
z
n
HxL
x2
L{
...,
g1
LL
p k-1
. . . . . . . . . . . . . . . .+
1
+ y
+
...,
p n k-1
LM
{
..., xn
LL
190
..., p3 k-1 L +
n
L+
,
...,
Hk-1L
Hk-1L
k-1
, p32
g2 p3Hk-1L,
p3
g1 H p31
H
k-1
p3n
. . . . . . . . . . . . . . . .+
k
g
j
n
p31Hk-1L, p32Hk-1L
While (g3 g1) do
H
, ..., p3n
Hk-1L
L{
a3
a3
p3p - a3. z
i g1 H p3
H
g3
g
k-1
p3Hk-1L, p3
k-1
p32
1k-1 ,
Hk-1L
L+ y
+
, ..., p3n
, ..., p3n
Hk-1L
L
k . . . . . . . . . . . . . . . .+
L{
g
j
n p31Hk-1L,
p32Hk-1L , ..., p3nHk-1L z
If Ha3 error 2L
do
Break
End
H
End
a3
a2
p2p - a2. z
i g1 H p21k-1 ,
g2
g H
Hk-1L
p2
, p2Hk-1L ,
k
j
k-1
p22
k-1
, ..., p2n
L+
L
...,
+
Hk-1L
p2n
. . . . . . . . . . . . . . . .+
H
p21Hk-1L,
gn
Hk-1L
p22
,
...,
Hk-1L
z
p2n
g2 - g1
h1
a
g3 -2g2
h2
a3 - a2 h2 h1
h3
a3
a2 - h1
a0
0.5
h3
p0p - a0. z
k-1
i g1 H p01 ,
H
g0
g
Hk-1L
p0
k
j
k-1
p02
p0
Hk-1L
2
k-1
, ..., p0nHk-1L
. . . . . . . . . . . . . . . .+
H
gn
If (g0 g3) do
a
a0
Else
a
a3
End
p01
Hk-1L
Hk-1L
, p02
L+ y
+
, ...,p0n
L{
, ..., p0nHk-1L z
p1
, p1
. . . . . . . . . . . . . . . .+
p11Hk-1L, p12Hk-1L
p1n
, ..., p1n
Hk-1L
z
L{
191
Return Hx
HpL L
Output
7.3 Problemas
Problema27. Seaelsistemanolinealdeecuacionessiguiente:
f1Hx1,x2,x3L=3x1-cosHx2x3L-12=0,
2
2
f2Hx1,x-x2,xx3L=x 1-81Hx2+0.1L +senx3+1.06=0,f3Hx1,x2,
x3L=e 1 2+20x3+H10p -3L 3=0.
MedianteelmtododelaMximaPendientecalcleselaaproximacindela
solucin,comenzandoenelpuntoinicial
H 0L
H 0L
H 0L
P0=Ix 1 ,x 2 ,x 3 M =H0.0,0.0,
-5
0.0L eiterandohastaquePi+1-Pi10 .
T
Solucin
Clear@ecuaciones, p, m, dD; ecuaciones
= 83 x1 Cos@x2 x3D 1 2,
x21 81 Hx2 + 0.1L2 + Sin@x3D + 1.06,
<;
d = 10. ; maximapendiente@ecuaciones,
p, m, dD;
H0L
i x1
P0 = x2
k
H0L
j x3H0L
20 x3 +
i 0. y
-x1 x2
{ = 0.
k
z
{
0.
3 x1 -
192
1.6
=j0z
10
{ k
Iteracin i = 1.
z = k -0.0193062
j 0.999583
a1 = 0
{
z
g1 = 111.97477
1
a2 = g2 = 2.5355746 2
a3 = 1 g3 = 93.564865 h1 =218.87839
h2 = 182.05858 h3
= 400.93697 a0 =
0.52295860
Clculo de P1. 0
i
P1 = P0 - a0 * z
i -0.021451362 y
P1 = k0 { - 0.52295860 * k -0.019306226 {
j
j 0z
z
0.99958347
i 0.011218174 y
P1
= j0.010096357
-0.52274077
Iteracin i = 2.
z = i -0.506566
k 0.862197
a1 = 0
1
a2 =
8
1
=
a
-0.00272543
g1 = 2.3276167
= 1.9473462
g2
g3
= 1.2740584
4
h1 =-3.0421633
h2 = -5.3863024
h3 = -9.3765564
a0 = -0.099721780
Clculo de P2.
P2 = P1 - a0 * z
= i 0.011218174 y - -0.099721780 *
P2
k0.010096357 {
z
j
-0.52274077
i0.13785971
y
P = k-0.20545284 {
2
z
j
-0.52205942
i -0.50656615 y
k 0.86219679
z
j -0.0027254284
193
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
Iteracin i = 11.
i -0.767783 y
z = j -0.105224 z
0.632011
k
{
a1 = 0
g1 = 0.21743968
1
a2 =
g2 = 0.19963276
128
1
a3 =
g3 = 0.20237438
64
h1 =-2.2792858
h2 = 0.35092709
h3 = 168.33362
a0 = 0.010676394
Clculo de P11.
P =P
11
i 0.34574628
- a0 * z
10
i -0.76778282 y
P11 = k -0.0090339826
j -0.52094100
i 0.35394344
P11 = k -0.0079105665
j -0.52768860
- 0.010676394 * k -0.10522430
194
0.63201059
Clculo de P12.
P12 = P11 - a0
i 0.35394344
- 0.0084724641 * k 0.051484847
z
y
-0.52768860
i 0.35935658
P12 = k -0.0083467701
i -0.63891083 y
P12 = k -0.0079105665
j
*z
-0.52118551
{
z
Tabla de datos.
i Pi
0. y
k 0. {
g Pi
P -P
i
i-1
j 0. z
0.011218174 y
1
k 0.010096357
-0.52274077
i 0.13785971
k -0.20545284
-0.52205942
-0.55849445
i 0.27273377
4
0.215549
1.0681309
0.210964
0.46830873
0.0364884
0.38108714
0.0359555
0.31883720
0.0121882
0.28702361
0.00995849
0.26157926
0.00776848
0.23848640
0.00899981
j -0.0081175097
-0.52200607
0.30868928
ki
k -0.020402628
j -0.53311162
i 0.31430818
k -0.014704639
1.2740584
k 0.0055110205 {
j
0.522741
i 0.26695943
3
2.3276167
-0.52092340
{
z
i 0.32426667
k -0.0085254888
j -0.52843083
i 0.33080876
k -0.0096784838
j -0.52066235
i 0.33980857
k -0.0085919751
-0.52808019
-0.76755603
195
10
11
12
i 0.34574628
k -0.0090339826
j -0.52094100
i 0.35394344
k -0.0079105665
j -0.52768860
i 0.35935658
k -0.0083467701
0.21743968
0.00713919
0.19825170
0.00819715
0.18076240
0.00650309
y
z
-0.52118551
P12 = k -0.0083467701
{
z
-0.52118551
Problema28. Dadoelsiguienteproblemanolineal
2
Pendientecomenzandoenelpunto:
H 0L
CalcularlasolucinaproximadadelsistemaempleandoelmtododelaMxima
H 0L
P0=Ix 1 ,x 2 M =H1,1L ,
eiterandohastaquePi+1-Pi0.05.
Solucin
Clear@ecuaciones, m, p, dD;
ecuaciones = 83 x12 x22, 3 x1 x22
x13 1<; d = 0.05;
p = 81.0, 1.0<;
m = 12;
maximapendiente@ecuaciones, p, m, dD;
Mtodo de la Mxima Pendiente para sistemas de ecuaciones no lineales.
fi x1, x2
H
i 3 x12 - x22
-x3 + 3 x 2 x1 - 1
0
=i y
k
j
P0 =
i x1
j
k
H0L
2H
y = i 1. y
k
Lz
j 1. z
Iteracin i = 1.
z=
i 0.986394 y
k
j 0.164399
a1 = 0
g1 = 5.0000000
196
a = 1
2
= 0.027823883
2
2
a3 = 1
g3 = 1.4305648
h1 =-9.9443522
h2 = 2.8054818
h3 = 12.749834
a0 =0.63997967
Clculo de P1.
P1 = P0 - a0 * z
0.98639392
1.0000000
y
P1 = i
y
- 0.63997967 * i
j1.0000000 z
k
0.16439899
z
{
0.36872794 y
P1
=i
j0.89478799 z
Iteracin i = 2.
z=
i -0.953737 y
j 0.300642
a1 = 0
g1 = 0.18131486
1
a2 =
g2 = 0.055627387
16
1
a3 =
g3 = 0.0020652593
8
h1 =-2.0109996
h2 = -0.85699404
h3 = 9.2320449
a0 = 0.14016410
Clculo de P2.
P2 =
P2 = P1 - a0 * z
0.36872794
0.89478799
P2 = i
0.50240762
y - 0.14016410 * i
j
Iteracin i = 3.
z=
0.30064233
0.85264873 z
-0.941722
a1 = 0
g1 = 0.0018778891
1
a2 =
g2 = 0.00034772833
128
1
a3 =
g3 = 0.00011818906
64
=-0.19586058
h1
h = -0.029381027
2
h = 10.654691
a = 0.013097534
0
197
-0.95373696
y
z
{
Clculo de P3.
P3 = i
0.50240762
P3
0.33639266 y
P3 = P2 - a0 * z
0.85264873
y - 0.013097534 * i
-0.94172182
i 0.49800170 y
k
0.86498296
Tabla de datos.
g Pi
P -P
0.18131486
0.631272
0.0018778891
0.13368
0.000049941580
0.0123342
j Pi
1.
0
1
0.36872794 y
0.89478799
0.85264873
{z
0.49800170 y
{z
0.50240762 y
k
j
i-1
i 1. y
i
k
j
0.86498296
= i 0.49800170 y
k
0.86498296
Problema29. Seaelsistemadeecuacionesnolinealessiguiente.
f1Hx1,x2L
f2Hx1,x2L
x+1 4x2+8=0,
2-
4x1
202
= 1 2 x1 x2
+ 2 x1 - 5 x2 + 8 = 0.
AplqueseelmtododelaMximaPendienteiniciandoelmtodoenelpunto
T
-3
inicialP0= I xH0L , xH0L T =
0,0 eiterandohastaque
Pi+1-Pi10 .
1
2 M
Solucin
Clear@ecuaciones, p, m, dD;
ecuaciones = 84 x21 20 x1 + 1 4 x22 + 8, 1 2 x1 x22 +
2 x1 5 x2 + 8<; p = 80., 0.<;
m = 12;
3
d = 10. ; maximapendiente@ecuaciones,
p, m, dD;
198
x H0L
P0 = i
j x
k
2H
0.
{ k
Iteracin i = 1.
z=
xx
0.
y=i
0 Lz
{
Siendo gx = g HP0 - ax *zL
i -0.963518 y
j
-0.267644
a1 = 0
g1 = 128.00000
1
a2 =
g2 = 78.052191
4
1
a3 =
g3 = 69.362062
2
h1 =-199.79124
h2 = -34.760519
h3 = 330.06143
a0 = 0.42765765
Clculo de P1.
P1 =
P1 = P0 - a0 * z
i 0y
j 0
k
P1 =
- 0.42765765 *
-0.96351791 y
j
-0.26764386 z
i 0.41205580 y
j 0.11445995 z
Iteracin i = 2.
z=
i 0.219477
j
-0.975618
a1 = 0
g1 = 68.331716
1
a2 =
g2 = 37.708968
2
a3 = 1
g3 = 30.400880
h1 =-61.245494
h2 = -14.616176
h3 = 46.629319
a0 = 0.90672732
Clculo de P2.
P2 =
P2 = P1 - a0 * z
i 0.41205580 y
j
0.11445995
P2 = i
- 0.90672732 * i
0.21305005
j 0.99907915 z
199
0.21947696
-0.97561768
z
{
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
Iteracin i = 11.
z=
i
j
-0.130288
a1 = 0
g1 = 0.094572826
1
=
a2
g2 = 0.056358058
128
1
a3 =
g3 = 0.050221940
64
h1 =-4.8914903
h2 = -0.78542310
h3 = 262.78830
a = 0.013213153
Clculo de P11.
11
j
Iteracin i = 12.
z=
1.9381709
1.9398924 z
{
i 0.128357
j
-0.991728
-0.99147625 y
i 0.49346423 y
11
P11 = P10 - a0 * z
- 0.013213153 * i
i 0.48036371 y
a1 = 0
g1 = 0.048714444
a = 1
g2 = 0.029799005
2
64
1
a3 =
g3 = 0.025321504
32
h1 =-1.2105881
h2 = -0.28656006
h3 = 29.568897
a0 = 0.028283133
200
-0.13028754
Clculo de P12.
12
i 0.49346423 y
1.9398924
12
0.12835716 y
P12 = P11 - a0 * z
- 0.028283133 *
i 0.48983389 y
k
1.9679416 z
{
Tabla de datos.
i
j Pi
P -P
g Pi
i-1
0. z
0
1
i 0. y
i
k
j
k
j
k
j
1.0468405
{
z
1.5154867
{
z
1.5337223
{
z
1.7618942
{
z
1.7694624
15.081622
0.216965
6.6372618
0.468646
3.2594559
0.10804
1.5149149
0.228172
0.75130795
0.0525745
0.36833775
0.110292
0.18677298
0.0259266
0.094572826
0.054916
0.048714444
0.0131005
0.025059163
0.0280492
{
z
1.8797549
{
z
i 0.48759235 y
1.8832549
{
z
i 0.48036371 y
1.9381709
{
z
i 0.49346423 y
k
j
12
0.884619
i 0.46166580 y
k
j
11
0.99907915
i 0.47660783 y
k
j
10
29.900339
i 0.42403332 y
k
j
0.11445995
i 0.45719044 y
k
j
0.412056
i 0.34915086 y
k
j
68.331716
i 0.43001490 y
k
j
i 0.21305005 y
k
j
0.41205580 y
1.9398924
{
z
i 0.48983389 y
j 1.9679416
k
12
= i 0.48983389 y
k
1.9679416
Problema30. Seaelsistemadeecuacionesnolinealessiguiente.
3
f2Hx1,x2,x3L=
x1
x2
- x3 = 0.
201
{
-0.99172801
f3Hx1,x2,x3L=x2 -2x1x3-4=0
AplqueseelmtododelaMximaPendienteiniciandoelmtodoenelpuntoinicial
H 0L H 0L H 0L T
-3
T
P0=Ix 1 ,x 2 ,x 3 M =H0,0,0L eiterandohastaquePi+1-Pi10 .
Solucin
Clear@ecuaciones, p, m, dD;
ecuaciones =
8x13 + x12 x2 x1 x3 + 6, Exp@x1D + Exp@x2D x3, x22 2 x1 x3
4 <; p = 80., 0., 0.<;
m = 11;
3
d = 10. ; maximapendiente@ecuaciones,
p, m, dD;
j x3H0L
j 0. z
Iteracin i = 1.
z = i 0.57735
k 0.57735
-0.57735
0
a1 =
g1 = 56.000000
1
a2 =
g2 = 51.950093
2
a3 = 1 g3 = 44.681337 h1 =8.0998132
h2 = -14.537512 h3
= -6.4376990 a0 =
-0.37909225
202
P1 = P0 - a0 * z
Clculo de P1. 0 y
i
i 0.57735027 y
j 0z
P1 =
- -0.37909225 *
j 0.57735027 z
-0.57735027
i -0.57735027 y
P1 = j -0.57735027
0.57735027
k
Iteracin i = 2.
i 0.870989
z
{
z = j 0.488866
z
-0.0488764
k
{
a1 = 0
g1 = 44.681337
1
= 26.822977
a2 =
g2
2
a3 = 1
g3 = 3.7672550
h1 =-35.716720
h2 = -46.111444
h3 = -10.394724
a0 = -1.4680216
Clculo de P2.
P2 =
P2 = P1 - a0 * z
i -0.57735027 y
i 0.87098854
j -0.57735027
0.57735027
k
i -1.4483388 y
j 0.48886610 z
z - -1.4680216 *
-0.048876375
j -1.0662164z
P2 =
0.62622664
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados.
Iteracin i = 10.
i 0.197815 y
z = j 0.792089
z
0.577464
k
a1 = 0
{
g1 = 0.076466169
203
1
512
1
256
h1 =-0.13479007
h2 = -0.032479521
h3 = 26.191500
a0 = 0.0035497268
Clculo de P10.
10
0.076202907
g3 =
0.076139470
P10 = P9
i -1.6018808 y
k
-1.2159095
- a0 * z
- 0.0035497268 * k 0.79208850
j 0.76653403
i -1.6025830 y
10
-1.2187212
0.57746421
0.76448419
Iteracin i = 11.
i 0.19781530 y
z = i -0.979351 y
k 0.134292 {
j
z
0.151118
a1 = 0
a2 =
a3 =
g1 = 0.076136123
g2 = 0.075875516
1024
1
512
h1 =-0.26686133
h2 = -0.064992483
h3 = 103.35685
a0 = 0.0017792520
Clculo de P11.
11
g3 =
P11 = P10 - a0 * z
i -1.6025830 y
k
-1.2187212
j 0.76448419
i -1.6008405 y
11
Tabla de datos.
0.075812047
-1.2189601
0.76421531
- 0.0017792520 * k 0.13429208
j
i -0.97935138 y
0.15111754
204
i Pi
g Pi
P -P
i
i-1
0. y
k 0. {
j 0. z
i -0.57735027 y
-0.57735027
j
44.681337
0.57735
3.7672550
0.870989
0.50260503
0.162077
0.087293876
0.133966
0.078795780
0.00798413
0.077600212
0.010362
0.077169875
0.00193956
0.076799239
0.00280755
0.076466169
0.0017497
0.076136123
0.0028117
0.075808948
0.00174251
0.57735027
ki
-1.4483388 y
k -1.0662164 {
j
i
3
i
5
i
7
i
9
0.77025559
-1.6028310 y
{
0.76968974
-1.6036305 y
{
0.76688219
-1.6018808 y
{
0.76653403
-1.6025830 y
k -1.2187212
j
11
0.76777778
-1.6047705 y
k -1.2159095
j
10
k -1.2157250
j
-1.6056229 y
k -1.2134452
j
0.76672218
k -1.2134686
j
-1.6136071 y
k -1.2031066
i
0.63275609
k -1.2043419
j
-1.6104162 y
k -1.1248900
j
0.62622664
0.76448419
-1.6008405 y
k -1.2189601
0.76421531
P = -1.2189601
11 j
zk
0.76421531 {
205
Problema31. Seaelsistemadeecuacionesnolinealessiguiente.
2
f1Hx1,x2xL=lnHx
1+x 2L-senHx1x2L-Hln2+lnpL,f2Hx1,
-x
x2L=e 1 2+cosHx1x2L=0.
AplqueseelmtododelaMximaPendienteiniciandoelmtodoenelpunto
H 0L H 0L T
T
inicialP0=Ix 1 ,x 2 M =H2,2L .eiterandohastaquePi+1-Pi0.05.
Solucin
Clear@ecuaciones, p, d, mD;
ecuaciones =
8 Log@x21 + x22D Sin@x1 x2D HLog @2D + Log
@PiDL, Exp@x1 x2D + Cos@x1 x2D<;
p = 82.0, 2.0<;
m = 10;
d = 0.05; maximapendiente@ecuaciones,
p, m, dD;
x -x
2
2
fi x1, x2 = k logHx1 + x2 L - sinHx1 x2L - logHpL - logH2L { =k 0 {
P0 =
H0L
i x1 y
j
Lz
+1
y
{
j 2. z
Iteracin i = 1.
z=
2.
=i
{
cos x1 x2
i 0.803444 y
k
0.595381
a1 = 0
1
a2 =
4
1
=
a
g1 = 1.1166993
g2 = 0.061876723
2
h1 =-4.2192905
h2 = 0.96455364
h3 = 10.367688
a0 = 0.32848270
g3 = 0.30301513
0.80344369 y
P1 = P0 - a0 * z
i
P1 = i 2.0000000 y
- 0.32848270 *
Clculo de P1.
k
j
P1
2.0000000
j 0.59538075 z
= i 1.7360826 y
j
k
1.8044277
206
Iteracin i = 2.
z=
0.393489
a1 = 0
1
a2 =
64
1
=
a
g1 = 0.0044813455
g2 = 0.0022525436
g3 = 0.0014992209
32
h1 =-0.14264333
h = -0.048212650
2
h3 = 3.0217816
a0 = 0.031415020
Clculo de P2.
P2 =
P2 = P1 - a0 * z
- 0.031415020 * i
i 1.7360826 y
k
P2
1.8044277
i 1.7648117 y
k
1.7921312
-0.91932918 y
0.39348934
Tabla de datos.
i
j Pi
0
1
i-1
i 2. y
i
1.7360826 y
k
j
P -P
g Pi
2.
1.8044277
1.7648117 y
0.0044813455
0.263917
0.0014992209
0.028729
{z
1.7921312
=i
1.7648117 y
1.7921312
Problema32. Seaelsistemadeecuacionesnolinealessiguiente.
f1Hx1,x2L=senH4px1x2L-2x2-x1=0,
2x
207
Clear@ecuaciones, p, m,
dD; ecuaciones = 8
Sin@4 Pi x1 x2D 2 x2 x1,
HH4 Pi 1L H4 PiLL HExp@2 x1D EL + 4 E Hx2L2 2
E x1<; p = 80.0, 0.0<;
m = 2;
d = 0.005; maximapendiente@ecuaciones,
p, m, dD;
fi x1, x2
4 x - 2 x1 +
j x
k
H0L
y=i
j
0
2H L z
0.
0.
1
4p
a1 = 0
g1 = 2.5012856
1
a2 =
g2 = 0.40421324
4
1
a3 =
g3 = 0.55793456
2
h1 =-8.3882892
h2 = 0.61488529
h3 = 18.006349
a0 = 0.35792588
Clculo de P1.
P1 =
i0
j
k
P1 =
P1 = P0 - a0 * z
y
- 0.35792588 *
i 1.0000000 y
j0
z
{
i -0.35792588 y
j 0
Iteracin i = 2.
i
z = 0.0531923 y
j -0.998584 z
k
a1 = 0
1
a2 =
32
1
a3 =
16
g1 = 0.13938957
g2 = 0.032290159
g3 = 0.0042365080
h1 =-3.4271812
208
z
{
i 1. y
j
-+
HLH L
Iteracin i = 1.
z=
0.
-1 + 4 p
2x
P0 = i
i sinH4 p x1 x2L - x1 - 2 x2
i0 y
j
h2 = -0.89771682
h3 = 40.471430
= 0.057965747
a0
Clculo de P2.
P2 = P1 - a0 * z
i
-0.35792588 y
- 0.057965747 *
=i
P2
-0.36100921 y
=i
k
z
{
0.057883685
Tabla de datos.
i
j Pi
g Pi
0.
P -P
i
i-1
i 0. y
k
j
1 i
-0.35792588 y
2 i
-0.36100921 y
0.057883685
0.13938957
0.357926
0.0033164212
0.0578837
-0.36100921 y
0.057883685
0.053192294 y
{
-0.99858429
209
8. Mtodo de Continuacin u
Homotopa
8.1 Introduccin
LosmtodosdeContinuacin,uHomotopa,parasistemasnolinealesconsistenen
sumergirelproblemaquedeberesolversedentrodeunafamiliaadecuadadeproblemas.
Especficamente,pararesolverunproblemadelaforma
(36)
FHxL=0
*
cuyasolucin x esdesconocida,considreseunafamiliadeproblemasquesedescriben
medianteunparmetrolquetomavaloresen@0,1D.Al =0lecorrespondeunproblema
cuyasolucin x(0)esconocida,mientrasqueelproblemacuyasolucin
x(1)x se
desconoceycorrespondeal =1.
Porejemplo,suponiendoquex(0)esunaaproximacininicialdelasolucin
FHxL=0.
n
Definicin7.SedefineG:@0,1D
x de
mediante
GHl,xL=0.
Cuandol=0,laecuacinqueresultaes
0=GH0,xL=FHxL-FHxH0LL,
210
(38)
delacualx(0)esunasolucin.Cuanol=1,laecuacinqueresultaes
(39)
0=GH1,xL=FHxL,
*
delacualx(1)=x esunasolucin.
Lafuncin
podran
G,atravsdesuparmetrol,proporcionaunafamiliadefuncionesque
*
guiardesdeelvalorconocidox(0)hastalasolucinx(1)=x .
Sedicequela
GHl,xL=0,
0 l 1<puedeversecomounacurvaenn
paracadal @0,1D.Elconjunto8xHlL
parametrizadaporl,quevadesdexH0LhastaxH1L= *
x .ConelmtododeContinuacinse
m
alolargodeestacurvaquecorrespondena
determinanunasecuenciadepuntos8xHlkL<k =0
l0 = 0
l1
...,
lm = 1.
Silasfuncionesl xHlLyGsondiferenciables,entoncesderivandolaecuacin
GHl,xL=0conrespectoalseobtiene
H
0=
G
l H LL
l, x
H LL xH L ,
x
G
l, x
211
(41)
l
x HlL
- A G H l, x l
-1
l, x l ,
H LL
=
queesunsistemadeecuacionesdiferencialesconcondicininicial xH0L.
H LL E
(42)
(43)
Puestoque
sepuedendeterminartantolamatrizjacobiana
i
x1
H x H LL
f1
l,
H LL
fn
f2
x l
H LL .......
...
l
H H LL
x l
x
H H LL
x l
fn
x1
como
x2
Hx H LL y
xn
f1
...
f2
x2
H LL
x1
Hx H LL
f1
H LL
xn
f2
fn
= Jx
H H LL
...
x l
H H LL {
(44)
x l z
xn
x2
H H LL
l
G l,x
Fx0.
(45)
H LL
Portanto,elsistemadeecuacionesdiferencialesresultaser
-1
(46)
para0 l 1,
conlacondicininicial xH0L.
de
Continuacinpuedellevarseacabo.
Teorema5.ConvergenciadelMtododeContinuacin
SuponiendoqueFHxLesdiferenciableconcontinuidadparax
quelamatrizjacobianaJHxLesinvertibleparatodox
212
.Suponiendo
yqueexisteunaconstanteM
talqueJHxL M,paratodox
.EntoncesparacualquierxH0Len
,existe
unanicafuncinxHlLtalque
GHl,xHlL L=0,
paratodolen@0,1D.Adems,xHlLesdiferenciableconcontinuidady
-1
dx1
dl
= f1
dx2
dl
Hl ,
= f2
x1, x2,
...., x L,
n
..
(47)
..
..
Hl ,
dxn
dl
= fn
x1, x2,
...., x L,
n
donde
x L y
f1 H l, x1, x2,...., n
i H l, x1, x2,...., xn L = -J
f2
L
k H
{
f Hx H0L L y
1
x1, x2,....,xn
...
fn
l, x1, x2,...., xn
-1 i
f2
k
j
fn
.
(48)
Hx H0L L
H ...
LL {
0
ParautilizarelmtododeRungeKuttadeorden4enlaresolucindeeste
n
setomaunnmeroenteron>
1-0
HL
0ysedefineh= .Sedivideelintervalo0,
subintervaloscuyosextremossonlosnodos
l j = jh,
sistema
paracadaj=0,1,
213
..., n.
D
1enn
(49)
Sevaadenotarporwij,paracadaj=0,1,...,nei=1,2,...,n,laaproximacinde
xi(lj).Deacuerdoconlascondicionesiniciales,setoma
w1,0=x1H0L, w2,0=x2H0L,
(50)
wn,0=xnH0L.
aproximacionesw1,j+1,w2,j+1,..,wn,j+1mediantelasexpresiones
k
k
1,i
2,i
1,j 2,j
= h fi Jl j
= h fi Jl j + h , w
+ 1
1,j
3,i
4,i
1,j
k ,w
+ 1
k ,w
+ 1
1,1
2,1
k , ..,wn,j +
2,j
1,2
= 1,2,..., n;
j
i = 1,2,
(51)
n,j+ 3,nL
...,n;
= w
i,j+
i,j+1
+ k3,2, ..,
k1,nN,
2,2
+ 1 k N,
2,n
k , ..,wn,j
2,j
= h fi Hl + h, w1,j+k3,1,w2,j
y,finalmente
+ 1
2
...,n;
i = 1,2,
...,n;
i=1,2,
= h fi Hl j, w , w , ..,wn,jL,
1 k + 2 k + 2 k +k ,
H 1,i
2,i
3,i
4,iL
i =
1,2,...,n.
(52)
Utilizandolanotacinvectorial
ik y
ik
1,1
k 1=
1,2
,k 2 =
2,2,
... {
k ... {
k1,n
1,j
ik y
2,1
iw
w =
k2,n
ik
3,1
,k
3,2
y
4,1
4,2
k ...
k ... {
k3,n
k4,n
1,j.
...
k wn, j {
parasimplificarlapresentacin.
Laigualdad(48)daxH0L=xHl0L=w0y,paracada j=0,1,...,n.
(53)
214
Finalmente,xHlnL=xH1Les
l j, w1, j, w2, j,.., wn, j
f1
i
k1 = h f2
k
j
k2
...
l j, w1, j, w2, j,.., wn, j
fn
L{
z
-1
-1
FHxH0LL;
-1
FHxH0LL;
k3
Ly
J j + 2 2NE
= -
-1
k4 = h @- J Hw j + k3LD
-1
FHxH0LL.
y
xHlj+1L=
xHljL+ 1 Hk1 + 2k2 + 2k3 + k4L = w
Hk1 + 2k2
FHxH0LL;
+ 2k3+k4L.
(55)
8.2 Pseudocdigo
Algoritmo7.MtododeContinuacinuHomotopaparasistemasnolineales.
Elpseudocdigodelalgoritmoqueresuelveunsistemadeecuacionesnolinealesde
necuacionesconnincgnitasmedianteelmtododeContinuacinuHomotopa es:
f x1
M4
h
p
0
1 n
H
H 1L 2H
L
x
F8f Hx1,
xH0L
xH0L
n
...
L L
LL
xn0
x m0
..., xn L<1
215
, nM
HxL
f1
HxL
f1
x 1
x n
HxL f2
f2
J x
x1
L.
{H
fn
x1
HH
0L
...,
H
p
L{
For k = 1, ..., n
k H . . . . . . . .1 . . . . . .H .L .
LL
0
0
p2 , ..., pn L
p1 , p2n
..., xn
xn
0
f1 H p1 ,
x2
x x1,
H
HL
fn
fn
f_valor
... ....
L.
.
.
.
.
HxL
x2
k .
.
.
HxL
f2
HxL y
f1
x2
, ...,
z
n
do
11
j_valor
pHk-1L,
1
k
j
k-1
1n
k-1
j21
H
k-1
...
k-1 L
pn
H
...
L ...
L
2n
...
..., pn
k-1 L
H
H
L
L L{
z
...,
nn
..., p nk -1
p n k-1
Hk1L
-1
pHk-1L ,
...
n1
Hk1L
...,
L Ly
k-1
* f_valor
k1h * Hj_valorL
p_auxp
p_intp_aux +
k1
2
L
H j_valor
j
j
11
p_int
Hk-1L
, ..., p_int
Hk-1L
..., p_int
Hk-1L
L
.
.
.
Hk-1L
p_int 1
j
... j
p_int
21
..., p_int n
... j1 n
Hk-1L
Ly
.
.
.
Hk-1L
p_int
Hk-1L
p_int Hk-1L
Hk-1L
...,p_int Hk-1L
H.
... j
L{
.
.
p_int 1
nn
Hk-1L
...,p_int Hk-1L
n
z
jn 1
-1
k2h * Hj_valorL
p_intp_aux +
j
j
1
11
p_int
jn 1
Hk-1L
.
.
.
p_int Hk-1L
Hk-1L
-1
p_int Hk-1L
2n
L ..
p_int 1
Ly
1
p_int
21
Hk-1L
k
j
* f_valor
k2
H j_valor
p_int
2n
...,
H.
L{
.
.
p_int 1
Hk-1L
Hk-1L
, ..., p_int n
j
j
k
1
11
Hk-1L
Hk-1L
.
.
.
H.
L ..
Hk-1L
Ly
p_int
21
p_int
p_int 1
j
H j_valor
... j
L{
.
.
nn
p_int 1
Hk-1L
Hk-1L
, ..., p_int n
jn 1
216
-1
h * Hj_valorL
* f_valor
p1p_aux +
+ k4L
HpL L
Output
8.3 Problemas
Problema33. Seaelsistemanolinealdeecuciaonessiguiente:
f1Hx1,x2,x3L=3x1-cosHx2x3L-12=0,
2
2
f2Hx1,x-x2,xx3L=x 1-81Hx2+0.1L +senx3+1.06=0,f3Hx1,x2,
x3L=e 1 2+20x3+H10p -3L 3=0.
MedianteelmtododeContinuacinuHomotopa
lasolucin,comenzandoenelpuntoinicial
H 0L H 0L H 0L T
T
P0=Ix 1 ,x 2 ,x 3 M =H0,0,0L
calcleselaaproximacinde
yrealizandon=4iteraciones.
Solucin
Clear@ecuaciones, p, mD;
ecuaciones = 83 x1 Cos@x2 x3D 1 2,
x21 81 Hx2 + 0.1L2 + Sin@x3D + 1.06,
Exp@x1 x2D + 20 x3 + H10 Pi 3L 3
<;
p = 880.0<, 80.0<, 80.0<<;
m = 4;
continuacionhomotopia@ecuaciones, p, mD;
2
x1
H0L
i x1
P0 = x2
k
H0L
j x3H0L
20 x3 +
i 0. y
-x1 x2
{ = 0.
k
z
{
0.
3 x1 -
217
1.06 z
+
p
3 10
+
3
{
1
=j 0
0z
k {
J Hx1, x2 , x3L = i
j 2 x1
--
1 x2
x2
sinHx2 x3L x3
sinHx2 x3L x2 y
cosHx3L
x x
- - 1 2 x1
20
k
Iteracin i
=1
i 0.12500000
k1 = j -0.0042222033
-0.13089969
k
i 0.12499998
i 0.12499998
i 0.12499989
P1
Iteracin i
P0
6 H
z
{
k4 = j -0.0023020676
-0.13093470
k
+
z
y
k3 = j -0.0032962448
-0.13092035
k2 = j -0.0033117620
-0.13092324
z
{
+
2k2
i 0.12499997
=2
2k3
+ k4L = j -0.0032900474
-0.13092026
y
z
i 0.24999977
i 0.12499989
k1 = j -0.0023019179
-0.13093466
k
i 0.12499976
k = j -0.0012303950
2
k
-0.13093902
z
{
i 0.12499981
k3 = j -0.0012233159
-0.13093560
k
i 0.12499976
z
{
k4 = j -0.000094776483
-0.13092912
k
=
P2
P1
6 H
y
z
{
2k2
2k3
+ k4L = j -0.0045074001
-0.26185576
z
{
218
Iteracin i
=3
i0.12499976
k1 = k -0.000094768570
j -0.13092908
y
= i0.12499988
k2
k 0.0010777262 {
j -0.13091134
z
= i0.12499993
y
k3
k 0.0010713431 {
j -0.13090777
z
= i0.12500020
y
k4
k 0.0022589181 {
j -0.13087879
z
P3
P2
Hk1 +
2k2
{
z
i 0.37499970
2k3
+ k4L = j -0.0034303521
-0.39276344
k
Iteracin i
=4
y
z
{
= i0.12500020
k1
k 0.0022587863 {
j -0.13087875
z
= i0.12500045
y
k2
k 0.0034455048 {
j -0.13083864
z
= i0.12500035
y
k3
k 0.0034248117 {
j -0.13083540
z
= i0.12500000
y
k4
k 0.0045827692 {
j -0.13078516
z
=
4
+ 1 Hk +
1
i 0.50000000
+
2k2
2k3
Tabla de datos.
P -P
Pi
i 0y
0
j0z
0
k
i-1
+k L =
4
y
-8
k 1.2668609 10
-0.52359878
{
z
219
i 0.12499997
1 k -0.0032900474
j -0.13092026
i 0.24999977
2 k -0.0045074001
j -0.26185576
i 0.37499970
3 k -0.0034303521
y
0.130936
y
0.130908
-0.39276344
i 0.50000000
-8
4 k 1.2668609 10
0.13092
-0.52359878
y
{
0.130835
P4 = j 1.2668609 10 z
k -0.52359878 {
Problema34. Seaelsistemanolinealdeecuciaonessiguiente:
2
f1Hx1,x2,x3L=x
1 +x2-37=0,f2Hx1,x2,
2
x3L=x1-x2 -5=0,
f3Hx1,x2,x3L=x3+x1+x2-3=0
MedianteelmtododeContinuacinuHomotopa calcleselaaproximacinde
lasolucin,comenzandoenelpuntoinicial
H 0L H 0L H 0L T
T
P0=Ix 1 ,x 2 ,x 3 M =H0,0,0L
yrealizandon=2iteraciones.
Solucin
Clear@ecuaciones, ecuacionestrans, p, d, mD;
ecuaciones = 8 x12 + x2 37, x1 x22 5, x3 + x1
+ x2 3<; p = 880.0<, 80.0<, 80.0<<;
m = 2;
continuacionhomotopia@ecuaciones, p, mD;
220
j x3H0L
0.
2x
0y
1
-2 x2
0{
Iteracin i
=1
= i 2.5000000
k1
k 18.500000
{
z
j
-19.500000
= i 7.2962963
y
k2
k 0.25925926 {
z
j
-6.0555556 y
= i 2.5232448
k3
k 0.089658444 {
j -1.1129032 yz
= i 3.0538605
k 3.0887248
{
j
i 4.1988238 y
z
-4.6425853
1
=
+
+
+
+ k4L = j 3.7144267
k
z
P1 P0
2k2 2k3
-6.4132505
6 H 1
k
k4
Iteracin i
=2
i 2.2076836
k1 = k -0.039348791 {
j -0.66833481 y z
i 1.7539258
k2 = k -0.10096403 {
z
j
-0.15296178
221
i 1.8313659
k3 = k -0.091245116
j
y
{
yz
-0.24012077
i 1.5448774
k4 = k -0.13180717
i 6.0193478 y
z
0.086929793
1
+
=
+
+
+ k4L = j 3.6218310
k
z
P 2 P1
2k2 2k3
-6.6411788
6 H 1
k
Tabla de datos.
P -P
Pi i
0
y
j0z
0
k
-6.4132505
i 4.1988238 y
1 k 3.7144267
{
j
i-1
6.41325
i 6.0193478
2 k 3.6218310
{
j
z
-6.6411788
1.82052
P = 3.6218310
2 j
zk
-6.6411788 {
Problema35. Seaelsistemanolinealdeecuciaonessiguiente:
2
H 0L
H 0L
P0=Ix 1 ,x 2 M =H0,0L
H 0L
H 0L
P0=Ix 1 ,x 2 M =H1,1L
H 0L H 0L T
T
P0=Ix 1 ,x 2 M =H3,-2L
yrealizandon=8iteraciones.
222
Solucin
a)
Clear@ecuaciones, ecuacionestrans, p, d, mD;
ecuaciones = 8 x12 x22 + 2 x2, 2 x1
x22 6<; p = 880.0<, 80.0<<;
m = 8;
continuacionhomotopia@ecuaciones, p, mD;
+ 2 x1 - 6 z
P0 = i
H0L
j x0
k
2
y=i
0.
Lz
k1
k2
{
-2 x2
2 - 2 x2 y
{
0.37500000 y
k
i 0.37500000
{
y
k3
k4
= 10
=
j2
J x1 , x2 = 2 x1
k
Iteracin i
0z
j 0. z
{ k
j
k
-0.070312500
i 0.37740328
-0.068359839
= i 0.38427976
-0.13574868
Hk1 + 2k2 +
P1 = P0 +
6
2k3 + k4 L
Iteracin i
k1
=2
=
0.38434201 y
k2
{
-0.13568857
0.40257111 y
-0.20170068
=i
0.37734772
-0.068848893 z
223
k3
i 0.40936530
k4
-0.20250708
i 0.45067492
k
y
{
P2 = P1 +
-0.27887691
k1 + 2k2 + 2k3 + k4
k
=i
L
j
0.78716267
{
y
-0.27267906
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
Iteracin i
=7
k1
i -0.20337776 y
k
k2
=i
k
k3
-0.21524648 y
0.21517049
i -0.21598197 y
k
k4
0.20330965
0.21590537
i -0.23035551 y
j 0.23026892
k
P7 = P6 +
k1 + 2k2 + 2k3
6 H
Iteracin i
+ k4
{
y
-2.6288570
i -0.23036255 y
k
k2
k3
0.24779981
i -0.24934395 y
k
k4
0.23027595
i -0.24789911 y
k
0.24924337
i -0.27201858 y
j 0.27190068
k
P8 = P7 +
k1 + 2k2 + 2k3
6 H
+ k4
Tabla de datos.
3.6274929
=8
k1
k
=i
L
j
i Pi
0y
j
P -P
i
i-1
224
k
=i
L
j
3.3780150
{
y
-2.3794798
1 i 0.37734772
j
-0.068848893
2 k 0.78716267
y
z
-0.27267906
0.377348
0.409815
z
{
3 i 1.3648261
y
z
j
-0.69203276
4
2.9002566
{
ki
y
j
i 2.3338425 y
z
j
-1.4729057
k
i 3.8435246 y
z
j
-2.8448121
1.50968
i 3.6274929 y
z
j
-2.6288570
k
0.566414
1.53543
-2.0132693
0.577663
0.216032
i 3.3780150 y
z
j
-2.3794798
k
{
0.24947
8
3.3780150 y
=i
-2.3794798
Solucin
b)
Clear@ecuaciones, ecuacionestrans, p, d, mD;
ecuaciones = 8 x12 x22 + 2 x2, 2 x1
x22 6<; p = 881.0<, 81.0<<;
m = 8;
continuacionhomotopia@ecuaciones, p, mD;
+ 2 x1 - 6 z
P0 = i
H0L
j x0
k
2
y=i
1.
Lz
{ k
1.
{
-2 x2
j2
J x1 , x2 = 2 x1
k
2 - 2 x2 y
{
j
k
z
{
225
Iteracin i
=1
k1
= i -0.12500000 y
j
k2
-0.43750000
-0.030800821 y
j -0.43942505
k3
-0.029226983 y
j -0.43795011
k4 =
j
k
-0.43552088
P1 = P0 +
6
Iteracin i
=2
0.067715537 y
z
-0.43549802
=i
i 0.25769419
j
z
{
y
z
-0.44568405
i 1.1317782
0.15965720
k4
-0.43819665
k3
0.56203813
i 0.16163366
0.067733504 y
k2
k1 + 2k2 + 2k3 + k4
i 0.97044332
y
z
-0.47102615
P2 = P1 +
6
k1 + 2k2 + 2k3 + k4
0.11632387 z
....
....
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
Iteracin i
=7
k1
= i -0.41362262 y
j
0.36106659
k2
0.45288133
k3
0.48378958
=i
z
{
-0.88564861 y
0.78450886
1
P7 = P 6
i -0.55087494 y
j
k4
i -0.51650642 y
L
1
+ 2k2
+ 2k3
+ k4
i
j
2.3583257 y
-1.5078962
226
Iteracin i
=8
k1
= i -0.92748662 y
j 0.82232890
k2
k3
i 41.959215 y
j
-37.973475 z
i -0.020312488 y
j 0.016239007
k4
-0.96911505 y
j 0.85918874
{
1
P8 = P 7 +
k1 + 2k2 + 2k3 + k4
0
j
j
0.56203813
i 1.5441207
0.11632387
-0.46093098
ki
j
k
-1.5078962
-13.880055
1.13206
0.725762
y
{
z
{
0.35362
z
{
0.572339
z
{
i 16.021860
j
0.577255
i 2.3583257
k
-2.0110491
i 2.9306647
j
-2.3187540
0.445714
2.5882426
-1.5929921
i 3.2842844
k
0.437962
i 1.1317782
j
i-1
i 0.97044332 y
1.0000000
P -P
Pi
1.0000000 y
z
13.6635
Solucin
c)
i
j
Tabla de datos.
i 16.021860 y
j
-13.880055 z
16.021860
-13.880055
227
Clear@ecuaciones, p, d, mD;
ecuaciones = 8 x12 x22 + 2 x2, 2 x1
x22 6<; p = 883.0<, 82.0<<;
m = 8;
continuacionhomotopia@ecuaciones, p, mD;
Mtodo de Continuacion Homotopia para sistemas de
ecuaciones no lineales.
fi x1, x2 L
=i
x 2-x 2+2x
1
j -x2
P0 = i
jx
k
H0L
y=i
0 Lz
3.
j
y=i0y
+ 2 x1 - 6 z
-2.
j0z
y
z
i 2 x1 2 - 2 x2 y
j2
-2 x2
k
Iteracin i
=1
k1
= i -0.29166667 y
j 0.27083333
k2
-0.33886779 y
j 0.31581736
k3
-0.34807302 y
j 0.32467067
-0.43764125 y
j 0.41045139
k
P1 = P 0 +
{
k1 + 2k2 + 2k3
i
=
+ k4
2.6494684
-1.6729565
k
Iteracin i
y
z
=2
= i -0.43921783 y
j 0.41197593
k2
-0.64545752 y
j 0.61041357
k3
=i
-0.83155172 y
j 0.79075263
k4
=i
k
P2 = P 1 +
1.8880415
-1.8567607 z
{
k1 + 2k2 + 2k3
+ k4
i
=
228
2.3986026
-1.4466986
....
......
Nota:Sehaneliminadovariasiteraciones.Enlatablafinalsepuedenverlosresultados
Iteracin i
=7
k1 =
i 0.045269325
j -0.036327495 z
k
k2 = i 0.045423087
j -0.036417585 z
i
k3 = 0.045423629
z
j
k
y
{
-0.036417780
i
k4 = 0.045579030
z
j
k
-0.036508458
P7 = P6 +
6
{
k1 + 2k2
+ 2k3
i -5.0552307
= 5.5992770
j
+ k4
k
Iteracin i
k
=8
1
y
z
= i 0.045579030
j -0.036508458 z
i
k2 = 0.045736090
j -0.036599727 z
i
k3 = 0.045736652
z
j
k
y
{
-0.036599926
i
k4 = 0.045895413
z
j
k
-0.036691792
P8 = P7 +
6
{
k1 + 2k2
+ 2k3
+ k4
Tabla de datos.
i
0
1
2
3
y
i
k
j -2.0000000 z
k
j -1.6729565 z
i 2.3986026
k
j -1.4466986 z
0.350532
0.250866
i 1.2050556
k
-0.32396323
i-1
i 2.6494684
P -P
i
3.0000000
i -5.0094940
= 5.5626771
j
1.19355
229
y
z
4 i 1.9623856
k
j -1.0674512 z
0.75733
{
z
7.10816
{
z
0.0451172
{
z
0.0454236
{
z
0.045736
7
5 i -5.1457715 y
k 5.6719328
j
6 i -5.1006543 y
k 5.6356948
j
7 i -5.0552307 y
k 5.5992770
j
8 i -5.0094940 y
k 5.5626771
j
-5.0094940 y
i
k
5.5626771
Problema36. Seaelsistemanolinealdeecuacionessiguiente:
f1Hx1,x2,x3L=3x1-cosHx2x3L-12=0,
2
P0=
Aplquese
el
2 +
-3L 3=0.
mtododeContinuacinuHomotopaconlaaproximacininicial
LT
1,1,1 yaplicandoelmtodoconn=4iteraciones.
Solucin
Clear@ecuaciones, p, dD;
ecuaciones = 8 3 x1 Cos@x2 x3D 1 2,
4 x21 625 x22 + 2 x2 1, Exp@x1 x2D + 20 x3 +
H10 Pi 3L 3 <; p = 881.0<, 81.0<, 81.0<<;
m = 4;
continuacionhomotopia@ecuaciones, p, mD;
H0L
i x1 y
P0 = x2
k
H0L
j x3H0L
-x x
20 x3
i 1. y
1 2
{ = 1.
k
z
{
1.
230
+ 1
i
0
L{ = 0
-3 + 10 p z
0z
sinHx2 x3L x3
sinHx2 x3L x2 y
J Hx1, x2 , x3L = i 3
j 8 x1
--
1 x2
x2
2 - 1250 x2
x x
- - 1 2 x1
20
k
Iteracin i
=1
i -0.023047325 y
k1 = j -0.12434646
-0.37570934
i -0.057232431 y
k2 = j -0.13283327
-0.37665824
i -0.057923995 y
k3 = j -0.13343597
-0.37670686
i -0.091811028 y
k4 = j -0.14399854
-0.37775486
k
1
P1
Iteracin i
P0
6 H
z
{
2k2
i 0.94247147 y
+ k4L = j 0.86651942
z
2k3
0.62330093
=2
i -0.091815412 y
k1 = j -0.14400626
-0.37775484
k
i -0.12165758 y
k
z
{
= j -0.15726512
z
-0.37882670
i -0.12226079 y
k3
= j -0.15858062
z
-0.37889289
i -0.14539514 y
k4
= j -0.17663369
z
-0.37993097
k
=
P2
P1
{
1
6 H
i 0.82163025 y
+
2k2
+ k4L = j 0.70779751
z
2k3
0.24444677
231
Iteracin i
=3
i -0.14539799 y
k1 = k
j
i
k2 = k
j
i
k3 = k
j
i
k4 = k
j
-0.17667092 {
-0.37993216
-0.16053067 y
-0.20193739 {
-0.38087962
-0.16066141 y
-0.20614071 {
-0.38097967
-0.16690218 y
-0.24938372 {
i 0.66251619
y
z
-0.38191896
1
Hk1 +
=
+
+
+ k4L = j 0.50076238
z
6
P3 P2
2k2 2k3
-0.13648152
k
{
Iteracin i
=4
i -0.16688575 y
k1 = k
j
i
k2 = k
j
i
k3 = k
j
i
k4 = k
j
-0.24983376 {
-0.38193621
-0.16474080 y
-0.33296470 {
-0.38324352
-0.16351017 y
-0.37455541 {
-0.38419885
-0.15301950 y
-0.99905078 {
i 0.49978166
y
z
-0.39731006
1
Hk1 +
=
+
+
+ k4L = j 0.056774915
z
6
P4 P3
2k2 2k3
-0.52217002
k
{
Tabla de datos.
Pi
i 1.0000000 y
j 1.0000000 z
k 1.0000000 {
P -P
i
i-1
232
i 0.94247147 y
1 k
j
0.376699
0.62330093
0.82163025 y
2 k
j
0.86651942 {
0.70779751 {
0.24444677
0.378854
i 0.66251619
3 k 0.50076238
-0.13648152
i 0.49978166
4 k 0.056774915
-0.52217002
0.380928
0.443987
Problema37. Seaelsistemanolinealdeecuacionessiguiente:
2
2
f2Hx1,x2L=12x1x 2+2x1-5x2+8=0.
H 0L
continuacionhomotopia@ecuaciones, p, mD;
H0L
P0 = i x1
j
k
2H
j
y
Lz
x x
1 2
=i
1.
5 x2
+
+ z{
2 x1
8
0.
233
k
j
2
2
- 20
+2
2
1
x -5
2
Iteracin i = 1
k1
j
= i -0.11111111 y
0.28888889
k2
i
j
0.29911158
k3
0.29936470
k4
-0.10553749 y
-0.10540694 y
-0.10020766 y
1
P1 = P0 +
6
0.30889480
{
H
i 0.89446539 y
k1 + 2k2 + 2k3 + k4
j 0.29912271 z
Iteracin i = 2
k1
= i -0.10021091 y
j
0.30888086
-0.095227914 y
k2
=
=
0.31761021
-0.095314666 y
z
{
0.31786191
-0.090604488 y
j
k
k3
P2 = P1 +
6
0.32576730
z
{
{
H
i 0.79914863 y
k1 + 2k2 + 2k3 + k4
j 0.61672144 z
Iteracin i = 3
k1
= i -0.090607837 y
j
0.32575365
-0.086162938 y
k2
0.33274159
k3
=i
0.33298636
=i
z
{
-0.086224208 y
k4
z
{
-0.082000914 y
1
P3 = P2 +
6
0.33904890
{
H
i 0.71291813 y
k1 + 2k2 + 2k3 + k4
j 0.94943118 z
234
Iteracin i
=4
k1
i -0.082004333 y
k
k2
0.34410677
i -0.078052511 y
k
k4
i -0.078006147 y
k
k3
0.33903601
0.34434574
i -0.074252618 y
j 0.34844406
k
P4 = P3 +
k1 + 2k2
+ 2k3
6 H
Iteracin i
+ k4
k2
k3
=i
k
k4
0.34843225
0.35152371
-0.070700697 y
0.35176085
i -0.067296876 y
k
P5 = P4 +
k1 + 2k2
+ 2k3
6 H
Iteracin i
+ k4
k
=i
0.56414229 {
y
1.6449778
=6
k1
i -0.067300177 y
k
k2
k3
0.35505169
i -0.064127458 y
k
k4
0.35388294
i -0.064095682 y
k
0.35529045
i -0.061107990 y
j 0.35556504
k
P6 = P5 +
k1 + 2k2
6 H
+ 2k3
+ k4
Tabla de datos.
P -P
1.0000000 y
{
i 0.89446539 y
j 0.35389356
1.2934954
i -0.070663231 y
k
i -0.074256025 y
j
0.63485575 {
=5
k
=i
i-1
0.299123
0.29912271
235
k
=i
0.49999988 {
y
1.9999999
2 i 0.79914863 y
k
j 0.61672144 z
0.317599
k
j 0.94943118 z
0.33271
3 i 0.71291813 y
4 i 0.63485575 y
k 1.2934954
{
j
z
5 i 0.56414229 y
k 1.6449778
{
j
z
6 i 0.49999988 y
k 1.9999999
{
z
j
0.344064
0.351482
0.35502
2
i 0.49999988 y
k
1.9999999
Problema38. Seaelsistemadeecuacionesnolinealessiguiente.
f1Hx1,x2L=senH4px1x2L-2x2-x1=0,
2x
2 E x1<;
p = 880.0<, 80.0<<;
m = 4;
continuacionhomotopia@ecuaciones, p, mD;
Mtodo de Continuacion Homotopia para sistemas de
ecuaciones no lineales.
j sinH4 p x1 x2L - x1 - 2 x2
fi x1, x2
L
P0 = i
j
k
H0L
2H
k
=
Lz
0.
-1 + 4 p
x1 + HLHL
=i
0z
j 0. z
4 p cosH4 p x1 x2L x1
- 2z
j 4 p cosH4 p x1 x2L x2 - 1
H
{
y
k0 {
4p
-+2 x1
4x -2
y =i
2p
1 - 1+4 p
k -2 + H L
2x
236
8 x2
Iteracin i
=1
k1
= i -0.10996031 y
j
0.054980154 z
-0.10053454 y
0.024458033 z
k2
k3
i -0.10250307 y
0.032964556 z
j
k
k4
-0.097271662 y
1
0.017345574
P1 = P0 +
6 H
Iteracin i
{
k1 + 2k2
i -0.10221787
+ 2k3 + k4
j 0.031195151 z
i -0.19678680
=2
= i -0.097343701 y
0.018034131
k2
=i
=
0.0092541796 z
+ 2k3 + k4
j 0.044097246 z
i -0.28696459
= i -0.092137501 y
j
0.0092825391 z
-0.090121763 y
0.0070812789 z
-0.090147096 y
0.0073385003 z
-0.088391533 y
0.0058151466 z
k4
k1 + 2k2
=3
k1
k3
1
6 H
k2
-0.092140623 y
P2 = P1 +
Iteracin i
0.013019181
k4
-0.094527591 y
0.012042947
k3
-0.094437044 y
P3 = P2 +
6 H
k1 + 2k2
L
+ 2k3 + k4
j 0.051420120 z
Iteracin i
k1
= 4 -0.088390071 y
=
{
0.0058176348
i -0.086848148 y
=
k2
0.0047996081
237
i -0.086864795 y
k4
0.0048898916
i -0.085500431 y
0.0041479274
P4 = P 3
k1 + 2k2
+ 2k3
6H
+ k4
Tabla de datos.
i Pi
0y
0
1
2
3
4
i
k
j
k
j
0.031195151
{z
0.102218
-0.19678680 y
0.044097246
{z
0.0945689
-0.28696459 y
0.051420120
{z
0.0901778
-0.37385066 y
i-1
-0.10221787 y
k
j
P -P
0.056310880
0.0868861
-0.37385066 y
0.056310880
k
=i
j
-0.37385066 {
y
0.056310880
238
9. Interfaz de Usuario
9.1 Ventana inicial
Laventanainicialdelprogramarealizalacreacindelmarcoinicialdondesevana
alojarlosbotones,elgrfico,logoylosmensdeventanaconlosrespectivostextos
relativosalnombredeaplicacinybotn.
Funcin Principal
Funcin Men
Botn
<<SuperWidgetFrame()>>
Mtodos
Grfico Inicial
g1 = Grfico [ ]
Botn
Texto PFC
Acerca de
Logo ICAI
Botn
Salir
Creacindelaventanainicialdelaaplicacin.
Figura3
Paraelcorrectofuncionamientodelaaplicacines
necesarioincluirelpaquete
SuperWidgetPackagequedasoportealasventanasymarcosutilizados.
239
Lapantallainicialsepresentaacontinuacin:
Pantallainicialdelaaplicacin.
Figura4
Enelmenquesepresentasepuedenpulsartresbotones;"Mtodos","Acercade"y
"Salir"queestnincluidosenlafuncinMen.Sisepulsaencadaunodeellosse
desplegarnlasopcionesquecadaunotiene.Lasopcionessemuestraneneldiagrama
siguiente:
Funcin Men
Botn
Botn
Mtodos
Botn
Salir
Pulsacin
Pulsacin
Creacin Marco
Creacin Marco
SuperWidgetFrame
Mtodo de Seidel
menuMtodoSeidel []
[Panel, Texto]
Botn
SuperWidgetFrame
[Texto Salir]
Pulsacin
Mtodo de Newton
menuMtodoNewton []
Botn
SI
Botn
Mtodo de Cuasi Newton
menuMtodoCausiNewton[]
Botn
Botn
Botn
Acerca de
Botn
Pulsacin
Botn
Cancelar
Respuesta = 1
Mtodo de Continuacin u
Homotopia
menuMtodoContinuacion[]
Creacindelmendesplegable.
Figura5
240
Pulsacin
<Marco Pr>
Encuantoalbotn"Acercade"creaunmarcoenelquesecreaunpanelconeltexto
relativoalproyecto,aparecenlaUniversidad,Especialidad,tipodetrabajo,autorydirector
delmismo.
Elbotn Salirdaaelegirmostrandodosbotones.Conelbotn"S"secierrael
marcoprincipalyseparalaejecucindelprograma.Conelboton"Cancelar"regresamosal
marcoprincipal.
Lasventanasresultantessemuestranacontinuacin:
Figura6
VentanasAcercade.
VentanaSalirdelaaplicacin.
Figura7
Por ltimo, el botn "Mtodos" al ser pulsado despliega varias opciones de
ejecucin,delasquepodemosseleccionarunacadavez.
241
OpcionesdelosMtodosderesolucin.
Figura8
Losmtodosson:
- MtododelPuntoFijo.
- MtododeSeidel.
- MtododeNewton.
- MtododeCuasiNewton
- MtododelaMximaPendiente
- MtododeContinuacinuHomotopa.
242
del Punto
menuMtodoPuntoFijo()queinicializalasvariablesglobalesconlafuncininicializar()ya
continuacincreaelmarcorespectivodelmtodo.
Dentrodelmarcosetienenvarioselementosqueloconstituyen.Primeroeltextoque
indicaelformatodelosdatosquedebeintroducirelusuario.Ensegundolugar,unaseriede
cajasdecapturadedatos,segneltipo.Enestecaso,"Ecuaciones"tipotexto,enestacaja
se deben introducir las ecuaciones que forman el sistema a resolver, "Ecuaciones
transformadas"detipotexto,yenellasedebenintroducirlasecuacionestranformadaspara
quepuedanserutilizadasporelmtodo,"PuntoInicial"detipotexto,eselpuntoiniciala
partirdelcualsevaacomenzaraiterar,"Error"detiporeal,enestacajasedebeintroducir
elerror mnimoquesequierealcanzarparaobtnerlasolucinaproximada.Entercerlugar,
secreandosbotones,unoeselbotn"Cancelar"quesiespulsado
devuelvealaventana
inicialdelprogramayelotroqueeselbotn"Realizar".Alserpulsadoporelusuarioel
programarecogelosdatosintroducidosenlascajasdeparmetros(elusuariopreviamente
loshadebidointroducir)yseenvanalafuncin
delmtododelPuntoFijo,paraquelos
datosintroducidosporelusariopuedanserutlizadosporestafuncinesnecesariorealizar
unatranformacindelosdatosdeentradaaltipodedatosquesonadmitidosporlafuncin.
TodoestoserealizaalavezquesellamaalafuncinPuntoFijo().Porltimo,apareceel
textoqueindicaquesevaamostrarlasolucindelsistemadeecuacionesnolinealesyuna
cajadetextoenlaqueunavezquesehacalculadolasolucinsemuestranlosresultados.
Con la funcin PuntoFijo() se calcula la solucin aproximada del sistema de
243
ecuacionesnolinealesintroducidoporelusuario.Delmismomodoestafuncindevuelveal
marco los elementos resultantes de dicha llamada,r que contiene el valor de la
aproximacinalasolucin.
Botn
Image_Expression
menuMetodoPuntoFijo[ ]
Inicializar[variables globles]
Box
Creacin Marco
String
<<superWidgetFrame[ ]>>
Box
Botn
Botn
String
Realizar
Cancelar
Box
f2
Return
<r>
Resp = 1
f1
Pulsacin
Resp = 1
Pulsacin
String
Box
Real
r = metodoPuntoFijo[ param]
DiagramaconelmtodoPuntoFijo.
Figura9
Lasventanassemuestraacontinuacin.Sepuedeverqueeleventoqueseproduce
alpulsarelbotn"Realizar"lanzalallamadaalafuncinimprimiendolosresultados.
244
VentanasparacalcularlasolucindelsistemaconelMtododelPuntoFijo.
Figura10
elerror mnimoquesequierealcanzarparaobtnerlasolucinaproximada.Entercerlugar,
secreandosbotones,unoeselbotn"Cancelar"quesiespulsadodevuelvealaventana
inicialdelprogramayelotroqueeselbotn"Realizar".Alserpulsadoporelusuarioel
245
programarecogelosdatosintroducidosenlascajasdeparmetros(elusuariopreviamente
loshadebidointroducir)yseenvanalafuncin
delmtododeSeidel,paraquelosdatos
introducidosporelusariopuedanserutlizadosporestafuncinesnecesariorealizaruna
tranformacindelosdatosdeentradaaltipodedatosquesonadmitidosporlafuncin.
TodoestoserealizaalavezquesellamaalafuncinSeidel().Porltimo,apareceeltexto
queindicaquesevaamostrarlasolucindelsistemadeecuacionesnolinealesyunacaja
detextoenlaqueunavezquesehacalculadolasolucinsemuestranlosresultados.
ConlafuncinSeidel()secalculalasolucinaproximadadelsistemadeecuaciones
nolinealesintroducidoporelusuario.Delmismomodoestafuncindevuelvealmarcolos
elementosresultantesdedichallamada,rquecontieneelvalordelaaproximacinala
solucin.
Botn
Mtodo de Seidel
Image_Expression
menuMetodo Seidel[ ]
Inicializar[variables globles]
Return
<r>
Resp = 1
Box
Creacin Marco
String
<<superWidgetFrame[ ]>>
Box
Botn
Botn
String
Realizar
Cancelar
Box
Pulsacin
Resp = 1
String
Pulsacin
Box
Real
f1
f2
r = metodoSeidel[ param]
DiagramaconelmtododeSeidel.
Figura11
Lasventanassemuestraacontinuacin.Sepuedeverqueeleventoqueseproduce
alpulsarelbotn"Realizar"lanzalallamadaalafuncinimprimiendolosresultados.
246
VentanasparacalcularlasolucindelsistemaconelMtododeSeidel.
Figura12
247
estacajasedebenintroducirlasecuacionesqueformanelsistemaaresolver,"Punto
Inicial"detipotexto,eselpuntoinicialapartirdelcualsevaacomenzaraiterar,"Nmero
MaximoInteraciones"detipotextoyenlaquesedebeintroducirelnmeromximode
iteracionesquesequierenrealizar,"Error"detiporeal,enestacajasedebeintroducirel
errormnimoquesequierealcanzarparaobtnerlasolucinaproximada.Entercerlugar,se
creandosbotones,unoeselbotn"Cancelar"quesiespulsado
devuelvealaventana
inicialdelprogramayelotroqueeselbotn"Realizar".Alserpulsadoporelusuarioel
programarecogelosdatosintroducidosenlascajasdeparmetros(elusuariopreviamente
loshadebidointroducir)yseenvanalafuncindelmtododeNewton,paraquelosdatos
introducidosporelusariopuedanserutlizadosporestafuncinesnecesariorealizaruna
tranformacindelosdatosdeentradaaltipodedatosquesonadmitidosporlafuncin.
TodoestoserealizaalavezquesellamaalafuncinNewton().Porltimo,apareceeltexto
queindicaquesevaamostrarlasolucindelsistemadeecuacionesnolinealesyunacaja
detextoenlaqueunavezquesehacalculadolasolucinsemuestranlosresultados.
Con la funcin Newton() se calcula la solucin aproximada del sistema de
ecuacionesnolinealesintroducidoporelusuario.Delmismomodoestafuncindevuelveal
marco los elementos resultantes de dicha llamada, r que contiene el valor de la
aproximacinalasolucin.
248
Botn
Mtodo de Newton
Image_Expression
menuMetodoNewton[ ]
Inicializar[variables globles]
Box
Creacin Marco
String
<<superWidgetFrame[ ]>>
Box
Botn
Botn
String
Realizar
Cancelar
Box
f1
Return
<r>
Resp = 1
Pulsacin
Resp = 1
Pulsacin
String
Box
Real
r = metodoNewton[ param]
DiagramaconelmtododeNewton.
Figura13
Lasventanassemuestraacontinuacin.Sepuedeverqueeleventoqueseproduce
alpulsarelbotn"Realizar"lanzalallamadaalafuncinimprimiendolosresultados.
249
VentanasparacalcularlasolucindelsistemaconelMtododeNewton.
Figura14
menuMtodoCuasiNewton()queinicializalasvariablesglobalesconlafuncininicializar()
yacontinuacincreaelmarcorespectivodelmtodo.
Dentrodelmarcosetienenvarioselementosqueloconstituyen.Primero,eltexto
queindicaelformatodelosdatosquedebeintroducirelusuario.Ensegundolugar,una
seriedecajasdecapturadedatos,segneltipo.Enestecaso,"Ecuaciones"tipotexto,en
estacajasedebenintroducirlasecuacionesqueformanelsistemaaresolver,"Punto
Inicial"detipotexto,eselpuntoinicialapartirdelcualsevaacomenzaraiterar,"Nmero
MximodeIteraciones"detipotexto,yenellasedebeintroducirelnmeromximode
iteracionesquesedeseaquerealiceelmtodo,"Error"detiporeal,enestacajasedebe
introducirelerror
mnimoquesequierealcanzarparaobtnerlasolucinaproximada.
Entercerlugar,secreandosbotones,unoeselbotn"Cancelar"quesiespulsadodevuelve
250
alaventanainicialdelprogramayelotroqueeselbotn"Realizar".Alserpulsadoporel
usuarioelprogramarecogelosdatosintroducidosenlascajasdeparmetros(elusuario
previamenteloshadebidointroducir)yseenvanalafuncin
delmtododeCuasi
Newton,paraquelosdatosintroducidosporelusariopuedanserutlizadosporestafuncin
esnecesariorealizarunatranformacindelosdatosdeentradaaltipodedatosqueson
admitidosporlafuncin.Todoestoserealizaala
vezquesellamaalafuncinCuasi
Newton().Porltimo,apareceeltextoqueindicaquesevaamostrarlasolucindelsistema
deecuacionesnolinealesyunacajadetextoenlaqueunavezquesehacalculadola
solucinsemuestranlosresultados.
ConlafuncinCausiNewton()secalculalasolucin
aproximadadelsistemade
ecuacionesnolinealesintroducidoporelusuario.Delmismomodoestafuncindevuelveal
marco los elementos resultantes de dicha llamada, r que contiene el valor de la
aproximacinalasolucin.
Texto Formato Integral
Botn
Image_Expression
menuMetodoCuasiNewton[ ]
Inicializar[variables globles]
Creacin Marco
Box
f1
String
<<superWidgetFrame[ ]>>
Box
Botn
Botn
String
Realizar
Cancelar
Box
Return
<r>
Resp = 1
Pulsacin
Resp = 1
Pulsacin
String
r = metodoCuasiNewton[ param]
Box
Real
DiagramaconelmtododeCuasi-Newton.
Figura15
251
Lasventanassemuestraacontinuacin.Sepuedeverqueeleventoqueseproduce
alpulsarelbotn"Realizar"lanzalallamadaalafuncinimprimiendolosresultados.
VentanasparacalcularlasolucindelsistemaconelMtododeCuasi-Newton.
Figura16
252
Dentrodelmarcosetienenvarioselementosqueloconstituyen.Primero,eltexto
queindicaelformatodelosdatosquedebeintroducirelusuario.Ensegundolugar,una
seriedecajasdecapturadedatos,segneltipo.Enestecaso,"Ecuaciones"tipotexto,en
estacajasedebenintroducirlasecuacionesqueformanelsistemaaresolver,"Punto
Inicial"detipotexto,eselpuntoinicialapartirdelcualsevaacomenzaraiterar,"Nmero
MximodeIteraciones"detipotexto,yenellasedebeintroducirelnmeromximode
iteracionesquesedeseaquerealiceelmtodo,"Error"detiporeal,enestacajasedebe
introducirelerror
mnimoquesequierealcanzarparaobtnerlasolucinaproximada.
Entercerlugar,secreandosbotones,unoeselbotn"Cancelar"quesiespulsadodevuelve
alaventanainicialdelprogramayelotroqueeselbotn"Realizar".Alserpulsadoporel
usuarioelprogramarecogelosdatosintroducidosenlascajasdeparmetros(elusuario
previamenteloshadebidointroducir)yseenvanalafuncin
delmtododelaMxima
Pendiente,paraquelosdatosintroducidosporelusariopuedanserutlizadosporesta
funcinesnecesariorealizarunatranformacinde losdatosdeentradaaltipodedatosque
sonadmitidosporlafuncin.Todoestoserealiza
alavezquesellamaalafuncin
MaximaPendiente().Porltimo,apareceeltextoqueindicaquesevaamostrarlasolucin
delsistemadeecuacionesnolinealesyunacajadetextoenlaqueunavezqueseha
calculadolasolucinsemuestranlosresultados.
ConlafuncinMaximaPendiente()secalculalasolucinaproximadadelsistemade
ecuacionesnolinealesintroducidoporelusuario.Delmismomodoestafuncindevuelveal
marco los elementos resultantes de dicha llamada, r que contiene el valor de la
aproximacinalasolucin.
253
Botn
Mtodo de la Mxima Pendiente
menuMetodoMaximaPendiente[ ]
Image_Expression
Inicializar[variables globles]
Box
Resp = 1
Creacin Marco
String
<<superWidgetFrame[ ]>>
Box
Botn
String
Cancelar
Box
Return
<r>
Botn
f1
Realizar
Pulsacin
Resp = 1
Pulsacin
String
r = metodoMaximaPendiente[ param]
Box
Real
DiagramaconelmtododelaMximaPendiente.
Figura17
Lasventanassemuestraacontinuacin.Sepuedeverqueeleventoqueseproduce
alpulsarelbotn"Realizar"lanzalallamadaalafuncinimprimiendolosresultados.
254
VentanasparacalcularlasolucindelsistemaconelMtododelaMximaPendiente.
Figura18
inicializar()yacontinuacincreaelmarcorespectivodelmtodo.
Dentrodelmarcosetienenvarioselementosqueloconstituyen.Primero,eltexto
queindicaelformatodelosdatosquedebeintroducirelusuario.Ensegundolugar,una
seriedecajasdecapturadedatos,segneltipo.Enestecaso,"Ecuaciones"tipotexto,en
estacajasedebenintroducirlasecuacionesqueformanelsistemaaresolver,"Punto
Inicial"detipotexto,eselpuntoinicialapartirdelcualsevaacomenzaraiterar,"Nmero
MximodeIteraciones"detipotexto,yenellasedebeintroducirelnmeromximode
iteracionesquesedeseaquerealiceelmtodo.Entercerlugar,secreandosbotones,unoes
elbotn"Cancelar"quesiespulsado devuelvealaventanainicialdelprogramayelotro
queeselbotn"Realizar".Alserpulsadoporelusuarioelprogramarecogelosdatos
255
introducidosenlascajasdeparmetros(elusuariopreviamenteloshadebidointroducir)y
seenvanalafuncindelmtododeContinuacinu Homotopa,paraquelosdatos
introducidosporelusariopuedanserutlizadosporestafuncinesnecesariorealizaruna
tranformacindelosdatosdeentradaaltipodedatosquesonadmitidosporlafuncin.
TodoestoserealizaalavezquesellamaalafuncinContinuacion().Porltimo,apareceel
textoqueindicaquesevaamostrarlasolucindelsistemadeecuacionesnolinealesyuna
cajadetextoenlaqueunavezquesehacalculadolasolucinsemuestranlosresultados.
ConlafuncinContinuacion()secalculalasolucinaproximadadelsistemade
ecuacionesnolinealesintroducidoporelusuario.Delmismomodoestafuncindevuelveal
marco los elementos resultantes de dicha llamada, r que contiene el valor de la
aproximacinalasolucin.
Texto Formato Integral
Botn
Mtodo de Continuacin
Image_Expression
menuMetodoContinuacion[ ]
Inicializar[variables globles]
f1
Creacin Marco
Box
String
<<superWidgetFrame[ ]>>
Box
Return <r>
Botn
Realizar
Pulsacin
Resp = 1
Botn
String
Cancelar
Box
Pulsacin
String
r = metodoContinuacion[ param]
DiagramaconelmtodoContinuacinuHomotopa.
Figura19
Lasventanassemuestraacontinuacin.Sepuedeverqueeleventoqueseproduce
alpulsarelbotn"Realizar"lanzalallamadaalafuncinimprimiendolosresultados.
256
VentanasparacalcularlasolucindelsistemaconelMtodoContinuacinuHomotopa.
Figura20
257
10. Metodologa
EnesteapartadosevaadesarrollarunPlandeGestindelProyecto,documentode
control para gestionar un proyecto informtico,
necesariosparadesarrollarlosproductosobjetodelproyecto.Esindependientedeltipode
proyecto,tamao,importancia,complejidadytecnologa.Sucontenidoabarcaaspectosde
formatoydecontenido.
ElcontenidodelPlandeGestindelProyectoson:EDT,fichas
detalladasyplanificacin.
1.
EDT:estructuradedivisindeltrabajo.esladescomposicindelproyectoenun
conjuntodetareasmanejables.Daunavisindetalladadelalcancedelproyecto,permite
hacerestimacionesdetiempoycostemscercanasalarealidad,permitemonitorizarel
progresodelproyectoconmayorfacilidadypermitehacerasignacionesmsclarasde
trabajoalosmiembrosdelequipo.Tieneunaestructurajerrquica,conunnodorazque
representaelproyecto.Delcuelganactividades;estasactividadessontareasdesarrolladas
duranteunperiododetiempopredefinidodentrodelplandetrabajodelproyecto.Las
actividadespuedendescomponerseensubactividadescreandounaestructurajerrquica.
LasactividadesdeltimonivelsuelendenominarseTareas.Amedidaquesedesciendeen
elrbol,aumentaeldetalledelatarea.
Haydostiposdetareas:
Tareasresumen:sonsimplementeunresumenquedaunavisindemsaltonivel.
Estastareasresumenpuedendescomponerseenmstareas,segnelniveldedetalle.
258
Paquetesdetrabajo: especificacindeltrabajoquedebeserrealizadoenunatarea,
debetenerunidentificadoryunnombre,sesuelenespecificarprecondicionesparasu
ejecucinyproductosgenerado.Esloquerealmenteseejecuta,nosedescomponenms.
Acontinuacin,semuestraelEDTdelproyecto.
EDTdelproyecto.
Figura21
259
Paralarealizacindeesteproyectonosehaconsideradooportunoseguiruna
metodologadetrabajotradicionalconlasfasesidentificacindenecesidades,anlisisde
requisitos,estudiodelaarquitectura,diseointerno,diseoexterno,etc.Sinoqueseha
optadopordesarrollarunametodologaqueseajustemejoralanaturalezadelproyecto.
2.
Fichasdetalladas.Enesteapartadosedetallanlasactividadesquesevanarealizar
encadatarea,lasentradasnecesariopararealizarlatarea,lassalidasqueproducelatareay
elresponsabledelatareajuntoconsuduracin.
Detalledelpaquetedetrabajo"Lanzamiento".
Figura22
260
Detalledelpaquetedetrabajo"GestindelProyecto".
Figura23
Detalledelpaquetedetrabajo"DocumentacindecadaMtodo
Numrico".
Figura24
261
Detalledelpaquetedetrabajo"Estudiodelosmtodosydesarrollode
pseudocdigo".
Figura25
Detalledelpaquetedetrabajo"Programacin".
Figura26
262
Detalledelpaquetedetrabajo"Recopilacindeproblemas".
Figura27
Detalledelpaquetedetrabajo"Ejecucindeproblemas".
Figura28
263
Detalledelpaquetedetrabajo"EntornoGrfico"
Figura29
Detalledelpaquetedetrabajo"Comparativaydocumentacin".
Figura30
264
Detalledelpaquetedetrabajo"Cierre".
Figura31
3.
Planificacin:Pararelaizarlaplanificacindelproyectoseha utilizadaouna
tcnica PERT que permite calcular informacin importante sobre cada tarea para el
seguimientoycontrol.Paracadapaquetedetrabajoseestableceelinicioyfinms
tempranodeesatarea,yelinicioyfinmstardodelatarea.Antessedebecalcularla
duracindelospaquetesdetrabajo.Permiteconocerelcaminocrtico,esdecir,lastareasen
lasquesisesufreretrasoseretrasaralafechadefinalizacindelproyecto.
Serealizaunaestimacindelashoras/hombrequevaadedicarcadaparticipanteen
eldesarrollodelproyectoacadapaquetedetrabajo,especificandoademslassemanas
totalesquevaadurarcadatarea.
265
Tablaestimacinhorasdetrabajosegnpaquetedetrabajo.
Figura32
266
Unavezquesehacalculadounaestimacindelashorasquesevanadedicaracada
tareaesnecesariocalcularelordenenquesevanaejecutarlastareas,paraellosecreauna
tablaenlaqueporcadatareaseestablecensuspredecesoras,esdecir,lastareasquedeben
estarterminadasparapoderejecutarlassiguientes.
Ordendeejecucindelospaquetesdetrabajo.
Figura33
Unavezcalculadaslashorasestimadasquesevanadedicaracadapaquetede
trabajoyelordenenquesedebenejecutarlastareaspodemosrealizareldiagramaPERTy
calcularelcaminocrtico.
267
DiagramadeplanificacinPERT.
Figura34
268
EnelsiguientediagramadeGanttdeactividadessemuestranloshitosytareasms
significativosparaeldesarrolloyejecucindeesteProyectoFindeCarrera.El26de
Octubrede2005comienzaelProyectoyfinalizael31deJuliode2006.
DiagramadeGantt
Figura35
269
oanlisisdecostesdecadauna
puestaenfuncionamientodel
presenteProyecto.
ElProyectosehadescompuestoenactividadesytareas,indicadasenlavaloracin
econmicacomotems.
EspecificacionesyDesarrolloSoftware
En cada una de las fases en que se ha dividido la ejecucin del Proyecto,
Especificacin,Desarrollo,IntegracinyPruebas, yFormacin,sereseanloscostes
directosexpresadosenmese/hombrenecesariosparaacometercadaunadelasfases,
indicndoselacategora:JefedeProyecto,Analista,Programador,etc.
2.
Instalacin,PruebaseIntegracindelSoftware
Enesteapartadoserecogenloscostesdirectosdelasactividadesdeintegracinylas
pruebasdelsoftwareenelentornodedesarrolloyeneldeexplotacin,incluidoslosgastos
adicionales,talescomolosdesplazamientosylasdietas.
270
3.
EquipamientoyLicenciasSoftware
Costes de todo el equipamiento e infraestructura (PC,s, impresoras, RAL,
comunicaciones),sifueranecesario.Asmismo,seespecificanlaslicenciasnecesariaspara
elentornodeexplotacin.
4.
Apoyologstico(Formacin)
Enesteconceptoseamparalaformacinaimpartir
alosposiblesoperadoresy
administradoresdelsistemaaimplantar.Seincluyeenlaformacinlaentregadetodala
documentacinnecesariaparaelcursodeformacin.
5.
IncrementoseIVA
Separtedelasumadelaspartidas(1),(2),(3),y(4)formandoelCosteDirectodel
Proyecto.AesteCosteDirectoseleaplicanlosGastosGeneralesH13%LyelBeneficio
IndustrialH6%L.LasumadelosconceptosdeCosteDirecto,GastosGeneralesyBeneficio
IndustrialconstituyenelTotalImportesinIVA.
AesteimporteselesumarnlosimpuestoscorrespondientescomoIVAH16%L,para
laPennsulayBaleares,IGICH5%LparalasislasCanariasoIPSIH0%LparaCeutay
Melilla.
TotalProyecto
La suma del Total Importe sin IVA ms
determinanelimportetotaldeldesarrollo,implantacinypuestaenserviciodelProyecto.
271
detalle de
cada
una de
las partidas
se expresa
tem
1
en la
P.1
Empresa
Unidad
(Meses/
Hombre)
Jefe de Proyecto
Analista/Programador
Desarrollo Inf.
Desarrollo Inf.
0,04
0,25
7.847,53
5.762,31
274,66
1.440,58
Jefe de Proyecto
Analista/Programador
Desarrollo Inf.
Desarrollo Inf.
0,04
0,25
7.847,53
5.762,31
274,66
1.440,58
Desarrollo Inf.
Desarrollo Inf.
0,11
0,75
7.847,53
5.762,31
863,23
4.321,73
Concepto
siguiente tabla.
Coste
Unitario
Coste Total
Total por
partidas
P.1.1.1
Plan de pruebas
P.1.1.2
b) Desarrollo software
Mtodos de resolucin de sistemas de ecuaciones
no lineales.
Mtodo del Punto Fijo.
Mtodo de Seidel.
Mtodo de Newton.
Mtodo de Cuasi -Newton.
Mtodo de la Mxima Pendiente.
Mtodo de Continuacin u Homotopia.
P.1.1.3
Jefe de Proyecto
Analista/Programador
Subtotal 1
2
P.1.2.1
0,01
0,10
7.847,53
5.762,31
109,87
576,23
P.1.2.2
Jefe de Proyecto
Analista/Programador
Instalacin y pruebas de aceptacin en las
instalaciones del cliente
(Entorno de Explotacin)
Jefe de Proyecto
Analista/Programador
Desarrollo Inf.
Desarrollo Inf.
0,01
0,10
7.847,53
5.762,31
109,87
576,23
Subtotal 2
8.615,44
1.372,19
Equipamiento y Licencias
P.1.3.1
P.1.3.2
AddLink Sw.
Cientfico
1.419,64
1.419,64
DigiBuy
75,99
75,99
Subtotal 3
1.495,63
P.1.4.1
Desarrollo Inf.
3.907,91
3.907,91
Subtotal 4
3.907,91
Incrementos e IVA
Gastos Generales
Beneficio Industrial
Desarrollo Inf.
Desarrollo Inf.
13%
6%
15.391,18
2.000,85
15.391,18
923,47
TOTAL IMPORTE SIN IVA
18.315,50
16%
18.315,50
2.930,48
TOTAL PROYECTO (EUROS)
21.245,98
272
12. Conclusiones
Alolargodeesteproyecto,sehanestudiadodiferentesmtodosnumricospara
aproximarunasolucinaunsistemadeecuacionesnolinealesmedianteseismtodosde
resolucindiferentes.
Sehandiseadoycodificadolosalgoritmosempleadospararesolversistemasde
ecuacionesnolinealesenellenguajesimblicoynumricodelpaqueteMathematica. En
cadamtodonumricoestudiadosehaindicadosudesarrollo,mostrandolosclculos
necesariosparaello,sehanvisualizadolosresultadosenformadetablay,cuandoseha
credonecesario,sehanmostradoalapardistintosalgoritmosempleadosconunmismo
sistemadeecuacionesparacompararlasventajasdelusodeunalgoritmouotroenla
resolucindeunmismoproblemaenloqueserefiereaeficienciayexactitud.
Por consiguiente, tras hacer un amplio recorrido por las bases matemticas
empleadasyporlascaractersticasdelasmismas,ytrashaberanalizadoyprogramadolos
algoritmos empleados para resolver el problema tratado, se pueden establecer las
conclusionestericasyprcticassiguientes:
1.
Laresolucindesistemasdeecuacionesnolinealesconsisteen,dadounpunto
inicial
aproximaresepuntoiterativamentealpuntosolucindelsistemadeecuacionesno
lineales.
El
2.
Hx1
H0L
, x2
H0L
mtododeNewtonparasistemasrequiereunabuenaaproximacininicial
...,xn
H0L
Lygeneraunasucesin
273
-1
F HxHk-1LL,
queconvergerpidamente,generalmentedeformacuadrtica,enunasolucinpsix est
suficientementecercadep.Sinembargo,nosiempreesfcildeterminarvaloresinicialesa
partirdelosqueseobtengaunasoluciny,adems,elmtododeNewtonrequiereevaluaro
2
aproximarn derivadasparcialesparacalcularlamatrizjacobiana,noperacionesescalares
paraevaluarFyresolverunsistemalinealdenecuacionesconnincgnitasencadapaso,lo
3
queconllevadelordendeOHn Loperaciones,porloqueesunmtodocomputacionalmente
muycostoso.Enestemtodoloserroresderedondeosevancorriguiendoenlassucesivas
iteraciones,esunmtodoautocorrector.
3.
ElmtododelPuntoFijoydeSeidel,convergendeformacuadrticaalasolucinpara
cualquierpuntoinicial.Encambioesnecesariorealizarunatransformacindelsistemade
ecuaciones,despejandoencadaecuacinunadelasvariablespararesolveralgebraicamente
cadaunadelasecuacionesparacadaunadelasvariables.Sinembargo,estatcnicararavez
tienexitoyaqueesdificilencontrarlatransformacinadecuadaentretodaslasposibles
transformacionesexistentes.ElmtododeSeidelacelera,generalmentelaconvergenciadela
iteracindelmtododelPuntoFijoutilizandolasaproximacionesmsrecientesalasolucin
encadaiteracinparacalcularlanuevaaproximacin.
4.
ElmtodoCuasiNewtonreducelacantidaddeclculosencadaiteracinquees
necesariorealizarenelmtododeNewton,sindisminuirsignificativamentelavelocidadde
convergenciaquetieneestemtodo.Sepasadelaconvergenciacuadrticadelmtodode
Newtonaunaconvergenciasuperlineal.EnestemtodosereemplazalamatrizjacobianaJ
porunamatrizAk-1cuyainversasedeterminadirectamenteencadapaso.Estoreduceel
274
aOHn L.
evaluacionesfuncionalesescalaresqueserequierensonalevaluarfi,loquepermiteahorrar
2
evaluacionesdefuncionesescalares.EnelmtodoCuasiNewtontambinesnecesario
disponerdeunabuenaaproximacinincialparaasegurarlaconvergenciadelmtodo.Otra
desventajadeestemtodoesque,adiferenciadelmtododeNewton,noesautocorrector;y
lassolucionesaproximadasqueresultanencadaiteracinsonmenosexactasqueenel
mtododeNewton.
5.
ElmtododelaMximaPendientesepresentacomounaformadeobtenerbuenas
aproximacionesinicialesparalosmtodosdeNewtonydeCuasiNewton.Aunqueel
mtododelaMximaPendientenoproporcionaunasucesinqueconvergerpidamente,
soloconvergedemaneralineal,esunmtododenaturalezaglobal,esdecir,norequiereuna
buenaaproximacininicialparaqueseproduzcalaconvergencia.Necesitaungrannmero
depasoscuandosepartedepuntoslejanosalasolucinytiendeaoscilaralrededordesta.
Cadapasosuponeunmovimientoenladireccindelgradienteconsentidonegativo,loque
implicamoverseenladireccinenqueelerrordecrececonmayorrapidez.Conelmtodo
delaMximaPendienteseaproximaunmnimolocaldeunafuncin
gdevariasvariables
que,paraaplicarlo,setoma
n
...,xnLD .
Elvalormnimodegescero,quesealcanzacuandotodaslasfunciones
fison
simultneamentecero.
6.
LosmtodosdeContinuacin yHomotopatambinsepuedenusarpararesolver
275
sistemasdeecuacionesnolineales,ysonobjetodeinvestigacinenlaactualidad.Enestos
mtodos,elproblemadadoesFHxL = 0.
Estintegradoenunafamiliadeproblemasdeunparmetroqueempleanun
parmetrlquetomavaloresen@0,1D.Elproblemaoriginalcorrespondeal =1,mientras
queparal =0lecorrespondeunproblemacuyasolucinesconocida.Porejemplo,el
conjuntodeproblemas
GHl,xL = l F HxL + H1 - lL H F HxL - F Hx LL = 0, para0 l 1,
0
dondex 0 n
vienedado,formaunahomotopa.
Paral =0lasolucines
l1
l2
...
ln = 1.Laaproximacinincialdela
solucinde
li FHxL + H1 - liL H F H xL - F Hx0LL = 0
seralasolucinxHl = li-1Ldelproblema
li-1 FHxL + H1 - li-1L H F H xL - F Hx0LL = 0.
Conestemtodoesnecesariorealizar4Ninversionesmatricialesencadaiteracin,
encambio,enelmtododeNewtonsoloesnecesarioinvertirunamatrizencadaiteracin,
porloqueeltrabajoqueconllevaelmtododeContinuacinequivale,aproximadamente,a
4NiteracionesdelmtododeNewton.ElmtododeContinuacin
puedeusarseperse,sin
quehagafaltadisponerdeunaeleccinparticularmentebuenadexH0L.Sinembargo,este
276
mtodotambinpuedeemplearseparaobteneraproximacionesinicialesparalosmtodosde
NewtonyCuasiNewton.
7.
ElmtododeNewtonserecomiendaparasistemasdeecuacionesnolinealesque
tenganvaloresrelativamentebajosdenyfuncionesescalaresquesepuedanevaluar
facilmente,ademssernecesariodisponerdeunpuntoinicialsuficientementebuenopara
asegurarlaconvergencia.ElmtodoCuasiNewtonesadecuadocuandosedisponedeun
puntoinicial suficientemente bueno para asegurarlaconvergencia,en cambio,noes
necesarioqueelsistemadeecuacionestengapocasvariablesosusfuncionesescalaressean
defacilevaluacin.
Los mtodos
de laMxima
recomiendancuandonosedisponedeunabuenaaproximacindelpuntoinicial,encambio
hayquetenerpresentequesonmslentosymscostososcomputacionalmete.
LosmtodosdelPuntoFijoydeSeidelsoloserecomiendancuandoelsistemade
ecuacionesnolinealesaresolverelmuysimpleyaquevaasernecesariorealizaruna
transformacin en las ecuaciones y su velocidad de convergencia no compensa esta
transformacin.
8.
Lossistemasdeecuacionesnolinealespuedenserutilizadosdediversasformasyen
unamplioespectrodeaplicacionesprcticasenelmbitodelaCienciaylaIngeniera.
9.
Comolneafuturadeanlisiseinvestigacinycomomejoraposibleaintroduciral
277
a)
ElmtododelaMximaPendienteadmitemuchasvariaciones,algunasde
lascualesincluyentcnicasmscomplejasparadetrminarelvalordea,queproducirun
mnimoconunafuncindeunasolavariableh.Enotrastcnicasseempleaelpolinomiode
Taylormultidimensionalparareemplazarlafuncindevariasvariablesoriginalgyreducir
almnimoelpolinomioenvezdeg.Aunquealgunasdeellastienenventajassobreel
procedimientoquesehautilizadoenesteproyecto;engeneral,todoslosmtodosdela
MximaPendientesonlinealmenteconvergentesyconvergenindependientementedela
aproximacininicial.Peroenalgunoscasospuedenconvergerenalgoquenoeselmnimo
absolutodelafuncing.
b)
MtododeContinuacinuHomotopa.
Enesteproyectosehautilzadoel
mtododeContinuacinensuvariantedelmtododeRungeKuttadeorden4,parareducir
elnmerodeinversionesquehayquerealizarenestemtodo,queesunadesusdesventajas,
sepodrausarunmtododeRungeKuttadeorden2,comoelmtododeEulerModificado,
oinclusoelmtododeEuler.OtraposibilidadesemplearvaloresmsbajosdeN.
278
setup_5.2.0_win.exequeseencuentraenelCD.Paralacorrectavisinyejecucindel
proyectoesnecesarioinstalarunasplantillas.
LasplantillasdeMathematicasecopianeneldirectoriodondesehayainstaladoel
programa,unidadCoDyeneldirectoriosiguiente:
\Archivosdeprograma\WolframResearch\Mathematica\XX\SystemFiles\FrontEnd\StyleSheets
siendoXX=5.1,5.2(segnlaversininstaladadeMathematica).
LasplantillabsicasaemplearenelPFCsoncuatro:
a)
Proyecto_Fin_de_Carrera.nb:plantillaaemplearconelficheroPFC.
b)
Proyecto_Fin_de_Carrera(Resumen).nb: plantilla que se usar con el fichero PFC
(NombreyApellidos)(Resumen,Abstact,ndice).nb.
c)
Proyecto_Fin_de_Carrera(Sincdigo).nb.SeemplearconelficheroPFCcuando
279
tengalosproblemasincluidos.
d)
Cdigo_Mtodos_Numricos_12.nb(FicherosdeProblemasydelosAlgoritmos).
Tambinesnecesarioinstalarunpaqueteespecialparapodervisualizaryutilizarla
interfazdeusuario.
ElpaquetedeMathematicaTheSuperWidgetPackage(SWP)seha
diseadoparacrearinterfacesdeusuario(GUI)conMathematica.Senecesitaelpaquete
denominadoGUIKit,incluidoenMathematica5.1oversionessuperiores.Noobstante,el
paqueteSuperWidgetPackagerequiereMathematica5.2.
Lainstalacinde SuperWidgetPackage(Versin2.82libre)serealizadelmodo
siguiente:
1.
Secopiaelficherosuperwidgetpackage.zipeneldirectorio
DD\Archivosdeprograma\WolframResearch\Mathematica\5.2
siendoDD=launidaddondesehayainstaladoMathematica.
2.
Se debe preservar la estructura de ficheros contenida en el fichero ZIP. Se
descomprimeelficheroperopreservandolaestructuradeficheros.
3.
Seinicia Mathematica,yen men Help seselecciona Rebuild Helpindex.Para
integrarladocumentacindeSWPconelrestodeMathematica.
4.
Laayudadeestepaquete,SWP,seencuentraenHelpBrowseryenlasolapaAdd
ons&Links.
280
Manual de Usuario
ParautilizarlaaplicacinesnecesariotenerinstaladoelsoftwareMathematica5.2,
elpaqueteTheSuperWidgetylasplantillassuministradasenelCD.
Primerosedebearbiryejecutartodoelfichero"Cdigo(ResolucindeSistemasde
EcuacionesnoLineales.nb).Paraejecutartodoelficherosedebeseleccionarenlabarrade
herramientasdeMathematica"Kernel","Evaluation"y"EvaluateNotebook".Assern
reconocidostodoslosalgoritmosdesarrollados.Alejecutarsetodoelarchivosearranca
automticamentelainterfazgrfico.
Pararesolverproblemasconestainterfazsesiguenlossiguientespasos:
1.
Seleccionarelbotndelmtododeresolucinelegidoenelbotn"Mtodos".
2.
Introducirlosdatosnecesariosparalaresolucindelproblemacomoseindicaenla
ventanadelmtodo.
3.
Pulsarelbotn"Realizar".
Unavezquesehanobtenidolosresultadossiquequierevolveraresolverun
problemaconelmismomtodovolveraintroducirlosdatosenlamismaventanaypulsar
elbotn"Realizar".Sisequiereresolverunproblemaconotromtodoosalirdela
aplicacinsedebecerrarlaventanadelmtodoysevuelvealaventanaprincipaldela
aplicacindesdelaquesepuedecerrarlaaplicacinoejecutarproblemasconculaquier
mtodosiguiendolospasosanteriores.
281
Bibliografa
[BURD98]
Burden,Richard.L.;Faires,J.Douglas.
AnlisisNumrico.6Edicin.
InternationalThomsonEditores,Mxico,1998.
[CARN79]
Carnahan,Brice;Luther,H.A.;Wilkes,JamesO.
ClculoNumrico.Mtodos,Aplicaciones
EditorialRueda,Madrid,1979.
[CHAP87]
Chapra,StevenC.;Canale,RaymondP.
MtodosNumricosparaIngenierosconaplicacionesenComputadora
McGrawHill.Mxico,1987.
[DEMI85]
Demidovich,B.P."ProblemasyejerciciosdeAnlisisMatemtico".
Paraninfo.1985.
[GARC97]
GarcaMerayo,Flix;NevotLuna,Antonio.
MtodosNumricosenformadeProblemasResueltos.
UPCO.Madrid,1997.
[GERA00]
Gerald,F.;Wheatley,PatrickO.
AnlisisNumricoconAplicaciones
PearsonEducacin,Mxico,2000.
[INFA99]
InfantedelRo,JuanAntonio;ReyCabezas,JosMara.
MtodosNumricos.Teora,ProblemasyPrcticasconMATLAB.
EdicionesPirmide.Madrid,1999.
[MATH00]
Mathews,JohnH.;Fink,KurtisD.
MtodosNumricosconMATLAB.3edicin.PrenticeHall,Madrid,2000.
282
[MOUR88]
Moursund,DavidG.;Duris,CharlesS.
ElementaryTheoryandApplicationAnalysis.
DoverPublications,Inc.NewYork,1988.
[MUTO98]
MUTO,V.CursodeMtodosNumricos.
ServicioEditorialUniversidaddelPasVasco,1998.
[NAKA91]
Nakamura,S.AppliedNumericalMethodswhitSoftware.
EditorialPrenticeHall,1991.
[PORT]
Portaencasa,R.;Vega,C.;Fdez.Baizn,C.;Morant,J.L.;Ribagorda,A.
AnlisisNumrico.FacultaddeInformtica.Madrid.
[RINC01]
Rincn,F.
AnlisisMatemticoyMtodosNumricosparaInformtica
Ed.Dpto.PublicacionesdelaE.U.I.Madrid,2001.
[RODR03]
RodrguezGmez,Fco.Javier
ClculoyMtodosNumricos.Teora,AlgoritmosyroblemasP Resueltos
UniversidadPontificiaComillas.Madrid,2003.
[RODR98]
RodrguezGmez,Fco.Javier;GarcaMerayo,Flix.
FundamentosyAplicacionesdeMathematica.Paraninfo.Madrid,1998.
[SCHE72]
Scheid,Francis.
AnlisisNumricos.Teoray775ProblemasResuelto.
SerieSchaum,McGrawHill.Madrid,1972.
[SCHE91]
Scheid,F.;diCostanzo,R.E.
MtodosNumricos.SegundaEdicin.McGrawHill,1991.
[VILL96]
DelaVillaCuenca,Agustn.
ProblemasdelgebraconEsquemasTericos.3Edicin.
283
URLs
[1]
http://www.edicionsupc.es/ftppublic/forum/FEEL1102.pdf
Mtodosnumricosutilizadosenlaresolucinde
sistemasdeecuacionesnolineales.
[2]
http://www.es.wikipedia.org/wiki/No_linealidad
Nolinealidad.
[3]
http://kmplexblog.com/2005/05%lasorganizacionescomosistemasno.html
Lasorganizacionescomosistemasnolineales.
[4]
http://sai.azc.uam.mx/apoyodidactico/
MtodosNumricos.
[5]
http://homepage.cem.itesm.mx/lgomez/curso_basico.htm
CursobsicodelpaquetecomputacionalMathematica.
[6]
http://ma1.eii.us.es/miembros/cobos/AN/Utilidades/Chapter1.pdf
Ecuacionesnolineales.
284