Class 12Mathematics · CalculusFull chapter

Differential Equations

The whole chapter in one place — read it, then test yourself. Clear notes, formula sheet, a practice quiz, and worked NCERT solutions & PYQs.

Differential Equations: Basic Concepts (Order and Degree)

Quick answer A differential equation connects a function to its derivatives; its order and degree describe the highest derivative present and the power to which it is raised.

An equation that involves an independent variable, a dependent variable, and one or more derivatives of the dependent variable with respect to the independent variable is called a differential equation (DE). When there is only one independent variable, it is called an ordinary differential equation (ODE) — this is the only type studied in this chapter.

Examples of differential equations: dy/dx = cos x, d²y/dx² + y = 0, and (dy/dx)³ + 2y = x. In each case, the equation involves derivatives such as dy/dx, d²y/dx², etc., alongside x and/or y.

The order of a differential equation is the order of the highest derivative appearing in it. The degree is the power (positive integer exponent) of the highest order derivative, provided the differential equation is expressible as a polynomial in all the derivatives that occur in it — that is, it must be free of radicals and fractional powers of derivatives, and free of derivatives inside transcendental functions such as sin, cos, log, or e. If the equation cannot be written in this polynomial form, the degree is not defined.

Worked Example 1: Find the order and degree of d²y/dx² + (dy/dx)³ + y = 0.
The highest order derivative is d²y/dx², so the order is 2. This derivative appears to the power 1 (only (dy/dx) is cubed, not the second derivative), so the degree is 1.

Worked Example 2: Find the order and degree of √(1 + (dy/dx)²) = d²y/dx².
This is not yet a polynomial in the derivatives because of the square root. Squaring both sides: 1 + (dy/dx)² = (d²y/dx²)². Now it is a polynomial in the derivatives. The highest order derivative is d²y/dx² (order 2), raised to the power 2, so the degree is 2.

Worked Example 3: Find the order and degree of (d³y/dx³)² + cos(dy/dx) = 0.
The highest derivative is d³y/dx³, so the order is 3. However, the term cos(dy/dx) means the equation is not a polynomial in dy/dx (no amount of algebra removes the cosine), so the degree is not defined.

General nth-order ODE F(x, y, y′, y″, …, y⁽ⁿ⁾) = 0 y⁽ⁿ⁾ is the nth derivative of y with respect to x; the order equals n.
Order rule Order = order of the highest derivative occurring in the DE Read directly from the equation.
Degree rule Degree = exponent of the highest order derivative (after making the DE polynomial in derivatives) Undefined if the DE cannot be written as a polynomial in the derivatives.
Remember
  • Order = order of the highest derivative present in the equation.
  • Degree = power of the highest order derivative, only when the DE is a polynomial in all derivatives.
  • Radicals or fractional powers involving derivatives must be removed (by squaring, cubing, etc.) before reading off the degree.
  • If a derivative sits inside a trigonometric, log, or exponential function, the degree is not defined.
  • Order and degree are always positive integers when defined; order is defined for every ODE, degree may not be.

General and Particular Solutions of a Differential Equation

Quick answer A solution is a function that satisfies the differential equation; the general solution carries arbitrary constants, and a particular solution fixes them using given conditions.

A function y = f(x) that satisfies a differential equation (i.e., substituting it and its derivatives makes the equation an identity) is called a solution of that differential equation. The general solution is a solution that contains as many independent arbitrary constants as the order of the differential equation. When specific numerical values are assigned to these constants — usually determined from given initial or boundary conditions — the result is called a particular solution.

To verify that a given function is a solution, differentiate it the required number of times and substitute y, y′, y″, etc. into the differential equation to check the equation is satisfied identically.

Worked Example: (a) Verify that y = a cos x + b sin x (a, b arbitrary constants) is a solution of y″ + y = 0. (b) The related equation y″ − 4y = 0 has general solution y = A e2x + B e−2x; find the particular solution satisfying y(0) = 0 and y′(0) = 4.

First, for y = a cos x + b sin x: y′ = −a sin x + b cos x, and y″ = −a cos x − b sin x = −y. So y″ + y = −y + y = 0, which verifies the solution for every choice of a and b — this is the general solution since it has 2 arbitrary constants matching the order 2 of the equation.

