When a prime indicates differentiation, the independent variable will be named if it is unambiguous; otherwise, a variable name must be specified. In the equations y′ = y, y′ = sin x and y′ = sin x + t, the independent variable is ambiguous and a dialog box appears asking for the independent variable. When a notation is used for differentiation that names the independent variable, it is taken from context and no dialog box appears.
Solve ODE + Exact
y′ = sin x (Specify x), Exact solution is: yx
= - cos x + C1
y′ = sin x (Specify t), Exact solution is: yt
=
sin x
t + C1
y′ = sin x + t (Specify x), Exact solution is: yx
= - cos x + tx + C1
y′ = sin x + t (Specify t), Exact solution is: yt
=
sin x
t +
t2 + C1
y′ = y, Exact solution is: yt
= etC1
The constant C1 indicates that there is a family of solutions, one for each choice of C1. The following figure shows solutions for y′ = y corresponding to the choices 1/2, 1, 2, 3, and 4 for C1. To replicate this plot, drag solutions to the frame one at a time and then edit the colors on the Plot Components page of the Plot Properties dialog.
dtbpF3in2.0003in0pt
Scientific Notebook recognizes a variety of notation for a
differential equation. The following examples illustrate some of this
variety. The Leibniz notation
or the Dx notation
provides Scientific Notebook with enough information to determine
the independent variable without a dialog box.
Solve ODE + Exact
= y + x, Exact solution is: y
x
= - x - 1 + exC1
y′ + xy = x (Specify x), Exact solution is: yx
= 1 + e-
x2C
Dxy - y = sin x, Exact solution is: yx
= -
cos x -
sin x + exC1
Following is a plot of three particular solutions for Dxy - y = sin x corresponding to C1 = 1, 2, 3. To replicate this plot, drag solutions to the frame one at a time and then edit the colors on the Plot Components page of the Plot Properties dialog.
Plot 2D + Rectangular
-cos x -
sin x + ex, -
cos x -
sin x + 2ex, -
cos x -
sin x + 3exdtbpF3in2.0003in0pt
The three solutions can be distinguished by evaluation at 0. For example, the solution with C1 = 1 crosses the y-axis at y = 1/2.
Solve ODE + Exact
y′′ + y = x2 (Specify x), Exact solution is: yx
= - 2 + x2 + C1cos x + C2sin x
The following plot shows three solutions generated with constants
C1, C2
=
1, 1
,
C1, C2
=
5, 1
, and
C1, C2
=
1, 5
. To
replicate this plot, drag solutions to the frame one at a time and then edit
the colors on the Plot Components page of the Plot
Properties dialog.
Plot 2D + Rectangular
x2 -2 + sin x + cos x, x2 -2 + 5 sin x + cos x, x2 -2 + sin x + 5 cos x
dtbpF3in2.0003in0pt
The particular solution y(x) = x2 -2 + sin x + 5 cos x is the one whose graph crosses the y-axis at y = 3.
Solve ODE + Exact
+
= x + y, Exact solution is: y
x
= - 1 - x + C1e
-1 +
x + C2e-
1 +
x
xy′ - y = x2, Exact solution is : yx
= x2 + xC1
Some differential equations that are not readily solvable by this method can be solved after rewriting the equation, as shown in the following two examples.