Differential Equation, Past Papers, UOS Main Campus

Differential Equation Past Paper 2017 – BSCS 3rd Term UOS (MATH-2215)

ProgramBSCS
Term3rd
Year2017
Course codeMATH-2215
AnswersSolved ✓

University of Sargodha Differential Equation (MATH-2215) paper for BS Computer Science 3rd term, 2017 exam (80 marks, 2:30 hours). Solved answers are given below for all 16 short questions and all six long questions. Every solution was checked with a computer algebra system, and a misprint in Q7 is pointed out.

Solved answers

Q1 – Short answers (16 × 2)

i. Verify y = 6/5 − (6/5)e−20x solves dy/dx + 20y = 24: dy/dx = 24e−20x. Then dy/dx + 20y = 24e−20x + 24 − 24e−20x = 24. ✓

ii. Mathematical model: A description of a real system or phenomenon in mathematical terms, often as a differential equation, e.g. Newton’s law of cooling dT/dt = k(T − Tm).

iii. y⁽⁴⁾ − 7y″ − 18y = 0: Auxiliary equation m⁴ − 7m² − 18 = 0 → (m² − 9)(m² + 2) = 0 → m = ±3, ±i√2. y = c1e3x + c2e−3x + c3cos √2x + c4sin √2x.

iv. dP/dt = P − P²: Separable: dP/[P(1 − P)] = dt → ln|P/(1 − P)| = t + c → P/(1 − P) = c1et → P = c1et/(1 + c1et) (also P = 0 and P = 1).

v. Explicit solution: A solution in which the dependent variable is expressed directly as a function of the independent variable, y = φ(x), e.g. y = e5x. (An implicit solution is a relation G(x, y) = 0.)

vi. Value of k for exactness: M = y³ + kxy⁴ − 2x, N = 3xy² + 20x²y³. ∂M/∂y = 3y² + 4kxy³, ∂N/∂x = 3y² + 40xy³. Exact when 4k = 40, so k = 10.

vii. Linear differential equation: An equation that is linear in y and its derivatives: an(x)y⁽ⁿ⁾ + … + a1(x)y′ + a0(x)y = g(x); the coefficients depend only on x and there are no products or powers of y.

viii. dy/dx = 5y: dy/y = 5dx → ln|y| = 5x + c → y = c e5x.

ix. Annihilator operator: A differential operator L that makes a function zero: L(f) = 0. E.g. Dⁿ annihilates xn−1, (D − α) annihilates eαx, and D² + β² annihilates cos βx and sin βx.

x. Are x, x − 1, x + 3 linearly independent? No. 4f1 − 3f2 − f3 = 4x − 3x + 3 − x − 3 = 0 with non-zero constants, and the Wronskian is 0. They are linearly dependent.

xi. Homogeneous equation: A first-order equation M dx + N dy = 0 where M and N are homogeneous functions of the same degree, e.g. (x² + y²)dx + (x² − xy)dy = 0; it is solved with y = ux. (A linear equation is homogeneous when g(x) = 0, e.g. y″ + y = 0.)

xii. dy/dx = 1 + ey−x+5: Let u = y − x, so du/dx = eu+5 → e−u−5du = dx → −e−(y−x+5) = x + c → y = x − 5 − ln(c − x).

xiii. Matrix form of dx/dt = 4x − 7y, dy/dt = 5x: X′ = [[4, −7], [5, 0]] X, where X = [x, y]T.

xiv. x²y′ + xy = 1: The left side is x(xy′ + y) = x(xy)′, so (xy)′ = 1/x → xy = ln x + c → y = (ln x + c)/x.

xv. y1 = x sin(ln x) for x²y″ − xy′ + 2y = 0; find y2: Cauchy–Euler: m(m − 1) − m + 2 = 0 → m² − 2m + 2 = 0 → m = 1 ± i, so y2 = x cos(ln x) (also obtained by reduction of order).

xvi. D² + 3D − 10 annihilates e2x + 3e−5x: D² + 3D − 10 = (D − 2)(D + 5). (D − 2) annihilates e2x and (D + 5) annihilates e−5x. Directly: for e2x, 4 + 6 − 10 = 0; for e−5x, 25 − 15 − 10 = 0. ✓

Q2 – y″ − 4y′ + 4y = (x + 1)e3x

