Welcome to the study of Ordinary Differential Equations ODEs! This is the first article of our series, and it will guide you through the significance of ODEs and familiarize you with essential concepts, paving the way for more advanced studies. Why do ODEs Matter? Ordinary Differential Equations ODEs help us understand how things change over time. They are crucial in many fields because they model how systems behave and evolve. Some sections in this article may seem too advanced at first sight, but don't worry, by the end of this series, you’ll have a solid understanding of these concepts. We're here to guide you through each step of your learning journey. Don’t be afraid to learn; what you're about to discover is not only important but also widely applicable in various fields. To get you motivated and eager to learn, let's first explore some real-world applications of ODEs, so you can see just how powerful and useful they are. Engineering. Do you know how engineers manage to control water levels in large tanks? Imagine you're an engineer working on a system that controls the water level in a reservoir, and you're filling a water tank with a faucet. The amount of water in the tank depends on how long the faucet has been running. If the faucet flows at a constant rate, the amount of water in the tank increases steadily over time. Now, let's represent this situation with a simple ODE: \frac{dy}{dt} = r\ Here: - y\ is the amount of water in the tank (the dependent variable. - t\ is the time the faucet has been running (the independent variable. - r\ is the rate at which water flows into the tank (a constant). This equation tells us that the rate at which the amount of water y\ increases over time t\ is equal to the constant rate r\ . This simple ODE helps you predict how much water will be in the tank after a certain amount of time. Economics Ever wondered how bankers and economists predict the future? In economics, ODEs describe how investments grow over time. Suppose you invest an amount I_0 at an annual interest rate r . The growth of your investment is governed by: dI/dt = rI where I is the investment amount. This simple yet powerful model helps investors and economists forecast financial growth, predict the future, and make informed decisions about savings and investments. Key Concepts To master ODEs, you need to understand some foundational concepts: Differential Equations Think back to your algebra lessons where you solved equations like 2x + 3 = 5\ . You found the value of x\ , that made the equation true. In differential equations, we're doing something similar, but instead of finding a single number, we're finding a function that describes how something changes over time. A differential equation is a type of mathematical equation that involves derivatives, which measure how something changes. For example, consider how the temperature of a hot cup of coffee decreases over time. This cooling process can be described by the differential equation \frac{dy}{dt} = -ky\ . Here, y\ represents the temperature of the coffee, \frac{dy}{dt}\ shows how the temperature is changing with time, and k\ is a constant that tells us how quickly the coffee is cooling, where in this case, y is the dependent variable, and t is the independent variable. Just like you solved for x\ in algebra, here you’ll be solving for functions that describe how things behave as they change. Don’t worry, it might seem different at first, but with practice, you’ll see how it all connects! ODE and PDE Ordinary Differential Equations involve one independent variable and one or more dependent variables; in other words, it contains only ordinary derivatives. In the examples below, x is the independent variable, and y is the dependent variable. The equations describe how y changes as x changes. Example 1: \frac{dy}{dx} = cosx Example 2: \frac{d^{2}y}{dx^{2}} + 8y= e^{-2x}\ A partial differential equation (PDE) involves two or more independent variables and one or more dependent variables. In other words, it contains partial derivatives, which measure how a function changes with respect to several variables. In the examples below, the independent variables are x and t , and the dependent variable is y , which depends on x and t . These equations describe how the dependent variable y changes with respect to the independent variables x and t . Example 1: \frac{\partial y}{\partial x} + \frac{\partial y}{\partial t} = 0\ Example 2: \frac{\partial y}{\partial t} = 2y^2 \frac{\partial y}{\partial x}\ We'll be focusing mainly on ODEs. Linear and Nonlinear An equation is considered linear if the dependent variable and its derivatives appear in a linear manner in a polynomial form. This means; The dependent variable y and its derivatives appear to the power of one. They are not multiplied by each other. Essentially, each term involving the dependent variable y or its derivatives is simply added or subtracted, not multiplied or divided. So equations can be categorized as; Equations in polynomial form. \frac{dy}{dx} +p(x)y= q(x) Example: Equations are not in polynomial form, but can be converted to polynomial form. Example: \frac{\frac{d^{2}y}{dx^{2}}}{y+\frac{dy}{dx}} = x To convert the given equation to a polynomial form, - Eliminate the Fraction: Multiply both sides of the equation by y + \frac{dy}{dx}\ to eliminate the fraction: \frac{d^2y}{dx^2} = x\left(y + \frac{dy}{dx}\right)\ Distribute the Right-Hand Side: Expand the right-hand side by distributing x\ over y\ and \frac{dy}{dx}\ : \frac{d^2y}{dx^2} = xy + x\frac{dy}{dx}\ Rearrange the Equation: Rearrange the equation so that all terms are on one side, setting the equation equal to zero: \frac{d^2y}{dx^2} - xy - x\frac{dy}{dx} = 0\ Now this equation is in polynomial form. Equations are not in polynomial form and cannot be converted to polynomial form. \sin(\frac{dy}{dx}) = y Examples: Can you answer if the following are linear or nonlinear, and the reasons why? Question 1 y \frac{dy}{dt} = t \ Non-linear Reason - Here, the dependent variable y and its derivative \frac{dy}{dt}\ appear multiplied together. Question 2 \frac{dy}{dx} + p(x)y = q(x) \ Linear Reason - Here, dependent variable y and its derivatives are in polynomial form raised to power 1 . Question 3 \frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y = e^x \ Linear Reason - Here, dependent variable y and its derivatives are in polynomial form raised to power 1 . Question 4 \frac{dy}{dx} = y^2 + x \ Non-linear Reason - Here, the dependent variable y is raised to the power 2 . Question 5 \frac{d^2y}{dx^2} + y^2 = \sin(x) \ Non-linear Reason - Here, the dependent variable y is raised to the power 2 . Question 6 \frac{dy}{dt}\frac{d^2y}{dt^2}+ y = 0\ Non-linear Reason - term involves the multiplication of the first \frac{dy}{dt}\frac{d^2y}{dt^2} and second derivatives of y . Order and Degree The order of a differential equation is determined by the highest derivative that appears in the equation, but only after the equation has been simplified or "rationalized." This means getting rid of any roots (like if there is a square root, by squaring both sides, if there is a cube root, cube both sides, and so on) and if there are fractions, multiply both sides as needed that involve derivatives, so the equation looks like a polynomial. The degree of a differential equation is determined by the exponent of the highest derivative, again after the equation has been rationalized. However, it's important to note that not all differential equations can have their order and degree defined. We will only focus on the ones where these can be clearly defined, specifically Ordinary Differential Equations ODEs in polynomial form. Example 1: \frac{d^3y}{dx^3} + \left(\frac{dy}{dx}\right)^2 = 0\ - Order: The highest derivative here is \frac{d^3y}{dx^3}\ , so the order is 3 . - Degree: The highest derivative \frac{d^3y}{dx^3}\ appears to the first power, it’s not squared, cubed, etc., so the degree is 1 . Example 2: \sqrt{\frac{d^2y}{dx^2}} + y \frac{dy}{dx} = x\ - Order: The highest derivative here is \frac{d^2y}{dx^2}\ , so the order is 2 . - Degree: In this case, the equation is not in a polynomial form due to the square root of the derivative, so the degree is not defined. However, in some functions, we can get rid of the rationalized form and then determine order and degree, but here, even though we square both sides because of the square root and the expansion, the equation is still not in a clear polynomial form. We will be focusing on equations like the first example, where the order and degree can be clearly defined, and the equation can be expressed in polynomial form. Example Questions: Can you determine the order and degree of the following differential equations? Question 1 \frac{dy}{dx} + 3y = e^x \ Order =1 Degree = 1 Question 2 \frac{\partial^2 u}{\partial x^2} + 2y = \cos(x) + u^2 = \sin(x) \ Order = 2 Degree = 2 Practice Questions set Find the order and the degree in the following ordinary differential equations \frac{dy}{dx} + xy^2 = 0\ \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = 0\ t^2 \frac{d^2 y}{dt^2} + t \frac{dy}{dt} + 2y = \sin(\sin t)\ \frac{d^2 y}{dx^2} = \sqrt{1 + \left(\frac{dy}{dx}\right)^2}\ \sin\left(\frac{dy}{dx}\right) + \frac{d^2 y}{dx^2} + 3x = 0\ Not sure about your answers? Don't worry, click the link below to check the video where the answers are explained. Determining Order and Degree Standard Form A differential equation is said to be in standard form if it can be expressed in the form \frac{dy}{dx} = f(x,y)\ where f(x, y) is a function of the independent variable x and the dependent variable y . Example 1: \frac{dy}{dx} = y \cos(x)\ Here, the equation is already in standard form, with f(x, y) = y \cos(x)\ . However, not all equations start in standard form. Example 2: y^2 \frac{dy}{dx} = e^x\ This equation is not in standard form because \frac{dy}{dx}\ is not isolated. To convert it to standard form, you can divide both sides by y^2\ , giving: \frac{dy}{dx} = e^x y^{-2}\ Now, the equation is in standard form, with f(x, y) = e^x y^{-2}\ . Solutions to an ODE A function y(x) = \phi(x) \ is called a solution of the differential equation \frac{dy}{dx} = f(x, y) \ if it satisfies the equation when substituted, i.e., \phi'(x) = f(x, \phi(x)) . To verify that a function y = f(x) is a solution of the ODE, we substitute the function into both sides of the differential equation. Example 1: Consider the ODE: \frac{dy}{dx} = x^2\ Consider: y = \frac{x^3}{3} + 1\ By differentiating above, we get: \frac{dy}{dx} = x^2\ This satisfies the equation, so y = \frac{x^3}{3} + 1 \ is indeed a solution. Now, consider another function: y = \frac{x^3}{3} + 4\ Take the derivative: \frac{dy}{dx} = x^2\ Again, this satisfies the ODE. It seems that any function of the form \frac{x^3}{3} \ plus any constant is a solution. Hence, the general solution is often written as: y = \frac{x^3}{3} + c\ where c is any constant. For example, c could be 1, 0, -1, etc. With differential equations, expect to see constants in the solution to ODEs. A constant like c that is allowed to take on multiple values in an equation is sometimes called a parameter. We can say that y = \frac{x^3}{3} + c \ represents the one-parameter family of solutions, integral curves, or solution curves of the differential equation, with parameter c . Initial Conditions To uniquely solve a differential equation, you need initial conditions that specify the value of the function and its derivatives at a particular point. For example, consider the equation: \frac{dy}{dx} = f(x,y)\ with the initial condition y(x_0) = y_0 \ . Example: Returning to our previous example, where \frac{dy}{dx} = x^2 \ , suppose we also know that y = 5 when x = 0 . This means y_0 = 5 \ . Since we have already solved the general form y = \frac{x^3}{3} + c \ , we can now substitute x = 0 and y = 5 into this equation: 5 = 0 + c \implies c = 5\ So, the unique solution is: y = \frac{x^3}{3} + 5 Here \ y_0 = 5 \ is the initial value. To find a unique solution to an ODE, such initial values are necessary. When you have a differential equation with an initial value, it is called an Initial Value Problem IVP. In our case: \frac{dy}{dx} = x^2, \quad y(0) = 5\ This IVP provides a unique solution \ y = \frac{x^3}{3} + 5 By grasping these foundational concepts, you are now ready to delve into first-order ODEs. Stay with us as we move forward to explore first-order ODEs in the next article, where we’ll introduce various methods to solve these foundational equations and see their applications in more detail.