Solving ODEs with Mathematica Anchors: Scandiumδ Jocelyn Anleitner Diane Feldkamp.

Slides:



Advertisements
Similar presentations
Beginning Programming for Engineers
Advertisements

Objective: Students will be able to write and solve two- step equations with one variable!
Modeling Basics: 4. Numerical ODE Solving In Excel 5. Solving ODEs in Mathematica By Peter Woolf University of Michigan Michigan Chemical Process Dynamics.
Equations and Their Solutions
Mech300 Numerical Methods, Hong Kong University of Science and Technology. 1 Part Seven Ordinary Differential Equations.
3-3 Solving Multiplication Equations. Solve Solution GOAL Find the value of the variable that makes the equation TRUE. The value that makes the equation.
7.8 Equations Involving Radicals. Solving Equations Involving Radicals :  1. the term with a variable in the radicand on one side of the sign.  2. Raise.
© 2007 by S - Squared, Inc. All Rights Reserved.
Section 2.4 solving equations with variables on both sides of the equal sign. Day 1.
Lesson 2-4 Solving Equations with Variables on Both Side August 14, 2014.
Day Problems Solve each equation. Check your answer. 1. x – 3 = 102. m – 3 = = a = k
Substitution Method: 1. Solve the following system of equations by substitution. Step 1 is already completed. Step 2:Substitute x+3 into 2 nd equation.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 23.
4.2 Solving Inequalities using ADD or SUB. 4.2 – Solving Inequalities Goals / “I can…”  Use addition to solve inequalities  Use subtraction to solve.
1.graph inequalities on a number line. 2.solve inequalities using addition and subtraction. Objective The student will be able to:
1.3 Open Sentences A mathematical statement with one or more variables is called an open sentence. An open sentence is neither true nor false until the.
SIMULTANEOUS EQUATIONS Problem of the Day! n There are 100 animals in a zoo, some which have 2 legs and some have 4 legs. If there are 262 animal legs.
Differential equations. Many applications of mathematics involve two variables and a relation between them is required. This relation is often expressed.
By Christina Armetta. The First step is to get the given equation into standard form. Standard form is Example of putting an equation in standard form:
7.3 Solving Systems of Equations by Elimination Using Multiplication Solve by Elimination Example Problems Practice Problems.
An exponential equation is one in which a variable occurs in the exponent. An exponential equation in which each side can be expressed in terms of the.
Chapter 1: Variables in Algebra
Differential Equations Linear Equations with Variable Coefficients.
EE 401 Control Systems Analysis and Design A Review of The Laplace Transform Wednesday 27 Aug 2014 EE 401: Control Systems Analysis and Design Slide 1.
Lesson 2-3: Solving Equations by Multiplication and Division Algebra 1 CP Mrs. Mongold.
Solving Inequalities Using Addition & Subtraction.
System of Equations Solve by Substitution. A System of Equations:  Consists of two linear equations  We want to find out information about the two lines:
EE 401 Control Systems Analysis and Design A Review of The Laplace Transform Friday 15 Jan 2016 EE 401: Control Systems Analysis and Design Slide 1 of.
Solving multi step equations. 12X + 3 = 4X X 12X + 3 = 3X X 9X + 3 = X = X =
Solving equations with variable on both sides Part 1.
11.3 Solving Radical Equations Definitions & Rules Simplifying Radicals Practice Problems.
Identities, Contradictions and Conditional Equations.
Textbook pages 69 & 73 IAN pages 91 & 95. Each side of the equation must be balanced. We balance an equation by doing the same thing to both sides of.
Differential Equations and a few helpful ways to solve them
5.8 Radical Equations and Inequalities
< > < < < < < > Solving Inequalities
Solve Systems of Equations by Elimination
8-5 Exponential and Logarithmic Equations
Enter Title Here Created by.
1-5 Equations Goals: Solve equations with one variable
Variables on Both Sides with Equations
Using Addition & Subtraction
Solving Equations by Factoring and Problem Solving
Compound Inequalities
< > < < < < < > Solving Inequalities
< > < < Solving Inequalities < < < >.
< > < < < < < > Solving Inequalities
Using Addition & Subtraction
Solve a system of linear equation in two variables
Solving Equations Using A Graphing Utility
What is an equation? An equation is a mathematical statement that two expressions are equal. For example, = 7 is an equation. Note: An equation.
EQ: How do I solve an equation in one variable?
2 Understanding Variables and Solving Equations.
Solving Percent Problem with Equations
Page 18 Rule: Area Formula: L x W  Input x Input  (Input) = Output
Using Addition & Subtraction
Solving 1-Step Integer Equations
Solving Linear Equations and Inequalities
Solving One-Step Equations
< > < < < < < > Solving Inequalities
Trig Equations w/ Multiple Angles.
< > < < Solving Inequalities < < < >.
Solving Polynomials by Factoring
Unit 4. Day 13..
Algebra: Variables and Expressions
Variables and Equations
Unit 1 Getting Ready Part II
< > < < < < < > Solving Inequalities
Objective: Write, Graph, and Solve Inequalities
Double-Angle Formulas
Presentation transcript:

Solving ODEs with Mathematica Anchors: Scandiumδ Jocelyn Anleitner Diane Feldkamp

Mathematica Basics  Purpose: Mathematica solves difficult mathematical formulas  Focus: solving ordinary differential equations (ODEs) of 1 st and higher order using Mathematica

Mathematica Syntax  Details about important syntax for Mathematica can be reviewed on the wiki page titled “Solving ODEs with Mathematica”  For entering ODEs, use double equal signs (==) to define the functions  When finished with a line, use “Shift”+ “Enter” for Mathematica to compute the answer

Dsolve and NDSolve  For ODEs without initial conditions, use Dsolve  For ODEs with initial conditions, use NDSolve Type of EquationSyntaxExample Equation(s)Dsolve for Example One ODEDsolve[eqn,y,x]y''+16y=0Dsolve[y''[x]+16y[x]==0,y,x] Multiple ODEsDsolve[{eqn1,eqn2,…},{y1,y2,…},x] y1'-y2-x=0 y2'-y1-1=0 Dsolve[{y1'[x]-y2[x]-x==0,y2'[x]-y1[x]- 1==0},{y1,y2},x] Type of EquationSyntaxExample Equation(s)Dsolve for Example One ODE NDSolve[{eqn,i1,i2…},y,{x,xmin,xma x}] y''+16y=0,y(0)=1, y'(0)=0 NDSolve[{y''[x]+16y==0,y[0]==1,y'[0]==0},y,{x, 0,30}] Multiple ODEs NDSolve[{eqn1, eqn2,..., i1, i2, …},{y1,y2},{x,xmin,xmax}] y1'-y2-x=0 y2'-y1-1=0 y1(0)=0,y2(0)=0 NDSolve[{y1'[x]-y2[x]-x==0,y2'[x]-y1[x]- 1==0,y1[0]==y2[0]==0},{y1,y2},{x,20}]

Example: Semi-batch Reactor (Worked Out Example 2) Reaction: A  B First-order ODE with Initial Conditions Use NDSolve in Mathematica Given Variables:

Entering in Mathematica  Open Mathematica (Version shown here is Mathematica 6)  Use the following steps to solve the ODE in Mathematica: 1.Input ODE 2.Define given variables

Entering in Mathematica (cont.) 3.Define a variable to NDSolve and enter inputs 4.Plot the solution X is conversion, and X[0] is entered as instead of 0 so that the ODE will not be undefined

Sources Solving ODEs with Mathematica (wiki): /Solving_ODEs_with_Mathematica