Now consider the second-order DE y″ − 4y = 0, whose general solution is y = A e2x + B e−2x. To find the particular solution satisfying y(0) = 0 and y′(0) = 4: differentiate to get y′ = 2A e2x − 2B e−2x. Substituting x = 0: A + B = 0, and 2A − 2B = 4, i.e., A − B = 2. Solving these two equations simultaneously (using B = −A): A − (−A) = 2 ⇒ 2A = 2 ⇒ A = 1, B = −1. So the particular solution is y = e2x − e−2x.

General solution (order n) y = f(x, C₁, C₂, …, Cₙ) n independent arbitrary constants for an nth-order DE.
Worked example: general solution y″ − 4y = 0 ⇒ y = A e^(2x) + B e^(−2x)
Worked example: particular solution y = e^(2x) − e^(−2x) Obtained using y(0) = 0 and y′(0) = 4.
Remember
  • A solution is any function that satisfies the differential equation when substituted in.
  • General solution: contains a number of independent arbitrary constants equal to the order of the DE.
  • Particular solution: general solution with the constants evaluated using given initial/boundary conditions.
  • Verification means differentiating the candidate solution and substituting back into the DE.
  • A geometrical family of curves (e.g., all sine waves of a fixed frequency) corresponds to the general solution; one member of that family is a particular solution.

Formation of a Differential Equation from a Family of Curves

Quick answer Differentiating a family of curves as many times as there are arbitrary constants, then eliminating those constants, produces the differential equation the family satisfies.

Every family of curves depending on n independent arbitrary constants satisfies a differential equation of order n, obtained by eliminating the constants. The procedure is: (i) differentiate the given relation n times with respect to x, obtaining n additional equations; (ii) use the original relation together with these n derivative-equations to eliminate all n constants, leaving one equation connecting x, y, and derivatives of y up to order n.

Worked Example 1 (one constant): Form the differential equation representing the family of straight lines through the origin, y = mx.
Differentiating once: dy/dx = m. Since the family has only one arbitrary constant (m), one differentiation suffices. Substitute m = dy/dx back into y = mx: y = x(dy/dx), i.e., x(dy/dx) − y = 0, a first-order DE.

Worked Example 2 (one constant): Form the differential equation of the family of circles centred at the origin, x² + y² = a².
Differentiating with respect to x: 2x + 2y(dy/dx) = 0, which simplifies directly to x + y(dy/dx) = 0 — the constant a has already disappeared, so no further substitution is needed.

Worked Example 3 (two constants): Form the differential equation representing y = A e3x + B e−3x.
Since there are two arbitrary constants, differentiate twice. y′ = 3A e3x − 3B e−3x. y″ = 9A e3x + 9B e−3x = 9(A e3x + B e−3x) = 9y. So the required differential equation is d²y/dx² − 9y = 0, of order 2 (matching the two constants eliminated).

Family of lines through origin y = mx ⇒ x(dy/dx) − y = 0
Family of circles centred at origin x² + y² = a² ⇒ x + y(dy/dx) = 0
Two-parameter exponential family y = A e^(3x) + B e^(−3x) ⇒ d²y/dx² − 9y = 0
Remember
  • Number of arbitrary constants in the family = order of the differential equation formed.
  • Differentiate the family's equation as many times as there are constants to eliminate.
  • Combine the original equation with the derivative equations to eliminate the constants completely.
  • The final equation must contain no arbitrary constants — only x, y, and derivatives of y.
  • The same family can sometimes be differentiated fewer times if a constant cancels out early (as in the circle example).

Solving First-Order DEs by the Method of Separation of Variables

Quick answer When a first-order equation can be arranged so that all y-terms are on one side and all x-terms on the other, both sides can be integrated directly.

A first-order, first-degree differential equation of the form dy/dx = f(x)·g(y) is said to have variables separable, because it can be rearranged so that all terms in y (with dy) appear on one side and all terms in x (with dx) appear on the other:

dy/g(y) = f(x) dx

Integrating both sides gives the general solution: ∫ dy/g(y) = ∫ f(x) dx + C, where C is the arbitrary constant of integration.

Worked Example 1 (general solution): Solve dy/dx = (1 + y²)/(1 + x²).
Separating variables: dy/(1 + y²) = dx/(1 + x²). Integrating both sides: tan⁻¹y = tan⁻¹x + C. This is the required general solution.

