Preface
This tutorial is made solely for the purpose of education and it is designed for students taking Applied Math 0330. It is primarily for students who have very little experience or have never used Mathematica before and would like to learn more of the basics for this computer algebra system. As a friendly reminder, don't forget to clear variables in use and/or the kernel.
Finally, the commands in this tutorial are all written in bold black font, while Mathematica output is in regular fonts. This means that you can copy and paste all comamnds into Mathematica, change the parameters and run them. You, as the user, are free to use the scripts to your needs for learning how to use the Mathematica program, and have the right to distribute this tutorial and refer to this tutorial as long as this tutorial is accredited appropriately.
Return to computing page for the second course APMA0340
Return to Mathematica tutorial for the second course APMA0330
Return to Mathematica tutorial for the first course APMA0340
Return to the main page for the course APMA0340
Return to the main page for the course APMA0330
Return to Part IV of the course APMA0330
Boundary Value Problems
Consider a second order differential equation
Theorem: Suppose that f(t,x,y) is continuous on the region \( R = \left\{ (t,x,y)\, : \, a \le t \le b, \ -\infty < x < \infty , \ -\infty < y < \infty \right\} \) and that \( \partial f/\partial x = f_x \quad \partial f/\partial y = f_y \) are continuous on R. If there exists a positive constant M for which fx and fy satisfy
The notation \( y = x' (t) \) has been used to distinguish the third variable of the function \( f(t,x,x' ) . \) Recall that we also use the dot notation for derivatives with respect to time variable t: \( \dot{x} = x' (t) . \) Finally, the special case of linear differential equations is worthy of mention.
Theorem: Assume that f in the previous theorem has the linear form \( f(t,x,x' ) = p(t)\,x' + q(t)\,x + r(t) , \) and that f and its partial derivatives \( q(t) = \partial f/\partial x \) and p(t) are continuous on R. If there exists a positive constant M for which p(t) and q(t) satisfy
Conditions of the above theorem are fulfilled for constant coefficient equations when p(t) = p and q(t) = q. In this case, a closed form formula for solution is possible to obtain.
yb[x_] = y[x] /. DSolve[L[x, y] == 36 x, y[x], x][[1]]
const = Solve[{yb[0] == 2, yb[1] == 1, yb[2] == -1}, {C[1], C[2], C[3]}]
z[x_] = Simplify[yb[x] /. const[[1]]]
E^2 + E^3 + E^4)) + ( E^(-1 + x) (-10 + 18 E^2 + 3 E^3 - 10 E^5))/((-1 + E)^2 (1 + E) (1 +
E + E^2)) + (E^(4 - 2 x) (-18 + 10 E + 10 E^3 - 3 E^4))/(
1 - E^3 - E^5 + E^8) + 6 x
zb[x_] = yb[x] /. {C[1] -> p1, C[2] -> p2, C[3] -> p3}
Plot[zb[x], {x, -1, 2.5}]
Differential Equations of higher order
Fundamental Sets of Solutions
General Solutions
Complex Roots
Reduction of order
Variation of Parameters
Method of Undetermined Coefficients
Operator Methods
Numerical Solutions
Spring Problems
Pendulum
Electric Circuits
Boundary Value Problems
Shooting Method
Finite Difference Schemes
Applications
Return to Mathematica page
Return to the main page (APMA0330)
Return to the Part 1 (Plotting)
Return to the Part 2 (First Order ODEs)
Return to the Part 3 (Numerical Methods)
Return to the Part 4 (Second and Higher Order ODEs)
Return to the Part 5 (Series and Recurrences)
Return to the Part 6 (Laplace Transform)