Math 242 Notes — Section 1.1 & 1.2: DEs, ODEs vs PDEs, Separation of Variables, Direct Integration, and IVPs
Separation of Variables (Key Example)
- Goal: Solve a separable DE by placing all x-terms and dx on one side and all y-terms and dy on the other, then integrate.
- The given DE (from the transcript) is separable:dxdy=x2y. This can be rewritten by separating variables as:
ydy=x2dx. - Integrate both sides:
∫ydy=∫x2dx⇒ln∣y∣=2ln∣x∣+C. - Exponentiate to solve for y:
∣y∣=eC∣x∣2.
Let K=±eC (K may be any real constant, including 0 for the zero-solution).
Thus the general solution is
y=Kx2.
Note: for a specific K, the origin can cause issues with the tangent-intercept argument; the derivation of the tangency property assumes the base point x_0 ≠ 0. - Tangent-line check (geometric property of the family): if the solution is y=Kx^2 and the tangent is taken at (x0, y0) with y0=Kx0^2, then the tangent line has slopey′(x<em>0)=2Kx</em>0.
The tangent line is
y−y<em>0=2Kx</em>0(x−x<em>0).
Its x-intercept occurs when y=0:
−y</em>0=2Kx<em>0(x</em>int−x<em>0)⇒x</em>int=x<em>0−2Kx<em>0y</em>0=x</em>0−2Kx</em>0Kx<em>02=2x<em>0.
Hence the tangent line intersects the x-axis at (x</em>0/2,0), as stated in the problem.
1.1: WORDS (Definitions, Concepts, and Examples)
- Differential Equation (DE): an equation that involves a function, its independent variables, and its derivatives.
- Examples:
- (a) y′′+y=0(where y=y(x))
- (b) y′=x(where y=y(x))
- (c) u<em>xx+u</em>yy=0(where u=u(x,y))
- Solution of a DE: a function that satisfies the differential equation.
- Examples of solutions:
- (a) For y′′+y=0, all functions of the formy=asinx+bcosxare solutions, since
y′=acosx−bsinx,y′′=−asinx−bcosx,
and y′′+y=(−asinx−bcosx)+(asinx+bcosx)=0. - (b) For y′=x, all functions of the formy=2x2+C,where C is a constant.
- (c) For u<em>xx+u</em>yy=0, functions such asu=excos(ay)(with constant a) satisfy the PDE since
u<em>x=excos(ay), u</em>xx=excos(ay), u<em>y=−aexsin(ay), u</em>yy=−a2excos(ay),
so that u<em>xx+u</em>yy=(1−a2)excos(ay)=0 when a is chosen appropriately (here a acts as a constant parameter; in the particular calculation a is used to illustrate the process).
- The order of a DE: the largest order of derivative that appears in the equation.
- Examples: y′′+y=0 is second-order; y′=x is first-order.
- Ordinary vs Partial Differential Equations:
- ODE: involves a function of a single variable. PDE: involves a function of multiple variables.
- In Math 242 we study ODEs; PDEs are studied in Math 521.
- Example family: Find all r such that y=erx is a solution of
y′′−2y′−3y=0.
- Substitute: y′=rerx, y′′=r2erx, so
r2erx−2rerx−3erx=0⇒erx(r2−2r−3)=0. - Since erx=0, solve r2−2r−3=0=(r−3)(r+1), giving
r=3,r=−1. - Therefore the general solution is a linear combination of the two independent solutions:
y=C<em>1e3x+C</em>2e−x.
- Example (IVP technique hint): often we use initial conditions to determine constants in the general solution.
- Additional context: The chapter emphasizes understanding what constitutes a solution, how to verify it, and how to interpret DEs conceptually (order, independence, and types of equations).
1.1: Section on Exponential Solutions and Characteristic Equations
- If we try y=erx in a linear constant-coefficient DE, we obtain a characteristic equation for r.
- Example: y''-2y'-3y=0
- Characteristic equation: r2−2r−3=0 with roots r=3,−1.
- Corresponding exponential solutions: e3x,e−x.
- General solution: y=C<em>1e3x+C</em>2e−x.
1.1.1: Example 2.1 (DE from a Tangent Intercept Condition)
- Problem: Find and solve a DE describing a function y=g(x) such that the tangent to the curve at (x<em>0,y</em>0) intersects the x-axis at (2,0) for all points on the curve.
- Geometric setup:
- Slope of tangent at (x<em>0,y</em>0) is y′(x0).
- Slope of the line through (x<em>0,y</em>0) and (2,0) is
m=x</em>0−2y<em>0−0=x</em>0−2y<em>0. - Since the tangent line has slope y′(x<em>0), we set
y′(x</em>0)=x</em>0−2y<em>0=x</em>0−2g(x<em>0).
- Thus the DE describing the curve is
dxdy=x−2y.
- Solve by separation:
ydy=x−2dx.
Integrate:
ln∣y∣=ln∣x−2∣+C.
Exponentiate:
∣y∣=C∣x−2∣.
Hence
y=K(x−2) with an arbitrary constant K (including K=0 giving the zero-solution). - Verification (qualitative): Each member y=K(x−2) is a straight line through (2,0). The tangent to the curve at every point coincides with the line itself, so the tangent line at any point passes through (2,0) as required.
1.2: DIRECT INTEGRATION
- Direct integration method for first-order DEs of the form y′=f(x):
- Integrate both sides: y=∫f(x)dx+C.
- Example: Solve the IVP y′=lnx, with y(1)=5.
- Integrate: y=∫lnxdx=xlnx−x+C.
- Apply initial condition: y(1)=5 gives
5=y(1)=1⋅ln1−1+C=−1+C⇒C=6. - Solution: y=xlnx−x+6.
- Integration by Parts (reformulation of the product rule):
- Product rule: d(uv)=udv+vdu.
- Integration by Parts formula:
∫udv=uv−∫vdu.
- Example: Use integration by parts to compute ∫lnxdx.
- Take u=lnx, dv=dx; then du=dx/x, v=x:
∫lnxdx=xlnx−∫x⋅x1dx=xlnx−x+C.
- Observations:
- Integration by parts is suited for products of unrelated functions, inverse functions, or tricky trigonometric integrals.
1.2: Example Verifications and IVPs
Example: Verify that y=xcos(lnx) satisfies the DE
x2y′′−xy′+2y=0.
- Compute derivatives:
- y=xcos(lnx).
- y′=cos(lnx)−sin(lnx) (one can derive this via product rule and chain rule; note that a common transcription in the notes shows a variant but the correct derivative is this).
- y′′=−xsin(lnx)+cos(lnx).
- Substitute into the left-hand side:
x2y′′−xy′+2y=x2(−xsin(lnx)+cos(lnx))−x(cos(lnx)−sin(lnx))+2xcos(lnx)
=−xsin(lnx)−xcos(lnx)−xcos(lnx)+xsin(lnx)+2xcos(lnx)=0. - Conclusion: y=xcos(lnx) is a solution.
Example: Solve the IVP for y′′+y=0 with y(0)=3, y′(0)=4.
- General solution of y′′+y=0 is
y(x)=asinx+bcosx. - Apply initial conditions:
- y(0)=asin0+bcos0=b=3 ⇒ b=3.
- y′(x)=acosx−bsinx; thus y′(0)=acos0−bsin0=a=4 ⇒ a=4.
- Solution: y(x)=4sinx+3cosx.
- Verification: y′′=−4sinx−3cosx, so y′′+y=(−4sinx−3cosx)+(4sinx+3cosx)=0.
- Initial conditions check: y(0)=3, y′(0)=4.
Note on IVPs: An Initial Value Problem (IVP) is a DE together with initial conditions; a well-posed IVP has a unique solution (this is a central concern in Math 242).
- Separation of Variables: dxdy=g(x)f(y)⇒f(y)dy=g(x)dx and then integrate.
- Direct Integration: y=∫f(x)dx+C.
- Integration by Parts: ∫udv=uv−∫vdu.
- Tangent-line intercept check (geometry of DEs) and general solution forms depend on the specific problem context.
- Common families:
- Linear constant-coefficient DEs: use characteristic equations.
- Separable DEs: reduce to two single-variable integrals.
- IVPs yield constants determined by initial conditions.