Introduction to Differential Equations


Introduction to Differential Equations

Maria
Differential equations can feel unfamiliar at first, but the basic idea is manageable: instead of being given a function directly, you're given information about one of its derivatives. We’ll begin with equations that can be solved by straightforward integration, then move into verification and motion applications.

Corey
So if we see d y over d x equals 4x, we should read it as a statement about a function y of x. It says that the derivative of y is always 4x. Our job is to find functions whose derivative has that value.

Maria
Exactly. Since the right-hand side depends only on x, this is an antiderivative problem. Integrating 4x with respect to x gives y equals 2x squared plus C. That is the general solution, and the constant C is important because every possible value of C produces a different solution.

Corey
So the general solution represents infinitely many functions, not just one. We can check it by differentiating: the derivative of 2x squared plus C is 4x, because the derivative of the constant is zero.

Maria
You may also see the same equation written as y prime equals 4x. That is prime notation, while d y over d x is called Leibniz notation. Both mean the same thing here, and the function notation f prime of x equals 4x would express the idea more explicitly.

Corey
Now add the initial condition y of 0 equals 7. That means the function's output is 7 when x is 0. Substitute x equals 0 and y equals 7 into the general solution: 7 equals 2 times 0 squared plus C, so C equals 7.

Maria
Therefore the unique solution to the initial value problem is y equals 2x squared plus 7. A general solution gives infinitely many functions, while an initial condition selects one particular function from that family.

Corey
And notice that in this example C happens to equal the initial value, 7, because the expression involving x becomes zero at x equals zero. That will not always happen.

Maria
Right. Consider d y over d t equals sine of t over 2, with y of 0 equals negative 3. The independent variable is now t instead of x, which is especially natural when t represents time, although the letter itself is just a convention.

Corey
We integrate sine of t over 2. The result is y equals negative 2 cosine of t over 2 plus C. The negative sign is necessary because the derivative of cosine is negative sine, and the factor 2 compensates for the one-half produced by the chain rule.

Maria
To use the initial condition, substitute t equals 0 and y equals negative 3. We get negative 3 equals negative 2 cosine of 0 plus C, which becomes negative 3 equals negative 2 plus C. Therefore C equals negative 1.

Corey
So the unique solution is y equals negative 2 cosine of t over 2 minus 1. Checking t equals zero gives negative 2 minus 1, or negative 3, exactly as required.

Maria
The next type of problem gives us a proposed function and asks us to show that it solves an initial value problem. For y equals x e to the negative x plus 2 e to the negative x, we need to verify two things: the derivative must match the differential equation, and the function must satisfy the initial condition.

Corey
Differentiating x e to the negative x requires the product rule. The derivative is e to the negative x plus x times negative e to the negative x. The derivative of 2 e to the negative x is negative 2 e to the negative x.

Maria
Combine those terms and factor out e to the negative x. The result is 1 minus x, all multiplied by e to the negative x. That matches the differential equation's right-hand side, so the differential equation is satisfied.

Corey
For the initial condition, set x equal to zero. The first term is zero times e to the zero, and the second is 2e to the zero, giving y of 0 equals 2. So the proposed function satisfies both parts of the initial value problem.

Maria
Now consider y equals sine of 3t and the differential equation d y over d t equals 3 times the square root of 1 minus y squared, with y of 0 equal to zero. Differentiating the proposed solution gives d y over d t equals 3 cosine of 3t.

Corey
At first that does not look like the right-hand side, because the right side is written in terms of y rather than t. But we replace y with the proposed function sine of 3t. The right side becomes 3 times the square root of 1 minus sine squared of 3t.

Maria
Using one minus sine squared theta equals cosine squared theta, that becomes 3 times the square root of cosine squared of 3t. The square root of a quantity squared is its absolute value, so this is 3 times the absolute value of cosine of 3t.

Corey
That explains why the interval matters. From t equals 0 to t equals pi over 6, the angle 3t runs from 0 to pi over 2, where cosine is nonnegative. On that interval, the absolute value can be removed, and the right side becomes 3 cosine of 3t, matching the derivative.