Worked Example 2 (particular solution): Solve dy/dx = 2xy given that y = 1 when x = 0.
Separating variables: dy/y = 2x dx (assuming y ≠ 0). Integrating: ln|y| = x² + C₁, so y = ex²+C₁ = k e, where k = eC₁ is a new arbitrary constant. Applying the condition y(0) = 1: 1 = k·e⁰ = k, so k = 1. Hence the particular solution is y = e. (Check: dy/dx = 2x e = 2xy ✓, and y(0) = e⁰ = 1 ✓.)

Variable separable form dy/dx = f(x)·g(y) ⇒ dy/g(y) = f(x) dx Integrate both sides after separating.
Worked example 1 dy/dx = (1+y²)/(1+x²) ⇒ tan⁻¹y = tan⁻¹x + C
Worked example 2 dy/dx = 2xy, y(0)=1 ⇒ y = e^(x²)
Remember
  • Applicable when dy/dx can be factored as a function of x times a function of y.
  • Rearrange so every y term (with dy) is on one side and every x term (with dx) is on the other, then integrate both sides.
  • The constant of integration C is written only once, on either side, after both integrations are performed.
  • An initial condition converts the general solution into a particular solution by fixing the value of C.
  • Always check for solutions lost when dividing by g(y) (e.g., y = 0 may be a solution not captured by dy/g(y)).

Homogeneous Differential Equations

Quick answer A first-order DE where the right-hand side depends only on the ratio y/x can be reduced to a variable-separable equation using the substitution y = vx.

A function F(x, y) is called a homogeneous function of degree n if F(λx, λy) = λnF(x, y) for a nonzero constant λ. A differential equation dy/dx = F(x, y) is called homogeneous if F(x, y) is a homogeneous function of degree zero — equivalently, it can always be written in the form dy/dx = g(y/x), depending only on the ratio y/x (or x/y).

To solve a homogeneous DE, substitute y = vx, treating v as a new function of x. Then dy/dx = v + x(dv/dx). Substituting this into the equation converts it into a variable-separable equation in v and x, which can then be solved by the method of the previous section, and finally v is replaced back by y/x.

Worked Example: Solve (x² + y²) dx − 2xy dy = 0.
Rewrite as dy/dx = (x² + y²)/(2xy). The right side is homogeneous of degree zero (numerator and denominator are both degree 2), so substitute y = vx, dy/dx = v + x(dv/dx):

v + x(dv/dx) = (x² + v²x²)/(2x·vx) = (1 + v²)/(2v)

So x(dv/dx) = (1 + v²)/(2v) − v = (1 + v² − 2v²)/(2v) = (1 − v²)/(2v). Separating variables: 2v/(1 − v²) dv = dx/x. Integrating the left side (let u = 1 − v², du = −2v dv, so the integral becomes −∫du/u = −ln|u|): −ln|1 − v²| = ln|x| + C₁, which rearranges to ln|x(1 − v²)| = −C₁, i.e., x(1 − v²) = C (absorbing the sign and exponentiating into a single constant C). Substituting back v = y/x: x(1 − y²/x²) = C ⇒ x − y²/x = C. Multiplying through by x gives the general solution x² − y² = Cx.

Homogeneous function of degree n F(λx, λy) = λⁿ F(x, y)
Homogeneous DE standard form dy/dx = g(y/x)
Substitution used to solve y = vx ⇒ dy/dx = v + x(dv/dx)
Worked example result (x²+y²)dx − 2xy dy = 0 ⇒ x² − y² = Cx
Remember
  • F(x,y) is homogeneous of degree n if F(λx, λy) = λⁿF(x,y).
  • A DE dy/dx = F(x,y) is homogeneous when F is homogeneous of degree zero, i.e., dy/dx depends only on y/x.
  • Standard technique: substitute y = vx, so dy/dx = v + x(dv/dx), turning it into a variable-separable equation in v and x.
  • After solving for v as a function of x, substitute back v = y/x to get the solution in terms of x and y.
  • A similar substitution x = vy is used when the equation is more naturally homogeneous in x as a function of y.

Linear Differential Equations of the First Order

Quick answer A first-order equation linear in y (or in x) is solved using an integrating factor that converts the left side into an exact derivative of a product.

A differential equation of the form dy/dx + Py = Q, where P and Q are functions of x alone (or constants), is called a linear differential equation in y. It is solved using the integrating factor (I.F.), defined as I.F. = e∫P dx. Multiplying both sides of the equation by the I.F. makes the left-hand side an exact derivative of the product y·(I.F.), so that the general solution is:

y · (I.F.) = ∫ Q · (I.F.) dx + C

