Detailed Explanation
This is a first-order differential equation where the derivative appears inside a cosine function. Our first job is to isolate \( \frac{dy}{dx} \). Once we express \( \frac{dy}{dx} \) purely in terms of constants (or \( x \)), the equation becomes variables separable. We integrate both sides to get the general solution, which contains an arbitrary constant. A particular solution is obtained by using the given condition (here, \( y = 1 \) when \( x = 0 \)) to find that constant.
Formula Used
If \( \cos\theta = a \), then \( \theta = \cos^{-1} a \). Also \( \int dy = y + C \) and \( \int k \, dx = kx + C \).
Solution
- Step 1: Start with the given equation \[ \cos\left(\frac{dy}{dx}\right) = a. \] To make progress, isolate the derivative by taking the inverse cosine of both sides.
- Step 2: Applying \( \cos^{-1} \) on both sides gives \[ \frac{dy}{dx} = \cos^{-1} a. \] Notice that \( \cos^{-1} a \) is just a constant since \( a \) is a fixed real number.
- Step 3: Separate the variables. Multiply both sides by \( dx \): \[ dy = (\cos^{-1} a)\, dx. \] Now the left side has only \( y \) and the right side has only \( x \) (with a constant), so we can integrate.
- Step 4: Integrate both sides: \[ \int dy = \int (\cos^{-1} a)\, dx. \] Since \( \cos^{-1} a \) is a constant, this gives \[ y = (\cos^{-1} a)\, x + C, \] which is the general solution.
- Step 5: Apply the given condition \( y = 1 \) when \( x = 0 \). Substitute: \[ 1 = (\cos^{-1} a)(0) + C. \] This gives \( C = 1 \).
- Step 6: Put \( C = 1 \) back into the general solution to get the particular solution: \[ y = (\cos^{-1} a)\, x + 1. \] We can also rearrange this to express \( a \): \[ \frac{y - 1}{x} = \cos^{-1} a, \] so that \[ a = \cos\left(\frac{y - 1}{x}\right). \]
Final Answer
The particular solution is \[ y = x\,\cos^{-1} a + 1, \] equivalently \[ \cos\left(\frac{y - 1}{x}\right) = a. \]
Common Mistake
A common mistake is to try to integrate \( \cos\left(\frac{dy}{dx}\right) \) directly with respect to \( x \) without first isolating \( \frac{dy}{dx} \). You must take \( \cos^{-1} \) of both sides first to get \( \frac{dy}{dx} = \cos^{-1} a \), a constant, before separating variables and integrating.