I am trying to solve the following first order differential equation to find $v_c(t)$ as a function of time and frequency:
$RC \frac{dv_c(t)}{dt} + v_c(t) = \sin(2\pi ft)$
$R$ and $C$ are constants, $f$ being frequency and $t$ time
The assignment tells me the solution is of the general form:
$v_c(t) = a\cdot \sin(2\pi ft) + b \cdot \cos(2\pi ft)$
Here is what I did:
$\frac{dv_c(t)}{dt} = a \cdot (2\pi f) \cdot \cos(2\pi ft) - b \cdot (2\pi f) \cdot \sin(2\pi ft)$
And the whole equation ends up being this monstrosity:
$\sin(2\pi ft) = RC\;\Big(a (2\pi f) \cos(2\pi ft) - b (2\pi f) \sin(2\pi ft)\Big) \; + \; a\cdot \sin(2\pi ft) + b \cdot \cos(2\pi ft)$
Question: how do I determine the coefficients $a$ and $b$ as a function of $f$ ?
Here is what the assignment suggests:
Set the amplitude values of the terms with $\sin(2\pi ft)$ and $\cos(2\pi ft)$ equal at both sides of the "$=$" sign, thus in the following way:
$g\sin(2\pi ft) + h\sin(2\pi ft)t = h\sin(2\pi ft)t$
$m\cos(2\pi ft)t + n\cos(2\pi ft)t = q\cos(2\pi ft)$
I don't understand what the assignment is trying to make me do. Any help or tips are appriated, thank you.
Note: this is my first time touching on first order differential equations, sorry if the question is not formulated well.
$$\sin(2\pi ft) = RC\;\Big(a (2\pi f) \cos(2\pi ft) - b (2\pi f) \sin(2\pi ft)\Big) \; + \; a\cdot \sin(2\pi ft) + b \cdot \cos(2\pi ft)$$
Rearrange terms in $\sin$ together and $\cos$ terms together too.
$$\sin(2\pi ft)=\color{blue}{(a-bRC2\pi f)\sin(2\pi ft)} +\color{green}{(b+RCa2\pi f)\cos(2\pi ft)}$$
Now the coefficient of $\cos$ must be zero ...the coefficient of $\sin$ must be equal to 1
$$ \begin{cases} (a-2bRC\pi f)=1\\ \\ (b+2RCa\pi f)=0\\ \end{cases} $$ Solve the system for $a,b$