Symmetrically, an equation of the form dx/dy + Px = Q, with P, Q functions of y alone, is linear in x, with I.F. = e∫P dy and solution x·(I.F.) = ∫Q·(I.F.) dy + C. This form is useful whenever it is easier to treat x as the dependent variable (for example, when Q would otherwise be difficult to express as a function of x).

Worked Example: Solve dy/dx + y/x = x², for x > 0.
Here P = 1/x and Q = x². The integrating factor is I.F. = e∫(1/x)dx = eln x = x (since x > 0). Multiplying the equation by x: x(dy/dx) + y = x³, and the left side is exactly d/dx(xy). So d/dx(xy) = x³. Integrating both sides with respect to x: xy = x⁴/4 + C. Hence the general solution is xy = x⁴/4 + C, or equivalently y = x³/4 + C/x.

Linear DE in y dy/dx + Py = Q P, Q are functions of x only (or constants).
Integrating factor (in x) I.F. = e^(∫P dx)
General solution (in x) y · (I.F.) = ∫ Q·(I.F.) dx + C
Linear DE in x dx/dy + Px = Q P, Q are functions of y only; I.F. = e^(∫P dy), solution x·(I.F.) = ∫Q·(I.F.) dy + C.
Worked example result dy/dx + y/x = x² ⇒ xy = x⁴/4 + C
Remember
  • Standard linear form: dy/dx + Py = Q, with P, Q functions of x only (or constants).
  • Integrating factor: I.F. = e^(∫P dx); multiplying by it turns the left side into d/dx[y·(I.F.)].
  • General solution: y·(I.F.) = ∫Q·(I.F.) dx + C.
  • A symmetric form dx/dy + Px = Q (P, Q functions of y) uses I.F. = e^(∫P dy) and is solved the same way with x and y swapped.
  • Always check whether an equation is more naturally linear in x (dx/dy form) if it is not linear in y.

The formula sheet

Every formula in this chapter, in one place — screenshot it before your exam.

F(x, y, y′, y″, …, y⁽ⁿ⁾) = 0
General nth-order ODE
Order = order of the highest derivative occurring in the DE
Order rule
Degree = exponent of the highest order derivative (after making the DE polynomial in derivatives)
Degree rule
y = f(x, C₁, C₂, …, Cₙ)
General solution (order n)
y″ − 4y = 0 ⇒ y = A e^(2x) + B e^(−2x)
Worked example: general solution
y = e^(2x) − e^(−2x)
Worked example: particular solution
y = mx ⇒ x(dy/dx) − y = 0
Family of lines through origin
x² + y² = a² ⇒ x + y(dy/dx) = 0
Family of circles centred at origin
y = A e^(3x) + B e^(−3x) ⇒ d²y/dx² − 9y = 0
Two-parameter exponential family
dy/dx = f(x)·g(y) ⇒ dy/g(y) = f(x) dx
Variable separable form
dy/dx = (1+y²)/(1+x²) ⇒ tan⁻¹y = tan⁻¹x + C
Worked example 1
dy/dx = 2xy, y(0)=1 ⇒ y = e^(x²)
Worked example 2
F(λx, λy) = λⁿ F(x, y)
Homogeneous function of degree n
dy/dx = g(y/x)
Homogeneous DE standard form
y = vx ⇒ dy/dx = v + x(dv/dx)
Substitution used to solve
(x²+y²)dx − 2xy dy = 0 ⇒ x² − y² = Cx
Worked example result
dy/dx + Py = Q
Linear DE in y
I.F. = e^(∫P dx)
Integrating factor (in x)
y · (I.F.) = ∫ Q·(I.F.) dx + C
General solution (in x)
dx/dy + Px = Q
Linear DE in x
dy/dx + y/x = x² ⇒ xy = x⁴/4 + C
Worked example result

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1 Order and Degree easy

What is the order of the differential equation d²y/dx² + 3(dy/dx) − y = 0?

Q2 Order and Degree easy

What is the degree of the differential equation (dy/dx)² + 2y = x?

Q3 General and Particular Solutions easy

A general solution of a differential equation of order 3 (in simplest form) contains how many independent arbitrary constants?

Q4 Order and Degree medium

What are the order and degree of the differential equation √(1 + (dy/dx)²) = d²y/dx² (after removing the radical)?

Q5 Formation of Differential Equations medium

The differential equation formed by eliminating the arbitrary constant 'a' from the family of curves x² + y² = a² is:

