Anda di halaman 1dari 4

- Comandos para graficar Campos de Pendientes

EDOS de la forma
dy
dt
= f Ix , yL
1. Comando Vector Plot[ ]
VectorPlot[{1, f[x,y] } , {x, xmin , xmax } , {y, ymin , ymax }]
Ejemplos:
VectorPlot@81, - 2 y t <, 8t, - 3, 3<, 8y, - 3, 3<D

-1

-2

-3

-3 -2 -1 0 1 2 3

2. Comando StreamPlot[ ]
StreamPlot[{1, f[x,y] } , {x, xmin , xmax } , {y, ymin , ymax }]
Ejemplos:
2 Comandos Campo Pendientes - EDOS 2.nb

StreamPlot@81, - 2 y t <, 8t, - 3, 3<, 8y, - 3, 3<D

-1

-2

-3

-3 -2 -1 0 1 2 3

f@t_, x_D := -5*t - 4 * x

StreamPlot@81, f@t, xD <, 8t, - 3, 3<, 8x, - 3, 3<D

-1

-2

-3

-3 -2 -1 0 1 2 3
Comandos Campo Pendientes - EDOS 2.nb 3

- Comandos EDOS 2 grado


1. Comando DSolve[ ]
DSolve[{ ecuacion diferencial , condicion 1, condicion 2 } , y[ t ] , t ]
Ejemplo:

w := 20.1

Solucion = DSolve@8y ''@tD + 20 y@tD 5 Cos@w * tD, y '@0D 0, y@0D 0<, y@tD, tD
88y@tD - 50.0624 H- 0.998753 Cos@4.47214 tD +
1. Cos@0.0111664 tD Cos@4.47214 tD - 0.00124688 Cos@4.47214 tD Cos@8.95544 tD -
1. Sin@0.0111664 tD Sin@4.47214 tD - 0.00124688 Sin@4.47214 tD Sin@8.95544 tDL<<

Graficando y[ t ]:
Plot@y@tD . Solucion@@1DD, 8t, 0, 10<D

2 4 6 8 10

-2

-4

Observacin: Notar que los comandos que se utilizaron /. y Solucion [[1]]


- Observar que el comado DSolve[ ] entrega el resultado en forma de lista, por eso al escribir
Solucion [[1]] se esta seleccionando el elemento 1 de la lista que yo defin como Solucion.
- El comando /. se utiliza para reemplazar y[t] por el valor de y[t] que est en Solucion[[1]], osea
la expresion buscada.
- Si se quieren evitar utilizar todo eso, lleguen y copien todo la expresion:
4 Comandos Campo Pendientes - EDOS 2.nb

Plot@- 50.06242206970452` H- 0.998753115268427` Cos@4.47213595499958` tD +


1.` Cos@0.011166399292399376` tD Cos@4.47213595499958` tD -
0.0012468847315729788` Cos@4.47213595499958` tD Cos@8.955438309291559` tD -
1.` Sin@0.011166399292399376` tD Sin@4.47213595499958` tD -
0.0012468847315729788` Sin@4.47213595499958` tD
Sin@8.955438309291559` tDL, 8t, 0, 10<D

2 4 6 8 10

-2

-4

2. No olvidar los tipicos comandos que utilizan en las sesiones para resolver las EDOS paso a
paso, Solve[ ], Plot[ ], Simplify[ ], FullSimplify[ ], etc.

Anda mungkin juga menyukai