Differential Equations

Author: John J Weber III, PhD Corresponding Textbook Sections:

Expected Educational Results

Bloom’s Taxonomy

A modern version of Bloom’s Taxonomy is included here to recognize various different levels of understanding and to encourage you to work towards higher-order understanding (those at the top of the pyramid). All Objectives, Investigations, Activities, etc. are color-coded with the level of understanding.

Bloom’s Taxonomy for different levels of understanding
Figure 1.1: Bloom's Taxonomy

Differential Equations

Solving ODEs

There are mathematics courses designed to discuss solving ODEs, e.g., Math 2652 – Introduction to Differential Equations.

There are three (3) methods to solve ODEs:

  1. Analytic Method – using theorems to manipulate symbols to find exact solutions;

  2. Numeric Methods – finding an approximate solution (for solving IVPs);

  3. Graphical Methods – using a graph, called Direction Fields (also, Vector Fields), to understand the properties of solutions.

We will discuss only one (1) analytic method: Solving first-order separable ODEs.

Definition: First-Order Separable ODEs

Procedure to Solving First-Order Separable ODEs

Suppose an ODE can be written (using any valid algebraic procedure) in the form dydx=f(x)g(y).

  1. Then the ODE can be rewritten (using only multiplication or division) as: dyg(y)=f(x)dx. NOTE: The variables in the above equation have been separated, i.e., all x factors are on one side of the ODE and all y factors are on the other side of the ODE. You may need to factor prior to separating the variables.

  2. Integrate both sides of the equation: dyg(y)=f(x)dx.

  3. Use +C only with the integral of the independent variable.

  4. Solve for y, if possible.

  5. Check your answer.

Example 01: Solve dydx=yx+1

Solution:

  1. The ODE is a first-order separable ODE because dydx=y(1x+1)

  2. Rewrite:

    1. Multiply both sides of the ODE by the differential dx dxdydx=y(1x+1)dx

    2. Divide both sides of the ODE by y dyy=y(1x+1)dx1y

  3. Integrate both sides of the ODE: dyy=dxx+1ln|y|=ln|x+1|+C

  4. Solve for y:

    1. Rewrite answer using the exponential form of the logarithm: ln|y|=ln|x+1|+C|y|=eln|x+1|+C

    2. Use property of exponents to rewrite the right-side of the solution: |y|=eln|x+1|+C|y|=eln|x+1|eC

    3. We know eC>0; however, let k=eC, where k is any Real number (positive, negative, or zero), i.e., eC=kR |y|=eln|x+1|eCy=k(x+1)

    4. Thus, the solution is: y=k(x+1)

  5. Check your answer:

    1. We need the derivative, dydx: ddx(y)=ddx[k(x+1)]dydx=k

    2. Substitute y and dydx into the original ODE: dydx=yx+1k=k(x+1)x+1k=k which is a true statement. Thus, the answer is correct.

Use Technology to Verify Solutions to First-order Separable ODEs.

NOTE: The use of technology in this activity is to verify solutions to first-order separable ODEs. On all Assessments, you must show work demonstrating your understanding of finding solutions to first-order separable ODEs.

Mathematica:

Warnings:

  1. Be very careful with the syntax. Syntax is the set of rules on how to write computer code. Every software program has its own unique syntax. Some basic Mathematica syntax is located at: http://www.jjw3.com/TECH_Common_Functions.pdf.

  2. Mathematica requires two == for the equals sign in an equation.

  3. You may need parens, ( and ), to group multiple terms or factors in the numerator and denominator.

  4. Mathematica does not recognize implicit multiplication, e.g., xy; to multiply x with y in Mathematica, you must use a space, xy, or an asterisk, xy.

  5. DSolve[ ] has at least three arguments:

    1. The ODE to be solved;

    2. The dependent variable in function notation, i.e., y[x];

    3. The independent variable, x.

  6. For help on using the DSolve[ ] function:

    1. In Mathematica, execute the code: ?DSolve

    2. Click on near the bottom-left of output

    3. Click on local

    4. Read how to use the DSolve[ ] function – you will be able to copy-paste code.

  7. Remember, correct Mathematica code will be all black except for variables.

  8. To execute code (including comment codes), press and hold the SHIFT key and press the ENTER key.

  9. Mathematica may return a result in a different, but equivalent, form than your answer.

Mathematica solution:

{{y(x)C[1](x+1)}}

which looks similar to our solution for Example 01.

Investigation 03

Solve the following ODEs, if possible.

  1. dydx=yx2+1

  2. dydx=xsec(x)sin(y)

  3. xdydx=y3

  4. dydx=1+xyxy

  5. dydx=cos2(y)

  6. dydx=yx

  7. dydx=xy

  8. dydx=3x2ey

  9. xsin2(y)dydx=x2+1

  10. y=e2x+y

  11. y=y+1x1

  12. y=xyx+1

  13. y=xy+2yx2xy3y+x3

Use Technology to Factor Expressions.

NOTE: On all Assessments, you may use technology to factor expressions without showing any work.

Mathematica:

Warnings:

  1. Be very careful with the syntax. Syntax is the set of rules on how to write computer code. Every software program has its own unique syntax. Some basic Mathematica syntax is located at: http://www.jjw3.com/TECH_Common_Functions.pdf.

  2. You may need parens, ( and ), to group multiple terms in the numerator and denominator.

  3. Mathematica does not recognize implicit multiplication, e.g., xy; to multiply x with y in Mathematica, you must use a space, xy, or an asterisk, xy.

  4. Factor[ ] has one argument:

    1. The expression to be factored.

  5. For help on using the Factor[ ] function:

    1. In Mathematica, execute the code: ?Factor

    2. Click on near the bottom-left of output

    3. Click on local

    4. Read how to use the Factor[ ] function – you will be able to copy-paste code.

  6. Remember, correct Mathematica code will be all black except for variables.

  7. To execute code (including comment codes), press and hold the SHIFT key and press the ENTER key.

Homework

At this time, you should be able to complete the following assignments:

CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License [http://creativecommons.org/licenses/by-nc-sa/4.0/].

Created: Thursday, 15 October 2020 6:42 EDT Last Modified: Thursday, 14 July 2022 - 09:30 (EDT)