Q6 Formation of Differential Equations medium

The differential equation representing the family of straight lines y = mx (m arbitrary) is:

Q7 Variable Separable Method medium

The general solution of the differential equation dy/dx = y/x is:

Q8 Variable Separable Method medium

If dy/dx = 2xy and y = 1 when x = 0, what is the value of y when x = 1?

Q9 Linear Differential Equations hard

The integrating factor of the differential equation dy/dx + (2/x)y = x² (for x > 0) is:

Q10 Linear Differential Equations hard

The general solution of dy/dx + y/x = x² (for x > 0) is:

Q11 Homogeneous Differential Equations hard

The general solution of the homogeneous differential equation (x² + y²)dx − 2xy dy = 0 is:

Q12 Linear Differential Equations hard

The general solution of dy/dx + y cot x = cosec x is:

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 6

1 Determine the order and degree (if defined) of the differential equation: d²y/dx² + 5x(dy/dx)² − 6y = log x.Order and Degree

The equation is d²y/dx² + 5x(dy/dx)² − 6y = log x.

The highest order derivative appearing is d²y/dx², so the order is 2.

The equation is already a polynomial in the derivatives d²y/dx² and dy/dx (no radicals, no derivatives inside transcendental functions). The highest order derivative, d²y/dx², occurs with power 1 (it is not squared or raised to any other power — only the lower-order term (dy/dx)² is squared, which does not affect the degree). Hence the degree is 1.

2 Verify that the function y = a + b/x is a solution of the differential equation x²(d²y/dx²) + 2x(dy/dx) = 0, where a and b are arbitrary constants.General and Particular Solutions

Given y = a + b/x = a + bx⁻¹.

Differentiating once: dy/dx = −bx⁻² = −b/x².

Differentiating again: d²y/dx² = 2bx⁻³ = 2b/x³.

Substitute into the left-hand side of the given equation:

x²(d²y/dx²) + 2x(dy/dx) = x²·(2b/x³) + 2x·(−b/x²) = 2b/x − 2b/x = 0.

This equals the right-hand side (0) for every choice of a and b, so y = a + b/x is indeed a solution of the given differential equation.

3 Form the differential equation representing the family of curves y = a sin(x + b), where a and b are arbitrary constants.Formation of Differential Equations

Given y = a sin(x + b).

Since there are two arbitrary constants (a and b), differentiate twice.

First derivative: dy/dx = a cos(x + b).

Second derivative: d²y/dx² = −a sin(x + b).

But a sin(x + b) is exactly y (the original expression), so:

d²y/dx² = −y, i.e., d²y/dx² + y = 0.

This second-order differential equation (matching the 2 arbitrary constants eliminated) represents the given family of curves, with both a and b completely eliminated.

4 Find the general solution of the differential equation dy/dx = (1 − cos x)/(1 + cos x).Variable Separable Method

Using the half-angle identities 1 − cos x = 2sin²(x/2) and 1 + cos x = 2cos²(x/2):

dy/dx = 2sin²(x/2) / 2cos²(x/2) = tan²(x/2).

Since tan²(x/2) = sec²(x/2) − 1, the equation is already separated in terms of x (the right-hand side has no y):

dy = [sec²(x/2) − 1] dx.

Integrating both sides: ∫dy = ∫sec²(x/2) dx − ∫1 dx.

Since ∫sec²(x/2)dx = 2 tan(x/2) (because d/dx[tan(x/2)] = (1/2)sec²(x/2)):

y = 2 tan(x/2) − x + C, which is the required general solution.

5 Show that the differential equation x dy − y dx = √(x² + y²) dx is homogeneous, and find its general solution.Homogeneous Differential Equations

Rearranging: x dy = [y + √(x²+y²)] dx, so dy/dx = [y + √(x²+y²)]/x.

Writing F(x,y) for the right-hand side: F(λx, λy) = [λy + √(λ²x²+λ²y²)]/(λx) = λ[y + √(x²+y²)]/(λx) = F(x,y), so F is homogeneous of degree 0 — the equation is homogeneous.

Substitute y = vx, so dy/dx = v + x(dv/dx) (taking x > 0, √(x²(1+v²)) = x√(1+v²)):

v + x(dv/dx) = [vx + x√(1+v²)]/x = v + √(1+v²)

So x(dv/dx) = √(1+v²), which separates as dv/√(1+v²) = dx/x.