Maria
Finally, y of 0 equals sine of 0, which is zero. So the function satisfies the initial condition as well. The interval from 0 to pi over 6 is one suitable choice; it is not the only interval that could work.

Corey
Now let's apply differential equations to motion. A rock is thrown upward from a 200-meter cliff, and in the worked model its initial upward velocity is 50 meters per second. We ignore air resistance and use gravitational acceleration of 9.8 meters per second squared downward.

Maria
Take upward as the positive direction. Newton's second law gives force equals mass times acceleration, while gravity supplies a downward force of negative mass times g. The masses cancel, leaving acceleration equal to negative g, or d v over d t equals negative 9.8.

Corey
Integrating gives v equals negative g t plus C. Since the initial velocity is 50 meters per second, v of 0 equals 50, so C equals 50. The velocity function is therefore v equals negative 9.8t plus 50.

Maria
The rock reaches its highest point when its velocity is zero. Setting negative 9.8t plus 50 equal to zero gives t equals 50 divided by 9.8, approximately 5.1 seconds.

Corey
To find height, integrate velocity. The height function is y equals negative g over 2 times t squared plus 50t plus C. Since the initial height is 200 meters, C equals 200, so y equals negative 4.9t squared plus 50t plus 200.

Maria
Substituting the peak time, about 5.1 seconds, gives a maximum height of approximately 327.6 meters above the beach. The initial 200 meters from the cliff and the additional upward travel are both included.

Corey
To determine when the rock reaches the beach, set the height equal to zero: negative 4.9t squared plus 50t plus 200 equals zero. The quadratic formula gives two solutions, but one is negative and does not represent a future time. The positive solution is approximately 13.3 seconds.

Maria
At impact, use the velocity formula: v of 13.3 equals negative 9.8 times 13.3 plus 50, approximately negative 80.1 meters per second. The negative sign indicates downward motion; the speed is the absolute value, about 80.1 meters per second.

Corey
Our next application is a 727 jet accelerating from rest to 200 miles per hour in 30 seconds. We assume constant acceleration, even though a real aircraft's acceleration would not be perfectly constant, and then we would add extra runway as a safety margin.

Maria
The acceleration is change in velocity divided by elapsed time. Thirty seconds is one hundred twentieth of an hour, so the acceleration is 200 divided by one hundred twentieth, or 24,000 miles per hour per hour.

Corey
Integrating acceleration gives velocity v equals 24,000t plus C. Because the jet starts from rest, C is zero. Thus v equals 24,000t, and at t equals one hundred twentieth of an hour, the velocity is 200 miles per hour.

Maria
Integrate velocity once more to get position: x equals 12,000t squared plus C. Taking the starting position as zero makes C zero. At t equal to one hundred twentieth, the distance is 12,000 divided by 120 squared, which is five-sixths of a mile, or about 0.83 mile.

Corey
Since that is an idealized calculation, the practical recommendation is to provide additional room—at least a mile or perhaps more—rather than treating five-sixths of a mile as a comfortable real-world runway length.

Maria
The final application has nonconstant acceleration. A car starts from rest, with acceleration negative 0.6t plus 4 meters per second squared, and we want to know how long it takes to travel 100 meters.

Corey
Integrating acceleration gives velocity v equals negative 0.3t squared plus 4t plus C. Starting from rest makes C zero. Integrating again gives position x equals negative 0.1t cubed plus 2t squared plus C, and taking the initial position as zero makes that second constant zero too.

Maria
Set the position equal to 100: negative 0.1t cubed plus 2t squared equals 100. Equivalently, after rearranging and multiplying by negative 10, we solve t cubed minus 20t squared plus 1000 equals zero.

Corey
A graphing tool can locate the relevant solution, and within the specified 0-to-12-second interval the answer is t equals 10 seconds. We can check it directly: negative 0.1 times 10 cubed is negative 100, while 2 times 10 squared is 200, giving a position of 100 meters.

Maria
So the overall strategy is consistent: identify the derivative described by the differential equation, integrate to obtain the next function, and use initial conditions to determine constants. For verification problems, differentiate the proposed function and check the initial value. For motion, acceleration integrates to velocity, and velocity integrates to position.

Ask anything
We've read this whole study set, so questions about it get the best answers.