The general solution for this would be any solution specifically which gives f(t), plus any homogeneous solutions specifically:
where the left is a particular solution, and the right is any homogeneous solution. We can do this because, say if we derivate it; the left derivative (the particular solution) gives f(t), and the right, because its homogeneous, gives 0. Because there can be at most one solution to every IVP, we know that all solutions to the equation must take on the form of y_{p}(t) + c_1 y_{n_{1}}(t) + … + c_{n} y_{n_{j}}(t) = y The general solution to this is:
this works equally well when a is not constant:
inhomogeneous solutions cannot work with the time translation trick integrating factor Consider the case where:
ideally, we would love our whole left side to be one giant derivative which we can antiderive; let’s try multiply both sides with e^{at}:
We note that this gives:
meaning:
which gives:
Tacking on the homogeneous solution :
note! the first term doesn’t have a scaler in front of it. Otherwise, the derivative will give you nf(x) instead of f(x). This actually doesn’t matter what a is. In a sense, if we swap a for a(t), we simply have to write a = \int a(x) \dd{x}.So, most generally:
yields (CHECK THIS FACT< IT MAY BE WRONG)
for constant solutions, we get:
for
method of undetermined coefficients Good guesses for the structure of:
for f(t) = C , guess y = C’ for f(t) = x^{n}, guess y = x^{n} (with all subsequent terms) for f(t) = \sin (t) or f(t)=\cos (t), guess y=A \sin (t) + B \cos (t) for f(t) = e^{\lambda t}, guess y = Ce^{\lambda t} example say:
let’s break it up into three pieces:
you will note that adding up all three of these yields a value for y that satisfy the overall expression. first one: we can just guess y = 70, which evidently works second one: we want the sin and cos to cancel out, so we can guess A \sin t + B \cos t, whose derivative is -B \sin t + A \cos t, plugging that in, we get: (-B+kA) \sin t + (A+kB) \cos t, which we can use our coefficients to solve third one: that’s the homogeneous solution Ce^{-kt} and we can finally add it all up. concern at some points, there is a case where—at certain choices of constants, you may obtain a homogeneous solution when you are trying to get the particular solution. that’s bad. Consider:
and the particular solution you’d get is something like:
this makes sense for all cases except where m = \pm 1, because that gives a homogeneous solution, and the bottom of that fraction will blow up. To fix this, we can engineer a specific solution for which the limit towards 1 exists. Recall that, in general, we have:
if we choose c_2=0, c_1= \frac{1}{m^{2}-1}, we can see that the limit exists through l’hospitals:
we can evaluate this at m=1 by using l’hospitals rule. At this point, we essentially end up with two distinct solutions, given a choice of m. variation of parameters method Take an independent set of homogeneous solutions which tells you what the general solution is, then modifying to modify the f. The general solution is irrespective of f. Now, consider:
Because the homogeneous solution y_1 and y_2 gives two independent solutions, we obtain:
we can take the derivative of this to obtain:
we are going to guess the right two terms are zero (assume c_1 ’ y_1 + c_2 ’ y_2 = 0) and repeat this procedure:
now, plugging this into our original equation, we obtain:
So, combining what we just got and our simplifying assumption, we obtain:
This is now a matrix expression:
that matrix on the left side is called the Wronshian matrix, and if y_1 and y_2 the homogeneous solutions are independent, we know that this is going to be invertible. Then, we can just solve and integrate to obtain c_1, c_2. why do we tack on the homogeneous solution again? What if we have a plane specified:
we want to solve x_{j} as a vector which lives on this plane. Let’s begin by shifting this plane down to the origin:
Which says the same thing as:
meaning:
where A \in \mathcal{L}(m,n), where m < n. To solve for x, we desire \text{null}\ A, and given we are a map into a bigger space, we should have non-trivial null space. find a particular solution x_{p} to the non-shifted version the general solution should live in x_{p} + \text{null}\ A, the affine subset meaning all solutions should live on x = x_{p} + c_1 v_1 + c_2 v_2