Differential Equations and a few helpful ways to solve them

Slides:



Advertisements
Similar presentations
Using MatLab and Excel to Solve Building Energy Simulation Problems Jordan Clark
Advertisements

Differential Equations Math Review with Matlab: Finding Solutions to Differential Equations S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department.
Lecture 2. A Day of Principles The principle of virtual work d’Alembert’s principle Hamilton’s principle 1 (with an example that applies ‘em all at the.
Using Inverse Operations
Chapter 13 MIMs - Mobile Immobile Models. Consider the Following Case You have two connected domains that can exchange mass
What is my attitude towards mathematics? October 2011.
N 58 Graphical Solutions to Quadratic Functions Subject Content Reference: N6.7h GCSE Maths Number & Algebra.
Math – Volumes Using Cross-Sections 1. 2.
Quadratic equations A review. Factorising Quadratics to solve!- four methods 1) Common factors you must take out any common factors first x 2 +19x=0 1)
Solution of. Linear Differential Equations The first special case of first order differential equations that we will look is the linear first order differential.
EGR 2201 Unit 9 First-Order Circuits  Read Alexander & Sadiku, Chapter 7.  Homework #9 and Lab #9 due next week.  Quiz next week.
Hands-on Introduction to Mathematica. Primarily a computer program to do symbolic algebra and calculus Does Plotting, Numerical and Web stuff too. Very.
Modified Bessel Equations 홍성민. General Bessel Equation of order n: (1) The general solution of Eq.(1) Let’s consider the solutions of the 4.
Math 231: Differential Equations Set 2: Solving Variables Separable Type Differential Equations Notes abridged from the Power Point Notes of Dr. Richard.
9-4C Methods of Solving Quadratic Equations Adapted from Math 8H Completing the Square JoAnn Evans You will need a calculator for today’s lesson.
P2 Chapter 8 CIE Centre A-level Pure Maths © Adam Gibson.
EGR 2201 Unit 9 First-Order Circuits
Mr Barton’s Maths Notes
ECE 1100: Introduction to Electrical and Computer Engineering
ECON 102 Tutorial: Week 20 Shane Murphy
Numerical Solutions to the Diffusion Equation
Fourier Transforms - Solving the Diffusion Equation
Chapter 1: Definitions, Families of Curves
Solving Systems of Equations
SLOPE FIELDS & EULER’S METHOD
Functions Domain and Range.
SLOPE FIELDS & EULER’S METHOD
3.5 General feeling that knowledge of hydrology has improved … but more is needed.
FLOWCHARTS Part 1.
Differential Equations
Graphs of Rational Functions
< > < < < < < > Solving Inequalities
Hands-on Introduction to Mathematica
Algebra 7. Solving Quadratic Equations
Simultaneous Equations
Graphs 2. Quadratics and Cubics
Systems of Ordinary Differential Equations Case I: real eigenvalues of multiplicity 1 MAT 275.
Session 10 – Straight Line Graphs
Please hand in your assignment at the front desk as you come in 
Teacher slide Objectives: To consider how A level choices affect your options when applying to universities. You need: A level choices – student worksheet.
7.1 Slope Fields and Euler’s Method
Mr Barton’s Maths Notes
Reasoning and Problem Solving Maths Café
Differential Equations
Inequalities Objective: Students will be able to solve, graphing and write inequalities with one variable and apply them to real world situations.
Solving Inequalities.
I Love Engineering! Name of Mentor
Properties of the Real Numbers Part I
10.4 Solving Equations in Factored Form
Integration.
Solving Linear Equations
Mr F’s Maths Notes Algebra 9. Inequalities.
Solving Differential Equations
Solving Systems by Elimination (Part 1 – Addition/Subtraction) Students will be able to solve systems exactly by using addition or subtraction to eliminate.
Mr Barton’s Maths Notes
Mr Barton’s Maths Notes
< > < < < < < > Solving Inequalities
Author: Kaiqing Fan Company: Mastech Digital Inc.
Systems of equations and the substitution method
Assignment 1: due 1/16/19 Estimate all of the zero of x3-x2-2x+1 graphically. Write a MatLab code for Newton’s method. Use your code to refine the graphical.
Using Inverse Operations
Mr Barton’s Maths Notes
1.6 Solving Inequalities I’ve taught you my way of solving inequalities but here’s another way to make you an even stronger math student!
Simultaneous Equations
Solving Quadratic Equations by Factorisation
Reading Between the Lines!
Count to 100, identify number, estimate
Finding the Missing Coordinate
Counting and estimation
Solving Absolute Value Equations
Presentation transcript:

Differential Equations and a few helpful ways to solve them

Differential Equations In this class we will focus on solving ordinary differential equations that represent the physical processes we are interested in studying. With perhaps a few exceptions the most complicated differential equation we will look at will be second order, which means it will look something like Sometimes you may be able to solve the equation by hand. Other times not. Here we will cover some useful methods to help you solve them as you need to.

SOS MATH Great website that has so much helpful stuff on it and is pretty accessible and easy to follow, unlike so many others. http://sosmath.com/diffeq/diffeq.html A lot of the differential equations we are interested are solved there. I have always found it useful as it helps me learn to solve these things by hand.

Mathematica As a student at Notre Dame you can download and have access to Mathematica, which is an incredibly powerful and amazing tool for solving all sorts of mathematical problems. If it cannot solve the differential equation we are looking at then it is unlikely you can either. The specific command for solving a differential equation is DSolve

Example Solve the following differential equation in Mathematica assuming that D(x) and l(x) are constants. Rearrange (we will assume D is constant, but may not always be)

In Mathematica Open a clean sheet Define you equation Type eq:=DD*C’’[x}==lambda*C[x] Hit shift+return Confirm it is correct Type eq Hit shift +Return Solve the differential equation Type Dsolve[eq,C,x]

Example

Now you try Solve the following differential equation

You can also specify boundary conditions Solve Subject to boundary conditions

Example

You try Solve Subject to

OK Now you’re in good shape to solve pretty much any of the ordinary differential equations that you will face in this class You will have a few of these for homework just to make sure that you feel comfortable with it all.

Numerical Solutions Coupled Ordinary Differential equations. Imagine I have two (or more) concentrations that are coupled to each other such that Plot the concentrations over 100 times units

Before we solve this Look at the equations carefully. What do you think the solution is going to look like Do a few things What is Steady State/Equilibrium Where do both start, where do they end? Draw what you think solution will look like.

Hopefully you remember from JJW You can approximate the derivative by (for small Dt) So I can write my equations as With these I can write a loop to solve for C1 and C2 at whatever time I want

Verify this solution With Mathematica you can easily show that the theoretical solution to this problem is

Ok you try this slightly harder one Solve

Alternative If you prefer not to write your own solver and use a more efficient one you can use Matlab’s inbuilt ode45 function (https://www.mathworks.com/help/matlab/ref/ode45.html) Or You can use the numerical solver NDSolve in Mathematics (http://reference.wolfram.com/language/tutorial/NumericalSolutio nOfDifferentialEquations.html) - I do not personally love this On the following slide I show you how to solve some of the problems we have looked at with both, but leave it to you to invest time and learn how to use them.

Matlab ode45

Mathematica NDSolve