Tc1, Tc2, Tc4–Tc6 - Software solutions and tangent fields
Explore first-order differential equations with a computer algebra system and a tangent-field plotter. You will control parameters, select and verify particular solutions, use isoclines to sketch a field, and read the domain and shape of a solution from its local directions.
Control the equation and its solution family separately
For , every point on the line has gradient zero. Does that make a solution?
A tangent field lets you see the trap: a line joining points with the same required gradient need not have that gradient itself. First, obtain some actual solution curves to compare with the field.
You already know
A first-order general solution contains a free constant. An initial condition selects a particular solution. You already know the integrating-factor method; here software performs the analytical solving while you interpret and check its output.
Use a CAS differential-equation solver with independent variable and dependent function . Enter the equation, request a general analytical solution and record any restrictions. Exact algebraic output is different from a table of numerical approximations. Some equations have no elementary analytical solution, so a failed symbolic request does not imply that no solution curve exists.
Consider
where changes the equation. The CAS can return
with arbitrary real . This family, and the software procedures below, are not printed in the formula booklet.
Plot this expression with separate sliders for and . Keep one fixed while varying the other. Different CAS systems may call the arbitrary constant something else; its mathematical role is unchanged.
Worked example 1: vary the integration constant
Question. Use analytical software to find the family for , then describe the curves with .
Plan. Set the equation parameter to zero, obtain the general family and vary only its integration constant.
| Software request or setting | Exact result or interpretation |
|---|---|
| Solve for | |
| Set ; vary | Three solutions of the same equation |
| Evaluate at | , giving |
| Set | Straight-line solution |
Why this step? Varying selects solutions of one equation; it does not alter the differential equation.
Answer. The family is . The selected curves have initial heights .
Check. Differentiating the family gives , and , so every plotted member satisfies the equation.
Change only the equation parameter from to ; retain the same three slider values of .
Worked example 2: vary the equation parameter
Question. Obtain the analytical family for , and compare those three curves with example 1.
Plan. Change the CAS equation as well as the plot's parameter, then inspect the new family.
| Software request or setting | Exact result or interpretation |
|---|---|
| Solve for | |
| Set ; vary | Solutions of the new equation |
| Evaluate at | , giving |
| Compare at the same | Each curve is units higher |
Why this step? Changing changes the whole family. Reusing a plot with the old equation would investigate the wrong differential equation.
Answer. The family is , translated upwards by at fixed .
Check. , with no restriction on real .
For either fixed , distinct values of give a difference , which never vanishes. These particular family members cannot cross.
[DIAGRAM: asset_name: Equation and integration-constant sliders; asset_slug: cas_family_parameters; caption: Changing C selects a curve, while changing a changes the differential equation; description: Two panels plot exact members y=x+a-1+C exp(-x) for a=0 and a=2, using C=-1,0,1 with matched colours. The two panels use matching axis ranges. The C=0 straight-line solution is labelled in each panel; an annotation states the two-unit vertical change at fixed C.]

Watch out
Wrong: set the arbitrary constant to zero because the software has returned a general solution. Right: retain it, label the parameter you are changing and apply an initial condition only when one is supplied.
Change the equation parameter again.
Verify both the equation and the initial condition
A verification has two separate targets: the proposed function must satisfy the differential equation throughout its stated interval, and it must satisfy the given condition. Checking one numerical point cannot establish the differential identity.
For a candidate , calculate and independently calculate . Show that they agree, then check the initial condition. A CAS can differentiate and simplify the residual to zero. Record the expressions being compared, rather than only “software says true”. This verification procedure is not supplied in the booklet.
Worked example 3: select one family member
Question. For , use the family to find the solution through , then verify it.
Plan. Determine , differentiate the selected function and substitute it into the right side independently.
Why this step? Agreement of these expressions verifies the equation for every real , rather than merely at the starting point.
Answer. , for real .
Check. . Both the equation and the initial condition hold.
Change only to , keeping the same initial condition.
Worked example 4: a family of particular solutions
Question. Select and verify the solution for through . Explain how the integration constant has changed.
Plan. Apply the unchanged point to the new equation's family, then check both requirements.
Why this step? Keeping the initial point fixed does not keep fixed when the equation changes.
Answer. , for real ; the constant is now , rather than .
Check. . More generally, the initial condition gives , producing the family of particular solutions
with the same starting point and varying .
At , this family contains the straight line . Sliders can reveal such a special case, but substitution explains why it works.
Watch out
Wrong: verify only , or compare with the unspecialised expression . Right: substitute the candidate for every occurrence of , simplify, and also check the condition.
Use one new equation parameter with the same point.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account