Calculus II Lesson 14: Linear First Order Differential Equations / Parametric Equations Intro

  1. Linear First Order Differential Equations
  2. Physics
    1. Steps
    2. Exercise
  3. Logistic
    1. Carrying Capacity
    2. Other situations?
  4. Slope Fields
  5. 2D Curves
    1. Exercise
    2. Dimension
    3. Desmos
  6. Calculus
    1. Derivatives
    2. Tangent Lines
    3. Exercise

Linear First Order Differential Equations

A differential equation of the form $a(x)y^\prime + b(x) y = c(x)$ is called a linear first-order differential equation. It’s first-order because, as we saw last time, the highest derivative that shows up is $y^\prime$ (first derivative). It’s linear because the powers of $y$ and $y^\prime$ are both 1. The standard form for a linear first order differential equation is $y^\prime + p(x) y = q(x)$. That is, when the coefficient of $y^\prime$ is just 1.

To solve a linear first order differential equation, we first notice that if we multiply the expression $y^\prime + p(x) y$ by an expression $\mu(x)$, we end up with $\mu(x) y^\prime + (\mu(x) p(x)) y$. Moreover, notice that using the product rule for derivatives $(\mu(x) y)^\prime = \mu(x) y^\prime + \mu^\prime(x) y$. That is, $\mu(x) (y^\prime + p(x) y) = (\mu(x) y)^\prime$ if $\mu^\prime(x) = \mu(x) p(x)$. In other words, if we can solve the differential equation $\mu^\prime = \mu p(x)$, and then multiply both sides by this factor we can simplify the differential equation to just $(\mu(x) y)^\prime = \mu(x) q(x)$. We then can solve that by integrating and then solving for $y$. Note that there is a formula to find $\mu(x)$, which we will see.

This is known as the integrating factor method. So the steps to solving a linear first order differential equation are:

  1. Put the equation in standard form $y^\prime + p(x) y = q(x)$.
  2. Find an integrating factor, $\mu(x) = e^{\int p(x) dx}$. Notice that this solves the differential equation $\mu^\prime(x) = \mu(x) p(x)$.
  3. Multiply both sides by $\mu(x)$ so the equation becomes $(\mu(x) y)^\prime = \mu(x) q(x)$.
  4. Integrate both sides: $\mu(x) y = \int \mu(x) q(x) dx + C$.
  5. Divide by $\mu(x)$.

Let’s work through the example of $y^\prime + 2y = 1$, with $y(0) = 0$. Since it’s already in standard form, we start by finding $\mu(x)$. Since $p(x) = 2$, the integrating factor is $\mu(x) = e^{\int 2 dx}$, which is just $e^{2x}$. Notice that any antiderivative of $p(x)$ will work here.

Then we multiply both sides by $e^{2x}$: $(e^{2x} y)^\prime = e^{2x}$. Integrate and the equation is $e^{2x} y = \frac{1}{2} e^{2x} + C$. We can solve this now:

$y = \frac{e^{2x} + C}{2e^{2x}} = \frac{1}{2} + \frac{C}{e^{2x}}$, or $y = \frac{1}{2} + Ce^{-2x}$. Now we can use $y(0) = 0$ to find the solution: $y(0) = 0$ means that $\frac{1}{2} + C = 0$. So $C = -\frac{1}{2}$.

Therefore our final answer is $y = \frac{1}{2} - \frac{1}{2} e^{-2x}$.

Physics

Physics application: air resistance.

Air resistance on a ball
From Section 4.5 of the textbook

We get a differential equation! $m\frac{dv}{dt} = 9.8m - kv$.

Exercise: A penny with weight 0.0025 kg is dropped from the top of the Empire State Building (369m). The force of air resistance on the penny is assumed to be about $-.0025v$. Set up and solve a differential equation to find the formula for the velocity $v(t)$ of the penny at time $t$.

Steps

Steps to solving a linear first order differential equation:

  1. Get in standard form $y^\prime + p(x)y = q(x)$.
  2. Integrating factor: $\mu(x) = e^{\int p(x) dx}$
  3. Multiply both sides by $\mu(x)$: $(\mu(x) y)^\prime = \mu(x) q(x)$
  4. Integrate: $\mu(x) y = \int \mu(x) q(x) dx + C$.
  5. Divide by $\mu(x)$ / plug in initial conditions / solve.

Exercise

Solve the differential equation from earlier:

$v^\prime + v = 9.8$, with $v(0) = 0$

Now that we have $v(t)$:

Logistic

Carrying Capacity

Other situations?

Slope Fields

Slope field for y' = 3x + 2y - 4
$y^\prime = 3x + 2y - 4$ (textbook section 4.2)

2D Curves

Parametric Equations: Instead of $y = f(x)$, we have two functions: $x(t)$ and $y(t)$. $x(t)$ and $y(t)$ describe the $(x, y)$ coordinates of the curve at time $t$. $t$ is referred to as the parameter.

Example: Graph the curve described by $x(t) = t^2$, $y(t) = t + 1$:

$t$ $x$ $y$
-2 4 1
-1 1 0
0 0 1
1 1 2
2 4 3

Graph:

Exercise

Graph the parametric curve given by:

from $t = 0$ to $t = 2\pi$.

Find the point on the graph when $t = \pi/4$.

Dimension

Aside: is a circle a one-dimensional object or a two-dimensional object?

Desmos

Aside: graphing parametric curves in desmos.

Calculus

Derivatives

Chain rule! $\frac{dy}{dx} = \frac{y^\prime(t)}{x^\prime(t)}$

Tangent Lines

Example: Find the equation of the tangent line to the graph of $x(t) = 2\cos(t)$, $y(t) = 2\sin(t)$ at $t = \pi/4$.

Equation: $y - \sqrt{2} = -1(x - \sqrt{2})$.

Exercise

Find the equation of the line tangent to the parametric curve given by the equations $x(t) = t^2, y(t) = t^3$ when $t = 2$.