Auxiliary equation m² − 4m + 4 = 0 → m = 2 (double), so yc = (c1 + c2x)e2x.

Try yp = (Ax + B)e3x (undetermined coefficients). Then yp′ = (3Ax + A + 3B)e3x, yp″ = (9Ax + 6A + 9B)e3x. Substituting: [9Ax + 6A + 9B − 12Ax − 4A − 12B + 4Ax + 4B]e3x = (Ax + 2A + B)e3x = (x + 1)e3x, so A = 1 and 2A + B = 1 → B = −1.

y = (c1 + c2x)e2x + (x − 1)e3x

Q3 – (x² + 1)y″ + xy′ − y = 0

y1 = x is a solution: y″ = 0, so 0 + x − x = 0. ✓

Reduction of order: in standard form P(x) = x/(x² + 1), so e−∫P dx = (x² + 1)−1/2. y2 = y1∫ e−∫P dx/y1² dx = x ∫ dx/(x²√(x² + 1)) = x(−√(x² + 1)/x) = −√(x² + 1). Dropping the sign: y2 = √(x² + 1).

Check: y2′ = x/√(x² + 1), y2″ = 1/(x² + 1)3/2 → (x² + 1)y″ + xy′ − y = [1 + x² − (x² + 1)]/√(x² + 1) = 0. ✓

y = c1x + c2√(x² + 1)

Q4 – y″ + 2y′ + y = sin x + 3 cos 2x

m² + 2m + 1 = 0 → m = −1 (double): yc = (c1 + c2x)e−x.

For sin x try A cos x + B sin x: (−A + 2B + A)cos x + (−B − 2A + B)sin x = 2B cos x − 2A sin x = sin x → A = −1/2, B = 0.

For 3 cos 2x try C cos 2x + E sin 2x: (−3C + 4E)cos 2x + (−3E − 4C)sin 2x = 3 cos 2x → −3C + 4E = 3, −4C − 3E = 0 → C = −9/25, E = 12/25.

y = (c1 + c2x)e−x − ½ cos x − (9/25) cos 2x + (12/25) sin 2x

Q5 – System dx/dt = 4x + 7y, dy/dt = x − 2y

Matrix A = [[4, 7], [1, −2]]. det(A − λI) = (4 − λ)(−2 − λ) − 7 = λ² − 2λ − 15 = (λ − 5)(λ + 3) = 0 → λ = 5, −3.

  • λ = 5: (4 − 5)k1 + 7k2 = 0 → K1 = [7, 1]T.
  • λ = −3: 7k1 + 7k2 = 0 → K2 = [1, −1]T.

x(t) = 7c1e5t + c2e−3t, y(t) = c1e5t − c2e−3t

Q6 – x²y″ − 3xy′ + 4y = 0, y(1) = 5, y′(1) = 3

Cauchy–Euler: try y = xm: m(m − 1) − 3m + 4 = m² − 4m + 4 = 0 → m = 2 (repeated). General solution y = c1x² + c2x² ln x.

y(1) = c1 = 5. y′ = 2c1x + c2(2x ln x + x), so y′(1) = 2c1 + c2 = 3 → c2 = −7.

y = 5x² − 7x² ln x = x²(5 − 7 ln x)

Q7 – Exact equation with y(1) = 1

As printed, (x + 1)² dx + (2xy + x² − 1) dy = 0 is not exact (∂M/∂y = 0 but ∂N/∂x = 2x + 2y). This is the textbook exercise (x + y)² dx + (2xy + x² − 1) dy = 0, y(1) = 1, so the “1” is a misprint for “y”. With M = (x + y)²: ∂M/∂y = 2(x + y) = ∂N/∂x, so it is exact.

f(x, y) = ∫(x + y)² dx = (x + y)³/3 + h(y). Then ∂f/∂y = (x + y)² + h′(y) = 2xy + x² − 1 → x² + 2xy + y² + h′(y) = x² + 2xy − 1 → h′(y) = −1 − y² → h(y) = −y − y³/3.

General solution: (x + y)³/3 − y − y³/3 = c. With y(1) = 1: 8/3 − 1 − 1/3 = 4/3.

(x + y)³ − y³ − 3y = 4, i.e. x³ + 3x²y + 3xy² − 3y = 4.

Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.