Integrating (using the standard result ∫dv/√(1+v²) = ln|v + √(1+v²)|):

ln|v + √(1+v²)| = ln|x| + ln C = ln(Cx)

So v + √(1+v²) = Cx. Substituting back v = y/x: y/x + √(1 + y²/x²) = Cx. Multiplying through by x:

y + √(x²+y²) = Cx², the required general solution.

6 Solve the differential equation dy/dx + 2y = sin x.Linear Differential Equations

This is a linear differential equation of the form dy/dx + Py = Q with P = 2, Q = sin x.

Integrating factor: I.F. = e∫2 dx = e2x.

General solution: y·e2x = ∫ sin x · e2x dx + C.

Using the standard result ∫eax sin(bx) dx = eax(a sin bx − b cos bx)/(a²+b²) with a = 2, b = 1:

∫ e2x sin x dx = e2x(2 sin x − cos x)/5.

So y·e2x = e2x(2 sin x − cos x)/5 + C.

Dividing throughout by e2x:

y = (2 sin x − cos x)/5 + C e−2x, the required general solution.

Previous-year board questions 4

Q1 Find the order and degree (if defined) of the differential equation: (d²y/dx²)² + cos(dy/dx) = 0. 2023 2 marks

The highest order derivative appearing is d²y/dx², so the order of the differential equation is 2.

To find the degree, the equation must be expressible as a polynomial in all the derivatives present. Here the term cos(dy/dx) contains the derivative dy/dx inside a trigonometric function, and this cannot be reduced to a polynomial form in dy/dx by any algebraic manipulation.

Therefore, the degree of this differential equation is not defined.

Q2 Form the differential equation representing the family of curves y = A e³ˣ + B e⁻³ˣ, where A and B are arbitrary constants. 2024 2 marks

Given y = A e3x + B e−3x, with two arbitrary constants A and B, so we differentiate twice.

First derivative: dy/dx = 3A e3x − 3B e−3x.

Second derivative: d²y/dx² = 9A e3x + 9B e−3x = 9(A e3x + B e−3x) = 9y.

Therefore the required differential equation, with A and B eliminated, is:

d²y/dx² − 9y = 0.

Q3 Solve the differential equation: (1 + x²) dy/dx + y = e^(tan⁻¹x). 2022 5 marks

Dividing throughout by (1 + x²):

dy/dx + y/(1+x²) = etan⁻¹x/(1+x²).

This is a linear differential equation with P = 1/(1+x²) and Q = etan⁻¹x/(1+x²).

Integrating factor: I.F. = e∫dx/(1+x²) = etan⁻¹x.

General solution: y·etan⁻¹x = ∫ [etan⁻¹x/(1+x²)]·etan⁻¹x dx + C = ∫ e2tan⁻¹x/(1+x²) dx + C.

Substitute t = tan⁻¹x, so dt = dx/(1+x²). The integral becomes ∫e2t dt = e2t/2 = e2tan⁻¹x/2.

So y·etan⁻¹x = e2tan⁻¹x/2 + C.

Dividing throughout by etan⁻¹x:

y = etan⁻¹x/2 + C e−tan⁻¹x, the required general solution.

Q4 If y = y(x) is the solution of the differential equation dy/dx + 2y tan x = sin x, with y(π/3) = 0, find the maximum value of the function y(x). 2020 4 marks

The given equation dy/dx + 2y tan x = sin x is linear, with P = 2 tan x and Q = sin x.

Integrating factor: I.F. = e∫2 tan x dx = e2 ln|sec x| = sec²x.

General solution: y·sec²x = ∫ sin x · sec²x dx + C = ∫ sec x tan x dx + C = sec x + C.

So y sec²x = sec x + C, i.e., y = cos x + C cos²x.

Apply the condition y(π/3) = 0: cos(π/3) = 1/2, cos²(π/3) = 1/4.

0 = 1/2 + C(1/4) ⇒ C = −2.

So y = cos x − 2cos²x. Let t = cos x, where t ∈ [−1, 1]. Then y = t − 2t², a downward-opening parabola in t.

dy/dt = 1 − 4t = 0 ⇒ t = 1/4, which lies in [−1, 1] and is attainable since cos x = 1/4 has real solutions.

Maximum value: y = (1/4) − 2(1/4)² = 1/4 − 2/16 = 1/4 − 1/8 = 1/8.

Hence the maximum value of y(x) is 1/8.

Part of Priodemy for School

Interactive Maths & Science — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI